ELF: Add _bfd_elf_add_dynamic_tags
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
37825800
AB
12020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * top.c (print_gdb_configuration): Print --with-python-libdir
4 configuration value.
5
5b860c93
PW
62020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7
8 * NEWS: Mention change to the alias command.
9
cf00cd6f
PW
102020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11
12 * cli/cli-cmds.c (lookup_cmd_for_default_args)
13 (alias_command_completer)
14 (make_alias_options_def_group): New functions.
15 (alias_opts, alias_option_defs): New struct and array.
16 (alias_usage_error): Update usage.
17 (alias_command): Handles optional DEFAULT-ARGS... arguments.
18 Use option framework.
19 (_initialize_cli_cmds): Update alias command help.
20 Update aliases command help.
21 (show_user):
22 Add NULL for new default_args lookup_cmd argument.
23 (valid_command_p): Rename to validate_aliased_command.
24 Add NULL for new default_args lookup_cmd argument. Verify that the
25 aliased_command has no default args.
26 * cli/cli-decode.c (help_cmd): Show aliases definitions.
27 (lookup_cmd_1, lookup_cmd): New argument default_args.
28 (add_alias_cmd):
29 Add NULL for new default_args lookup_cmd argument.
30 (print_help_for_command): Show default args under the layout
31 alias some_alias = some_aliased_cmd some_alias_default_arg.
32 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
33 xfree default_args in destructor.
34 * cli/cli-script.c (process_next_line, do_define_command):
35 Add NULL for new default_args lookup_cmd argument.
36 * command.h: Declare new default_args argument in lookup_cmd
37 and lookup_cmd_1.
38 * completer.c (complete_line_internal_1):
39 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
40 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
41 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
42 Likewise.
43 * infcmd.c (_initialize_infcmd): Likewise.
44 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
45 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
46 * python/py-param.c (add_setshow_generic): Likewise.
47 * remote.c (_initialize_remote): Likewise.
48 * top.c (execute_command): Prepend default_args if command has some.
49 (set_verbose):
50 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
51 * tracepoint.c (validate_actionline, encode_actions_1):
52 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
53
bd920864
TBA
542020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
55
56 * jit.c (jit_read_descriptor): Use bool as the return type.
57 (jit_breakpoint_re_set_internal): Use bool as the return type.
58 Invert the return value logic; return true if the jit breakpoint
59 has been successfully initialized.
60 (jit_inferior_init): Update the call to
61 jit_breakpoint_re_set_internal.
62
f8098322
PA
632020-06-22 Pedro Alves <palves@redhat.com>
64
65 PR gdb/25939
66 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
67 Use the current inferior instead. Don't return
68 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
69 wait again.
70 * sol-thread.c (sol_thread_target::wait): Don't reference
71 inferior_ptid.
72 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
73 (sol_update_thread_list_callback): Use the current inferior's pid
74 instead of inferior_ptid.
75
196535a6
RO
762020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
77
78 * procfs.c: Cleanup many comments.
79
80 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
81 (AFTER_WATCHFLAG): Replace by value.
82
83 (MAIN_PROC_NAME_FORMAT): Inline ...
84 (create_procinfo): ... here.
85
86 (procfs_debug_inferior): Remove SYS_exec handling.
87 (syscall_is_exec): Likewise.
88 (procfs_set_exec_trap): Likewise.
89
90 (syscall_is_lwp_exit): Inline in callers.
91 (syscall_is_exit): Likewise.
92 (syscall_is_exec): Likewise.
93 (syscall_is_lwp_create): Likewise.
94
95 (invalidate_cache): Remove #if 0 code.
96
97 (make_signal_thread_runnable): Remove.
98 (procfs_target::resume): Remove #if 0 code.
99
cf6f3e86
RO
1002020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
101
102 PR gdb/25939
103 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
104 call ...
105 (procfs_target::create_inferior): ... here.
106
48e9cc84
PW
1072020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
108
109 * exec.c (validate_exec_file): Ensure the build-id is up to
110 date by calling reopen_exec_file (that checks file timestamp
111 to decide to re-read the file).
112
3922b302
PA
1132020-06-18 Pedro Alves <palves@redhat.com>
114
115 PR gdb/25412
116 * gdbthread.h (delete_thread, delete_thread_silent)
117 (find_thread_ptid): Update comments.
118 * thread.c (current_thread_): New global.
119 (is_current_thread): Move higher, and reimplement.
120 (inferior_thread): Reimplement.
121 (set_thread_exited): Use bool. Add assertions.
122 (add_thread_silent): Simplify thread-reuse handling by always
123 calling delete_thread.
124 (delete_thread): Remove intro comment.
125 (find_thread_ptid): Skip exited threads.
126 (switch_to_thread_no_regs): Write to current_thread_.
127 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
128 INFERIOR_PTID. Clear current_thread_.
129
6dbdab44
PA
1302020-06-18 Pedro Alves <palves@redhat.com>
131
132 * aix-thread.c (pd_update): Use switch_to_thread.
133
2da4b788
PA
1342020-06-18 Pedro Alves <palves@redhat.com>
135
136 * ravenscar-thread.c (ravenscar_thread_target): Update.
137 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
138 (ravenscar_thread_target::add_active_thread): ... this. Don't
139 set m_base_ptid here. Update to avoid referencing inferior_ptid.
140 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
141
50838d1b
PA
1422020-06-18 Pedro Alves <palves@redhat.com>
143
144 * nat/windows-nat.c (current_windows_thread): Remove.
145 * nat/windows-nat.h (current_windows_thread): Remove.
146 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
147 Adjust.
148 (display_selectors): Adjust to fetch the current
149 windows_thread_info based on inferior_ptid.
150 (fake_create_process): No longer write to current_windows_thread.
151 (windows_nat_target::get_windows_debug_event):
152 Don't set inferior_ptid or current_windows_thread.
153 (windows_nat_target::wait): Adjust to not rely on
154 current_windows_thread.
155 (do_initial_windows_stuff): Now a method of windows_nat_target.
156 Switch to the last_ptid thread.
157 (windows_nat_target::attach): Adjust.
158 (windows_nat_target::detach): Use switch_to_no_thread instead of
159 writing to inferior_ptid directly.
160 (windows_nat_target::create_inferior): Adjust.
161
31ce04e9
PA
1622020-06-18 Pedro Alves <palves@redhat.com>
163
164 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
165
1ee1a363
PA
1662020-06-18 Pedro Alves <palves@redhat.com>
167
168 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
169 after creating it, instead of writing to inferior_ptid. Don't
170 write to inferior_ptid.
171
6d350754
PA
1722020-06-18 Pedro Alves <palves@redhat.com>
173
174 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
175
5d971d48
PA
1762020-06-18 Pedro Alves <palves@redhat.com>
177
178 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
179 it, instead of writing to inferior_ptid.
180
86e57d1b
PA
1812020-06-18 Pedro Alves <palves@redhat.com>
182
183 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
184 to inferior_ptid.
185
f2e1c129
PA
1862020-06-18 Pedro Alves <palves@redhat.com>
187
188 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
189 instead of writing to inferior_ptid directly.
190
60db1b85
PA
1912020-06-18 Pedro Alves <palves@redhat.com>
192
193 * corelow.c (core_target::close): Use switch_to_no_thread instead
194 of writing to inferior_ptid directly.
195 (add_to_thread_list, core_target_open): Use switch_to_thread
196 instead of writing to inferior_ptid directly.
197
fe7d6a8d
PA
1982020-06-18 Pedro Alves <palves@redhat.com>
199
200 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
201 inferior_ptid.
202 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
203 inferior_ptid.
204 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
205 inferior_ptid directly.
206 (darwin_nat_target::init_thread_list): Switch to thread, instead
207 of writing to inferior_ptid.
208 (darwin_nat_target::attach): Don't write to inferior_ptid.
209 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
210
975f8708
PA
2112020-06-18 Pedro Alves <palves@redhat.com>
212
213 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
214 thread.
215 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
216 Instead use switch_to_thread.
217 (gnu_nat_target::detach): Use switch_to_no_thread
218 instead of writing to inferior_ptid directly. Used passed-in
219 inferior instead of looking up the inferior by pid.
220
1a204730
PA
2212020-06-18 Pedro Alves <palves@redhat.com>
222
223 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
224 inferior_ptid.
225
ebe84f23
PA
2262020-06-18 Pedro Alves <palves@redhat.com>
227
228 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
229 inferior_ptid.
230 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
231 thread.
232 (nto_procfs_target::detach): Avoid referencing
233 inferior_ptid. Use switch_to_no_thread instead of writing to
234 inferior_ptid directly.
235 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
236 instead of writing to inferior_ptid directly.
237 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
238 to thread.
239
191f02e5
PA
2402020-06-18 Pedro Alves <palves@redhat.com>
241
242 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
243 after creating it, instead of writing to inferior_ptid.
244 (gdbsim_target_open): Use switch_to_no_thread instead of writing
245 to inferior_ptid directly.
246 (gdbsim_target::wait): Don't write to inferior_ptid.
247
0ac55310
PA
2482020-06-18 Pedro Alves <palves@redhat.com>
249
250 * remote.c (remote_target::remote_notice_new_inferior): Use
251 switch_to_thread instead of writing to inferior_ptid directly.
252 (remote_target::add_current_inferior_and_thread): Use
253 switch_to_no_thread instead of writing to inferior_ptid directly.
254 (extended_remote_target::attach): Use switch_to_inferior_no_thread
255 and switch_to_thread instead of using set_current_inferior or
256 writing to inferior_ptid directly.
257
5233f39b
PA
2582020-06-18 Pedro Alves <palves@redhat.com>
259
260 * tracectf.c (ctf_target_open): Switch to added thread instead of
261 writing to inferior_ptid directly.
262 (ctf_target::close): Use switch_to_no_thread instead of writing to
263 inferior_ptid directly.
264
087e161b
PA
2652020-06-18 Pedro Alves <palves@redhat.com>
266
267 * tracefile-tfile.c (tfile_target_open): Don't write to
268 inferior_ptid directly, instead switch to added thread.
269 (tfile_target::close): Use switch_to_no_thread instead of writing
270 to inferior_ptid directly.
271
7fb43e53
PA
2722020-06-18 Pedro Alves <palves@redhat.com>
273
274 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
275 (procfs_target::detach): Use switch_to_no_thread
276 instead of writing to inferior_ptid directly.
277 (do_attach): Change return type to void. Switch to the added
278 thread.
279 (procfs_target::create_inferior): Switch to the added thread.
280 (procfs_do_thread_registers): Don't write to inferior_ptid.
281
18493a00
PA
2822020-06-18 Pedro Alves <palves@redhat.com>
283
284 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
285 of writing to inferior_ptid.
286 (scoped_restore_exited_inferior): Delete.
287 (handle_vfork_child_exec_or_exit): Simplify using
288 scoped_restore_current_pspace_and_thread. Use switch_to_thread
289 instead of writing to inferior_ptid.
290 (THREAD_STOPPED_BY): Delete.
291 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
292 (thread_stopped_by_hw_breakpoint): Delete.
293 (save_waitstatus): Use
294 scoped_restore_current_thread+switch_to_thread, and call
295 target_stopped_by_watchpoint instead of
296 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
297 instead of thread_stopped_by_sw_breakpoint, and
298 target_stopped_by_hw_breakpoint instead of
299 thread_stopped_by_hw_breakpoint.
300 (handle_inferior_event)
301 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
302 inferior_ptid directly, nor
303 set_current_inferior/set_current_program_space. Use
304 switch_to_thread / switch_to_inferior_no_thread instead.
305
a0776b13
PA
3062020-06-18 Pedro Alves <palves@redhat.com>
307
308 * target.c (generic_mourn_inferior): Use switch_to_no_thread
309 instead of writing to inferior_ptid.
310
6155c136
PA
3112020-06-18 Pedro Alves <palves@redhat.com>
312
313 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
314 added thread.
315 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
316 to the added thread.
317 (inf_ptrace_target::detach_success): Use switch_to_no_thread
318 instead of writing to inferior_ptid.
319
c5316fc6
PA
3202020-06-18 Pedro Alves <palves@redhat.com>
321
322 * gdbarch-selftests.c: Include "progspace-and-thread.h".
323 (register_to_value_test): Mock a program_space too. Heap-allocate
324 the address space. Don't write to inferior_ptid. Use
325 switch_to_thread instead.
326
8df01799
PA
3272020-06-18 Pedro Alves <palves@redhat.com>
328
329 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
330 Delete.
331 (find_signalled_thread()): New, factored out from
332 linux_make_corefile_notes and adjusted to handle exited threads.
333 (linux_make_corefile_notes): Adjust to use the new
334 find_signalled_thread.
335
41792d68
PA
3362020-06-18 Pedro Alves <palves@redhat.com>
337
338 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
339 of saving/restoring inferior_ptid.
340
612f258a
TT
3412020-06-17 Tom Tromey <tom@tromey.com>
342
343 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
344 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
345 declare.
346 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
347
efb763a5
SM
3482020-06-15 Simon Marchi <simon.marchi@efficios.com>
349
350 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
351 of partial symtabs.
352
2951f6c0
SM
3532020-06-17 Simon Marchi <simon.marchi@efficios.com>
354
355 * regformats/reg-arm.dat: Remove.
356 * regformats/reg-bfin.dat: Remove.
357 * regformats/reg-cris.dat: Remove.
358 * regformats/reg-crisv32.dat: Remove.
359 * regformats/reg-m32r.dat: Remove.
360 * regformats/reg-tilegx.dat: Remove.
361 * regformats/reg-tilegx32.dat: Remove.
362
7d458ea5
SM
3632020-06-17 Simon Marchi <simon.marchi@efficios.com>
364
365 * features/Makefile (WHICH): Remove arm files.
366 * regformats/arm/arm-with-iwmmxt.dat: Remove.
367 * regformats/arm/arm-with-neon.dat: Remove.
368 * regformats/arm/arm-with-vfpv2.dat: Remove.
369 * regformats/arm/arm-with-vfpv3.dat: Remove.
370
3af96c0d
SM
3712020-06-17 Simon Marchi <simon.marchi@efficios.com>
372
373 * features/Makefile (XMLTOC): Remove rx.xml.
374
b25e22fd
PA
3752020-06-17 Pedro Alves <palves@redhat.com>
376
377 * gdbthread.h (thread_control_state) <trap_expected> Update
378 comments.
379
a78a19b1
AB
3802020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
381
382 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
383 ada_language::lookup_symbol_nonlocal.
384 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
385 (ada_language::lookup_symbol_nonlocal): New member function,
386 implementation from ada_lookup_symbol_nonlocal.
387 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
388 initializer.
389 (cplus_language_data): Delete la_lookup_symbol_nonlocal
390 initializer.
391 (cplus_language::lookup_symbol_nonlocal): New member function.
392 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
393 (minimal_language_data) Likewise.
394 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
395 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
396 initializer.
397 (d_language::lookup_symbol_nonlocal): New member function.
398 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
399 initializer.
400 (f_language::lookup_symbol_nonlocal): New member function.
401 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
402 initializer.
403 * language.c (unknown_language_data): Likewise.
404 (auto_language_data): Likewise.
405 * language.h (language_data): Delete la_lookup_symbol_nonlocal
406 field.
407 (language_defn::lookup_symbol_nonlocal): New member function.
408 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
409 initializer.
410 * objc-lang.c (objc_language_data): Likewise.
411 * opencl-lang.c (opencl_language_data): Likewise.
412 * p-lang.c (pascal_language_data): Likewise.
413 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
414 rust_language::lookup_symbol_nonlocal.
415 (rust_language_data): Delete la_lookup_symbol_nonlocal
416 initializer.
417 (rust_language::lookup_symbol_nonlocal): New member function,
418 implementation from rust_lookup_symbol_nonlocal.
419 * symtab.c (lookup_symbol_aux): Update call to
420 lookup_symbol_nonlocal.
421 (basic_lookup_symbol_nonlocal): Rename to...
422 (language_defn::lookup_symbol_nonlocal): ...this, and update
423 header comment. Remove language_defn parameter, and replace with
424 uses of `this'.
425 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
426
ebe2334e
AB
4272020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
428
429 * ada-lang.c (ada_language_data): Delete la_value_print_inner
430 initializer.
431 (ada_language::value_print_inner): New member function.
432 * c-lang.c (c_language_data): Delete la_value_print_inner
433 initializer.
434 (cplus_language_data): Likewise.
435 (asm_language_data): Likewise.
436 (minimal_language_data): Likewise.
437 * d-lang.c (d_language_data): Likewise.
438 (d_language::value_print_inner): New member function.
439 * f-lang.c (f_language_data): Delete la_value_print_inner
440 initializer.
441 (f_language::value_print_inner): New member function.
442 * f-lang.h (f_value_print_innner): Rename to...
443 (f_value_print_inner): ...this (note spelling of 'inner').
444 * f-valprint.c (f_value_print_innner): Rename to...
445 (f_value_print_inner): ...this (note spelling of 'inner').
446 * go-lang.c (go_language_data): Delete la_value_print_inner
447 initializer.
448 (go_language::value_print_inner): New member function.
449 * language.c (language_defn::value_print_inner): Define new member
450 function.
451 (unk_lang_value_print_inner): Delete.
452 (unknown_language_data): Delete la_value_print_inner initializer.
453 (unknown_language::value_print_inner): New member function.
454 (auto_language_data): Delete la_value_print_inner initializer.
455 (auto_language::value_print_inner): New member function.
456 * language.h (language_data): Delete la_value_print_inner field.
457 (language_defn::value_print_inner): Delcare new member function.
458 * m2-lang.c (m2_language_data): Delete la_value_print_inner
459 initializer.
460 (m2_language::value_print_inner): New member function.
461 * objc-lang.c (objc_language_data): Delete la_value_print_inner
462 initializer.
463 * opencl-lang.c (opencl_language_data): Likewise.
464 * p-lang.c (pascal_language_data): Likewise.
465 (pascal_language::value_print_inner): New member function.
466 * rust-lang.c (rust_language_data): Delete la_value_print_inner
467 initializer.
468 (rust_language::value_print_inner): New member function.
469 * valprint.c (do_val_print): Update call to value_print_inner.
470
a1d1fa3e
AB
4712020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
472
473 * ada-lang.c (ada_language_data): Delete la_value_print
474 initializer.
475 (ada_language::value_print): New member function.
476 * c-lang.c (c_language_data): Delete la_value_print initializer.
477 (cplus_language_data): Likewise.
478 (asm_language_data): Likewise.
479 (minimal_language_data): Likewise.
480 * d-lang.c (d_language_data): Likewise.
481 * f-lang.c (f_language_data): Likewise.
482 * go-lang.c (go_language_data): Likewise.
483 * language.c (unk_lang_value_print): Delete.
484 (language_defn::value_print): Define new member function.
485 (unknown_language_data): Delete la_value_print initializer.
486 (unknown_language::value_print): New member function.
487 (auto_language_data): Delete la_value_print initializer.
488 (auto_language::value_print): New member function.
489 * language.h (language_data): Delete la_value_print field.
490 (language_defn::value_print): Declare new member function.
491 (LA_VALUE_PRINT): Update call to value_print.
492 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
493 * objc-lang.c (objc_language_data): Likewise.
494 * opencl-lang.c (opencl_language_data): Likewise.
495 * p-lang.c (pascal_language_data): Likewise.
496 (pascal_language::value_print): New member function.
497 * rust-lang.c (rust_language_data): Delete la_value_print
498 initializer.
499
f16a9f57
AB
5002020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
501
502 * ada-lang.c (ada_watch_location_expression): Rename to
503 ada_language::watch_location_expression.
504 (ada_language_data): Delete la_watch_location_expression
505 initializer.
506 (ada_language::watch_location_expression): New member function,
507 implementation from ada_watch_location_expression.
508 * breakpoint.c (watch_command_1): Update call to
509 watch_location_expression.
510 * c-lang.c (c_watch_location_expression): Rename to
511 language_defn::watch_location_expression.
512 (c_language_data): Delete la_watch_location_expression
513 initializer.
514 (cplus_language_data): Likewise.
515 (asm_language_data): Likewise.
516 (minimal_language_data): Likewise.
517 * c-lang.h (c_watch_location_expression): Delete declaration.
518 * d-lang.c (d_language_data): Delete la_watch_location_expression
519 initializer.
520 * f-lang.c (f_language_data): Likewise.
521 * go-lang.c (go_language_data): Likewise.
522 * language.c (language_defn::watch_location_expression): Member
523 function implementation from c_watch_location_expression.
524 (unknown_language_data): Delete la_watch_location_expression
525 initializer.
526 (auto_language_data): Likewise.
527 * language.h (language_data): Delete la_watch_location_expression
528 field.
529 (language_defn::watch_location_expression): Declare new member
530 function.
531 * m2-lang.c (m2_language_data): Delete
532 la_watch_location_expression initializer.
533 * objc-lang.c (objc_language_data): Likewise.
534 * opencl-lang.c (opencl_language_data): Likewise.
535 * p-lang.c (pascal_language_data): Likewise.
536 * rust-lang.c (rust_watch_location_expression): Rename to
537 rust_language::watch_location_expression.
538 (rust_language_data): Delete la_watch_location_expression
539 initializer.
540 (rust_language::watch_location_expression): New member function,
541 implementation from rust_watch_location_expression.
542
7e56227d
AB
5432020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
544
545 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
546 ada_language::collect_symbol_completion_matches.
547 (ada_language_data): Delete la_collect_symbol_completion_matches
548 initializer.
549 (ada_language::collect_symbol_completion_matches): New member
550 function, implementation from
551 ada_collect_symbol_completion_matches.
552 * c-lang.c (c_language_data): Delete
553 la_collect_symbol_completion_matches initializer.
554 (cplus_language_data): Likewise.
555 (asm_language_data): Likewise.
556 (minimal_language_data): Likewise.
557 * d-lang.c (d_language_data): Likewise.
558 * f-lang.c (f_collect_symbol_completion_matches): Rename to
559 f_language::collect_symbol_completion_matches.
560 (f_language_data): Delete la_collect_symbol_completion_matches
561 initializer.
562 (f_language::collect_symbol_completion_matches) New member
563 function, implementation from f_collect_symbol_completion_matches.
564 * go-lang.c (go_language_data): Delete
565 la_collect_symbol_completion_matches initializer.
566 * language.c (unknown_language_data): Likewise.
567 (auto_language_data): Likewise.
568 * language.h (language_data): Delete
569 la_collect_symbol_completion_matches field.
570 (language_defn::collect_symbol_completion_matches): New member
571 function.
572 * m2-lang.c (m2_language_data): Delete
573 la_collect_symbol_completion_matches initializer.
574 * objc-lang.c (objc_language_data): Likewise.
575 * opencl-lang.c (opencl_language_data): Likewise.
576 * p-lang.c (pascal_language_data): Likewise.
577 * rust-lang.c (rust_language_data): Likewise.
578 * symtab.c (default_collect_symbol_completion_matches): Delete.
579 (collect_symbol_completion_matches): Update call to
580 collect_symbol_completion_matches.
581 (collect_symbol_completion_matches_type): Likewise.
582 * symtab.h (default_collect_symbol_completion_matches): Delete
583 declaration.
584
53fc67f8
AB
5852020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
586
587 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
588 (ada_language_data): Delete la_word_break_characters initializer.
589 (ada_language::word_break_characters): New member function.
590 * c-lang.c (c_language_data): Delete la_word_break_characters
591 initializer.
592 (cplus_language_data): Likewise.
593 (asm_language_data): Likewise.
594 (minimal_language_data): Likewise.
595 * completer.c: Update global comment.
596 (advance_to_expression_complete_word_point): Update call to
597 word_break_characters.
598 (complete_files_symbols): Likewise.
599 (complete_line_internal_1): Likewise.
600 (default_completer_handle_brkchars): Likewise.
601 (skip_quoted_chars): Likewise.
602 * d-lang.c (d_language_data): Delete la_word_break_characters
603 initializer.
604 * f-lang.c (f_word_break_characters): Delete.
605 (f_language_data): Delete la_word_break_characters initializer.
606 (f_language::word_break_characters): New member function.
607 * go-lang.c (go_language_data): Delete la_word_break_characters
608 initializer.
609 * language.c (unknown_language_data): Likewise.
610 (auto_language_data): Likewise.
611 * language.h (default_word_break_characters): Move declaration to
612 earlier in the file.
613 (language_data): Delete la_word_break_characters field.
614 (language_defn::word_break_characters): New member function.
615 * m2-lang.c (m2_language_data): Delete la_word_break_characters
616 initializer.
617 * objc-lang.c (objc_language_data): Likewise.
618 * opencl-lang.c (opencl_language_data): Likewise.
619 * p-lang.c (pascal_language_data): Likewise.
620 * rust-lang.c (rust_language_data): Likewise.
621
c9debfb9
AB
6222020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
623
624 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
625 (ada_language_data): Delete la_get_symbol_name_matcher
626 initializer.
627 (language_defn::get_symbol_name_matcher_inner): New member
628 function.
629 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
630 initializer.
631 (cplus_language_data): Likewise.
632 (cplus_language::get_symbol_name_matcher_inner): New member
633 function.
634 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
635 (minimal_language_data): Likewise.
636 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
637 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
638 initializer.
639 * dictionary.c (iter_match_first_hashed): Update call to
640 get_symbol_name_matcher.
641 (iter_match_next_hashed): Likewise.
642 (iter_match_next_linear): Likewise.
643 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
644 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
645 initializer.
646 (f_language::get_symbol_name_matcher_inner): New member function.
647 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
648 initializer.
649 * language.c (default_symbol_name_matcher): Update header comment,
650 make static.
651 (language_defn::get_symbol_name_matcher): New definition.
652 (language_defn::get_symbol_name_matcher_inner): Likewise.
653 (get_symbol_name_matcher): Delete.
654 (unknown_language_data): Delete la_get_symbol_name_matcher
655 initializer.
656 (auto_language_data): Likewise.
657 * language.h (language_data): Delete la_get_symbol_name_matcher
658 field.
659 (language_defn::get_symbol_name_matcher): New member function.
660 (language_defn::get_symbol_name_matcher_inner): Likewise.
661 (default_symbol_name_matcher): Delete declaration.
662 * linespec.c (find_methods): Update call to
663 get_symbol_name_matcher.
664 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
665 initializer.
666 * minsyms.c (lookup_minimal_symbol): Update call to
667 get_symbol_name_matcher.
668 (iterate_over_minimal_symbols): Likewise.
669 * objc-lang.c (objc_language_data): Delete
670 la_get_symbol_name_matcher initializer.
671 * opencl-lang.c (opencl_language_data): Likewise.
672 * p-lang.c (pascal_language_data): Likewise.
673 * psymtab.c (psymbol_name_matches): Update call to
674 get_symbol_name_matcher.
675 * rust-lang.c (rust_language_data): Delete
676 la_get_symbol_name_matcher initializer.
677 * symtab.c (symbol_matches_search_name): Update call to
678 get_symbol_name_matcher.
679 (compare_symbol_name): Likewise.
680
9a49ad8c
AB
6812020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
682
683 * ada-lang.c (ada_language_data): Delete la_compute_program
684 initializer.
685 * c-lang.c (c_language_data): Likewise.
686 (c_language::compute_program): New member function.
687 (cplus_language_data): Delete la_compute_program initializer.
688 (cplus_language::compute_program): New member function.
689 (asm_language_data): Delete la_compute_program initializer.
690 (minimal_language_data): Likewise.
691 * c-lang.h (c_compute_program): Update comment.
692 (cplus_compute_program): Likewise.
693 * compile/compile-c-support.c (c_compute_program): Likewise.
694 (cplus_compute_program): Likewise.
695 * compile/compile.c (compile_to_object): Update call to
696 la_compute_program.
697 * d-lang.c (d_language_data): Delete la_compute_program
698 initializer.
699 * f-lang.c (f_language_data): Likewise.
700 * go-lang.c (go_language_data): Likewise.
701 * language.c (unknown_language_data): Likewise.
702 (auto_language_data): Likewise.
703 * language.h (language_data): Delete la_compute_program field.
704 (language_defn::compute_program): New member function.
705 * m2-lang.c (m2_language_data): Delete la_compute_program
706 initializer.
707 * objc-lang.c (objc_language_data): Likewise.
708 * opencl-lang.c (opencl_language_data): Likewise.
709 * p-lang.c (pascal_language_data): Likewise.
710 * rust-lang.c (rust_language_data): Likewise.
711
eff93b4d
AB
7122020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
713
714 * ada-lang.c (ada_language_data) Delete
715 la_class_name_from_physname initializer.
716 * c-lang.c (c_language_data): Likewise.
717 (cplus_language_data): Likewise.
718 (cplus_language::class_name_from_physname): New member function.
719 (asm_language_data): Delete la_class_name_from_physname
720 initializer.
721 (minimal_language_data): Likewise.
722 * d-lang.c (d_language_data): Likewise.
723 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
724 method on language_defn class.
725 (guess_full_die_structure_name): Likewise.
726 * f-lang.c (f_language_data): Delete la_class_name_from_physname
727 initializer.
728 * go-lang.c (go_language_data): Likewise.
729 * language.c (language_class_name_from_physname): Delete.
730 (unk_lang_class_name): Delete.
731 (unknown_language_data): Delete la_class_name_from_physname
732 initializer.
733 (auto_language_data): Likewise.
734 * language.h (language_data): Delete la_class_name_from_physname
735 field.
736 (language_defn::class_name_from_physname): New function.
737 (language_class_name_from_physname): Delete declaration.
738 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
739 initializer.
740 * objc-lang.c (objc_language_data): Likewise.
741 * opencl-lang.c (opencl_language_data): Likewise.
742 * p-lang.c (pascal_language_data): Likewise.
743 * rust-lang.c (rust_language_data): Likewise.
744
de543742
TT
7452020-06-16 Tom Tromey <tom@tromey.com>
746
747 * tui/tui-data.h (STATUS_NAME): New macro.
748 * tui/tui-layout.c (tui_remove_some_windows)
749 (initialize_known_windows, tui_register_window)
750 (tui_layout_split::remove_windows, initialize_layouts)
751 (tui_new_layout_command): Don't use hard-coded window names.
752
a350efd4
TT
7532020-06-16 Tom Tromey <tom@tromey.com>
754
755 PR tui/25348:
756 * tui/tui.c (tui_ensure_readline_initialized): Rename from
757 tui_initialize_readline. Only run once. Call rl_initialize.
758 * tui/tui.h (tui_ensure_readline_initialized): Rename from
759 tui_initialize_readline.
760 * tui/tui-io.c (tui_setup_io): Call
761 tui_ensure_readline_initialized.
762 * tui/tui-interp.c (tui_interp::init): Update.
763
39ec0490
TT
7642020-06-16 Tom Tromey <tom@tromey.com>
765
766 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
767 Also preserve the status window.
768
d2d1ea20
TT
7692020-06-16 Tom Tromey <tom@tromey.com>
770
771 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
772 where m_window==nullptr.
773
66920317
TT
7742020-06-15 Tom Tromey <tromey@adacore.com>
775
776 * windows-nat.c (windows_nat::handle_output_debug_string):
777 Update.
778 (windows_nat::handle_ms_vc_exception): Update.
779 * target.h (target_read_string): Change API.
780 * target.c (target_read_string): Change API.
781 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
782 Update.
783 * solib-frv.c (frv_current_sos): Update.
784 * solib-dsbt.c (dsbt_current_sos): Update.
785 * solib-darwin.c (darwin_current_sos): Update.
786 * linux-thread-db.c (inferior_has_bug): Update.
787 * expprint.c (print_subexp_standard): Update.
788 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
789 (ada_exception_message_1): Update.
790
a5d871dd
TT
7912020-06-15 Tom Tromey <tromey@adacore.com>
792
793 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
794
670e35fa
TT
7952020-06-15 Tom Tromey <tromey@adacore.com>
796
797 * valprint.c (read_string): Update comment.
798 * target.c (MIN): Remove.
799 (target_read_string): Rewrite.
800
f5272a3b
TT
8012020-06-15 Tom Tromey <tromey@adacore.com>
802
803 * corefile.c (read_memory_string): Remove.
804 * ada-valprint.c (ada_value_print_ptr): Update.
805 * ada-lang.h (ada_tag_name): Change return type.
806 * ada-lang.c (type_from_tag): Update.
807 (ada_tag_name_from_tsd): Change return type. Use
808 target_read_string.
809 (ada_tag_name): Likewise.
810 * gdbcore.h (read_memory_string): Don't declare.
811
2c074f49
HD
8122020-06-14 Hannes Domani <ssbssa@yahoo.de>
813
814 * symtab.c (rbreak_command): Ignore Windows drive colon.
815
6a17d503
SM
8162020-06-12 Simon Marchi <simon.marchi@efficios.com>
817
818 * NEWS: Mention removed GDBserver host support.
819
453c733f
NC
8202020-06-12 Nelson Chu <nelson.chu@sifive.com>
821
822 * features/riscv/rebuild-csr-xml.sh: Updated.
823
2b4e6a3f
TT
8242020-06-11 Tom Tromey <tom@tromey.com>
825
826 PR gdb/18318:
827 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
828
4412332f
JG
8292020-06-09 Jonny Grant <jg@jguk.org>
8302020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
831
832 * main.c (captured_main_1): Don't print new line after help.
833 (print_gdb_help): add mailing list and IRC channel information
834 to --help. Add new lines between items in the footer. Remove
835 quotes around bug url.
836
2f33032a
KS
8372020-06-11 Keith Seitz <keiths@redhat.com>
838
839 PR gdb/21356
840 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
841 Resolve typedefs for type length calculations.
842
7ab96794
TV
8432020-06-10 Tom de Vries <tdevries@suse.de>
844
845 PR ada/24713
846 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
847 (write_psymbols): Enable .gdb_index for ada.
848 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
849 ada.
850
e5f3ece2
TV
8512020-06-10 Tom de Vries <tdevries@suse.de>
852
853 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
854 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
855 namei" instead of "const char *name" argument.
856 (dw2_map_matching_symbols): Use "offset_type namei" variant of
857 dw2_symtab_iter_init.
858
940da03e
SM
8592020-06-08 Simon Marchi <simon.marchi@efficios.com>
860
861 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
862 to use type::field and field::type instead.
863
b6cdac4b
SM
8642020-06-08 Simon Marchi <simon.marchi@efficios.com>
865
866 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
867 to use field::type instead.
868
5d14b6e5
SM
8692020-06-08 Simon Marchi <simon.marchi@efficios.com>
870
871 * gdbtypes.h (struct field) <type, set_type>: New methods.
872 Rename `type` field to...
873 <m_type>: ... this. Change references throughout to use type or
874 set_type methods.
875 (FIELD_TYPE): Use field::type. Change call sites that modify
876 the field's type to use field::set_type instead.
877
3d967001
SM
8782020-06-08 Simon Marchi <simon.marchi@efficios.com>
879
880 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
881 to use type::index_type instead.
882
262abc0d
SM
8832020-06-08 Simon Marchi <simon.marchi@efficios.com>
884
885 * gdbtypes.h (struct type) <index_type, set_index_type>: New
886 methods.
887 (TYPE_INDEX_TYPE): Use type::index_type.
888 * gdbtypes.c (create_array_type_with_stride): Likewise.
889
82836c92
TT
8902020-06-07 Tom Tromey <tom@tromey.com>
891
892 * valprint.c (generic_val_print_float): Remove "embedded_offset"
893 parameter.
894 (generic_value_print): Update.
895
940dace9
AB
8962020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
897
898 Revert commit 982a38f60b0.
899 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
900
982a38f6
AB
9012020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
902
903 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
904 avoid use after free.
905
82f06518
TV
9062020-06-05 Tom de Vries <tdevries@suse.de>
907
908 * NEWS: Fix typos.
909
f8c41851
SM
9102020-06-04 Simon Marchi <simon.marchi@efficios.com>
911
912 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
913 the per_bfd object.
914 (dwarf2_read_debug_names): Likewise.
915 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
916 object when re-using a per_bfd object with an index.
917
f9b5d5ea
TV
9182020-06-03 Tom de Vries <tdevries@suse.de>
919
920 PR symtab/26046
921 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
922 children for C++.
923 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
924 DW_TAG_subprogram.
925
f6eee2d0
AB
9262020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
927
928 * ada-lang.c (ada_language_data): Delete skip_trampoline
929 initializer.
930 * c-lang.c (c_language_data): Likewise.
931 (cplus_language_data): Likewise.
932 (cplus_language::skip_trampoline): New member function.
933 (asm_language_data): Delete skip_trampoline initializer.
934 (minimal_language_data): Likewise.
935 * d-lang.c (d_language_data): Likewise.
936 * f-lang.c (f_language_data): Likewise.
937 * go-lang.c (go_language_data): Likewise.
938 * language.c (unk_lang_trampoline): Delete function.
939 (skip_language_trampoline): Update.
940 (unknown_language_data): Delete skip_trampoline initializer.
941 (auto_language_data): Likewise.
942 * language.h (language_data): Delete skip_trampoline field.
943 (language_defn::skip_trampoline): New function.
944 * m2-lang.c (m2_language_data): Delete skip_trampoline
945 initializer.
946 * objc-lang.c (objc_skip_trampoline): Delete function, move
947 implementation to objc_language::skip_trampoline.
948 (objc_language_data): Delete skip_trampoline initializer.
949 (objc_language::skip_trampoline): New member function with
950 implementation from objc_skip_trampoline.
951 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
952 initializer.
953 * p-lang.c (pascal_language_data): Likewise.
954 * rust-lang.c (rust_language_data): Likewise.
955
0a50df5d
AB
9562020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
957
958 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
959 (ada_language::demangle): New member function.
960 * c-lang.c (c_language_data): Delete la_demangle initializer.
961 (cplus_language_data): Delete la_demangle initializer.
962 (cplus_language::demangle): New member function.
963 (asm_language_data): Delete la_demangle initializer.
964 (minimal_language_data): Delete la_demangle initializer.
965 * d-lang.c (d_language_data): Delete la_demangle initializer.
966 (d_language::demangle): New member function.
967 * f-lang.c (f_language_data): Delete la_demangle initializer.
968 (f_language::demangle): New member function.
969 * go-lang.c (go_language_data): Delete la_demangle initializer.
970 (go_language::demangle): New member function.
971 * language.c (language_demangle): Update.
972 (unk_lang_demangle): Delete.
973 (unknown_language_data): Delete la_demangle initializer.
974 (unknown_language::demangle): New member function.
975 (auto_language_data): Delete la_demangle initializer.
976 (auto_language::demangle): New member function.
977 * language.h (language_data): Delete la_demangle field.
978 (language_defn::demangle): New function.
979 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
980 * objc-lang.c (objc_language_data): Delete la_demangle
981 initializer.
982 (objc_language::demangle): New member function.
983 * opencl-lang.c (opencl_language_data): Delete la_demangle
984 initializer.
985 * p-lang.c (pascal_language_data): Likewise.
986 * rust-lang.c (rust_language_data): Likewise.
987 (rust_language::demangle): New member function.
988
fbfb0a46
AB
9892020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
990
991 * ada-lang.c (ada_language_data): Delete la_print_type
992 initializer.
993 (ada_language::print_type): New member function.
994 * c-lang.c (c_language_data): Delete la_print_type initializer.
995 (c_language::print_type): New member function.
996 (cplus_language_data): Delete la_print_type initializer.
997 (cplus_language::print_type): New member function.
998 (asm_language_data): Delete la_print_type initializer.
999 (asm_language::print_type): New member function.
1000 (minimal_language_data): Delete la_print_type initializer.
1001 (minimal_language::print_type): New member function.
1002 * d-lang.c (d_language_data): Delete la_print_type initializer.
1003 (d_language::print_type): New member function.
1004 * f-lang.c (f_language_data): Delete la_print_type initializer.
1005 (f_language::print_type): New member function.
1006 * go-lang.c (go_language_data): Delete la_print_type initializer.
1007 (go_language::print_type): New member function.
1008 * language.c (unk_lang_print_type): Delete.
1009 (unknown_language_data): Delete la_print_type initializer.
1010 (unknown_language::print_type): New member function.
1011 (auto_language_data): Delete la_print_type initializer.
1012 (auto_language::print_type): New member function.
1013 * language.h (language_data): Delete la_print_type field.
1014 (language_defn::print_type): New function.
1015 (LA_PRINT_TYPE): Update.
1016 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
1017 (m2_language::print_type): New member function.
1018 * objc-lang.c (objc_language_data): Delete la_print_type
1019 initializer.
1020 (objc_language::print_type): New member function.
1021 * opencl-lang.c (opencl_print_type): Delete, implementation moved
1022 to opencl_language::print_type.
1023 (opencl_language_data): Delete la_print_type initializer.
1024 (opencl_language::print_type): New member function, implementation
1025 from opencl_print_type.
1026 * p-lang.c (pascal_language_data): Delete la_print_type
1027 initializer.
1028 (pascal_language::print_type): New member function.
1029 * rust-lang.c (rust_print_type): Delete, implementation moved to
1030 rust_language::print_type.
1031 (rust_language_data): Delete la_print_type initializer.
1032 (rust_language::print_type): New member function, implementation
1033 from rust_print_type.
1034
6f827019
AB
10352020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1036
1037 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
1038 implementation moves to...
1039 (ada_language::sniff_from_mangled_name): ...here. Update return
1040 type.
1041 (ada_language_data): Delete la_sniff_from_mangled_name
1042 initializer.
1043 * c-lang.c (c_language_data): Likewise.
1044 (cplus_language_data): Likewise.
1045 (cplus_language::sniff_from_mangled_name): New member function,
1046 implementation taken from gdb_sniff_from_mangled_name.
1047 (asm_language_data): Delete la_sniff_from_mangled_name
1048 initializer.
1049 (minimal_language_data): Likewise.
1050 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
1051 implementation moves to cplus_language::sniff_from_mangled_name.
1052 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
1053 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
1054 moves to...
1055 (d_language::sniff_from_mangled_name): ...here.
1056 (d_language_data): Delete la_sniff_from_mangled_name initializer.
1057 * f-lang.c (f_language_data): Likewise.
1058 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
1059 moves to...
1060 (go_language::sniff_from_mangled_name): ...here.
1061 (go_language_data): Delete la_sniff_from_mangled_name initializer.
1062 * language.c (language_sniff_from_mangled_name): Delete.
1063 (unknown_language_data): Delete la_sniff_from_mangled_name
1064 initializer.
1065 (auto_language_data): Likewise.
1066 * language.h (language_data): Delete la_sniff_from_mangled_name
1067 field.
1068 (language_defn::sniff_from_mangled_name): New function.
1069 (language_sniff_from_mangled_name): Delete declaration.
1070 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
1071 field.
1072 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
1073 implementation moves to...
1074 (objc_language::sniff_from_mangled_name): ...here.
1075 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
1076 * opencl-lang.c (opencl_language_data): Likewise.
1077 * p-lang.c (pascal_language_data): Likewise.
1078 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
1079 implementation moves to...
1080 (rust_language::sniff_from_mangled_name): ...here.
1081 (rust_language_data): Delete la_sniff_from_mangled_name
1082 initializer.
1083 * symtab.c (symbol_find_demangled_name): Call
1084 sniff_from_mangled_name member function.
1085
fb8006fd
AB
10862020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1087
1088 * ada-lang.c (ada_language_data): Delete la_search_name_hash
1089 initializer.
1090 * c-lang.c (c_language_data): Likewise.
1091 (cplus_language_data): Likewise.
1092 (cplus_language::search_name_hash): New member function.
1093 (asm_language_data): Delete la_search_name_hash initializer.
1094 (minimal_language_data): Likewise.
1095 * d-lang.c (d_language_data): Likewise.
1096 * dictionary.c (default_search_name_hash): Rename to...
1097 (language_defn::search_name_hash): ...this.
1098 * f-lang.c (f_language_data): Likewise.
1099 (f_language::search_name_hash): New member function.
1100 * go-lang.c (go_language_data): Delete la_search_name_hash
1101 initializer.
1102 * language.c (unknown_language_data): Likewise.
1103 (auto_language_data): Likewise.
1104 * language.h (struct language_data): Delete la_search_name_hash
1105 field.
1106 (language_defn::search_name_hash): Declare new member function.
1107 (default_search_name_hash): Delete declaration.
1108 * m2-lang.c (m2_language_data): Delete la_search_name_hash
1109 initializer.
1110 * objc-lang.c (objc_language_data): Likewise.
1111 * opencl-lang.c (opencl_language_data): Likewise.
1112 * p-lang.c (pascal_language_data): Likewise.
1113 * rust-lang.c (rust_language_data): Likewise.
1114 * symtab.c (search_name_hash): Update call.
1115
8e25bafe
AB
11162020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1117
1118 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
1119 initializer.
1120 * c-lang.c (class compile_instance): Declare.
1121 (c_language_data): Delete la_get_compile_instance initializer.
1122 (c_language::get_compile_instance): New member function.
1123 (cplus_language_data): Delete la_get_compile_instance initializer.
1124 (cplus_language::get_compile_instance): New member function.
1125 (asm_language_data): Delete la_get_compile_instance initializer.
1126 (minimal_language_data): Likewise.
1127 * c-lang.h (c_get_compile_context): Update comment.
1128 (cplus_get_compile_context): Update comment.
1129 * compile/compile.c (compile_to_object): Update calls, don't rely
1130 on function pointer being NULL.
1131 * d-lang.c (d_language_data): Delete la_get_compile_instance
1132 initializer.
1133 * f-lang.c (f_language_data): Likewise.
1134 * go-lang.c (go_language_data): Likewise.
1135 * language.c (unknown_language_data): Likewise.
1136 (auto_language_data): Likewise.
1137 * language.h (language_data): Delete la_get_compile_instance field.
1138 (language_defn::get_compile_instance): New member function.
1139 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
1140 initializer.
1141 * objc-lang.c (objc_language_data): Likewise.
1142 * opencl-lang.c (opencl_language_data): Likewise.
1143 * p-lang.c (pascal_language_data): Likewise.
1144 * rust-lang.c (rust_language_data): Likewise.
1145
4009ee92
AB
11462020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1147
1148 * ada-lang.c (ada_add_all_symbols): Update comment.
1149 (ada_iterate_over_symbols): Delete, move implementation to...
1150 (ada_language::iterate_over_symbols): ...here, a new member
1151 function, rewrite to use range based for loop.
1152 (ada_language_data): Delete la_iterate_over_symbols initializer.
1153 * c-lang.c (c_language_data): Likewise.
1154 (cplus_language_data): Likewise.
1155 (asm_language_data): Likewise.
1156 (minimal_language_data): Likewise.
1157 * d-lang.c (d_language_data): Likewise.
1158 * f-lang.c (f_language_data): Likewise.
1159 * go-lang.c (go_language_data): Likewise.
1160 * language.c (unknown_language_data): Likewise.
1161 (auto_language_data): Likewise.
1162 * language.h (language_data): Delete la_iterate_over_symbols field.
1163 (language_defn::iterate_over_symbols): New member function.
1164 (LA_ITERATE_OVER_SYMBOLS): Update.
1165 * linespec.c (iterate_over_all_matching_symtabs): Update.
1166 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
1167 initializer.
1168 * objc-lang.c (objc_language_data): Likewise.
1169 * opencl-lang.c (opencl_language_data): Likewise.
1170 * p-lang.c (pascal_language_data): Likewise.
1171 * rust-lang.c (rust_language_data): Likewise.
1172
54f4ca46
AB
11732020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1174
1175 * ada-lang.c (ada_language_data): Delete
1176 la_lookup_transparent_type initializer.
1177 * c-lang.c (c_language_data): Likewise.
1178 (cplus_language_data): Likewise.
1179 (cplus_language::lookup_transparent_type): New member function.
1180 (asm_language_data): Delete la_lookup_transparent_type
1181 initializer.
1182 (minimal_language_data): Likewise.
1183 * d-lang.c (d_language_data): Likewise.
1184 * f-lang.c (f_language_data): Likewise.
1185 * go-lang.c (go_language_data): Likewise.
1186 * language.c (unknown_language_data): Likewise.
1187 (auto_language_data): Likewise.
1188 * language.h (struct language_data): Delete
1189 la_lookup_transparent_type field.
1190 (language_defn::lookup_transparent_type): New member function.
1191 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
1192 initializer.
1193 * objc-lang.c (objc_language_data): Likewise.
1194 * opencl-lang.c (opencl_language_data): Likewise.
1195 * p-lang.c (pascal_language_data): Likewise.
1196 * rust-lang.c (rust_language_data): Likewise.
1197 * symtab.c (symbol_matches_domain): Update call.
1198
1fb314aa
AB
11992020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1200
1201 * ada-lang.c (ada_language_arch_info): Delete function, move
1202 implementation to...
1203 (ada_language::language_arch_info): ...here, a new member
1204 function.
1205 (ada_language_data): Delete la_language_arch_info.
1206 * c-lang.c (c_language_data): Likewise.
1207 (c_language::language_arch_info): New member function.
1208 (cplus_language_arch_info): Delete function, move
1209 implementation to...
1210 (cplus_language::language_arch_info): ...here, a new member
1211 function.
1212 (cplus_language_data): Delete la_language_arch_info.
1213 (asm_language_data): Likewise.
1214 (asm_language::language_arch_info): New member function.
1215 (minimal_language_data): Delete la_language_arch_info.
1216 (minimal_language::language_arch_info): New member function.
1217 * d-lang.c (d_language_arch_info): Delete function, move
1218 implementation to...
1219 (d_language::language_arch_info): ...here, a new member
1220 function.
1221 (d_language_data): Delete la_language_arch_info.
1222 * f-lang.c (f_language_arch_info): Delete function, move
1223 implementation to...
1224 (f_language::language_arch_info): ...here, a new member
1225 function.
1226 (f_language_data): Delete la_language_arch_info.
1227 * go-lang.c (go_language_arch_info): Delete function, move
1228 implementation to...
1229 (go_language::language_arch_info): ...here, a new member
1230 function.
1231 (go_language_data): Delete la_language_arch_info.
1232 * language.c (unknown_language_data): Likewise.
1233 (unknown_language::language_arch_info): New member function.
1234 (auto_language_data): Delete la_language_arch_info.
1235 (auto_language::language_arch_info): New member function.
1236 (language_gdbarch_post_init): Update call to
1237 la_language_arch_info.
1238 * language.h (language_data): Delete la_language_arch_info
1239 function pointer.
1240 (language_defn::language_arch_info): New function.
1241 * m2-lang.c (m2_language_arch_info): Delete function, move
1242 implementation to...
1243 (m2_language::language_arch_info): ...here, a new member
1244 function.
1245 (m2_language_data): Delete la_language_arch_info.
1246 * objc-lang.c (objc_language_arch_info): Delete function, move
1247 implementation to...
1248 (objc_language::language_arch_info): ...here, a new member
1249 function.
1250 (objc_language_data): Delete la_language_arch_info.
1251 * opencl-lang.c (opencl_language_arch_info): Delete function, move
1252 implementation to...
1253 (opencl_language::language_arch_info): ...here, a new member
1254 function.
1255 (opencl_language_data): Delete la_language_arch_info.
1256 * p-lang.c (pascal_language_arch_info): Delete function, move
1257 implementation to...
1258 (pascal_language::language_arch_info): ...here, a new member
1259 function.
1260 (pascal_language_data): Delete la_language_arch_info.
1261 * rust-lang.c (rust_language_arch_info): Delete function, move
1262 implementation to...
1263 (rust_language::language_arch_info): ...here, a new member
1264 function.
1265 (rust_language_data): Delete la_language_arch_info.
1266
48448202
AB
12672020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1268
1269 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
1270 initializer.
1271 * c-lang.c (c_language_data): Likewise.
1272 (cplus_language_data): Likewise.
1273 (cplus_language::pass_by_reference_info): New method.
1274 (asm_language_data): Delete la_pass_by_reference initializer.
1275 (minimal_language_data): Likewise.
1276 * cp-abi.c (cp_pass_by_reference): Remove use of
1277 default_pass_by_reference.
1278 * d-lang.c (d_language_data): Likewise.
1279 * f-lang.c (f_language_data): Likewise.
1280 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
1281 default_pass_by_reference.
1282 * go-lang.c (go_language_data): Likewise.
1283 * language.c (language_pass_by_reference): Update.
1284 (default_pass_by_reference): Delete.
1285 (unknown_language_data): Delete la_pass_by_reference
1286 initializer.
1287 (auto_language_data): Likewise.
1288 * language.h (struct language_data): Delete la_pass_by_reference
1289 field.
1290 (language_defn::pass_by_reference_info): New member function.
1291 (default_pass_by_reference): Delete declaration.
1292 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
1293 initializer.
1294 * objc-lang.c (objc_language_data): Likewise.
1295 * opencl-lang.c (opencl_language_data): Likewise.
1296 * p-lang.c (pascal_language_data): Likewise.
1297 * rust-lang.c (rust_language_data): Likewise.
1298
15e5fd35
AB
12992020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1300
1301 * ada-lang.c (ada_read_var_value): Delete function, move
1302 implementation to...
1303 (ada_language::read_var_value): ...here.
1304 (ada_language_data): Delete la_read_var_value initializer.
1305 * c-lang.c (c_language_data): Likewise.
1306 (cplus_language_data): Likewise.
1307 (minimal_language_data): Likewise.
1308 * d-lang.c (d_language_data): Likewise.
1309 * f-lang.c (f_language_data): Likewise.
1310 * findvar.c (default_read_var_value): Rename to...
1311 (language_defn::read_var_value): ...this.
1312 * findvar.c (read_var_value): Update header comment, and change to
1313 call member function instead of function pointer.
1314 * go-lang.c (go_language_data): Likewise.
1315 * language.c (unknown_language_data): Delete la_read_var_value
1316 initializer.
1317 (auto_language_data): Likewise.
1318 * language.h (struct language_data): Delete la_read_var_value
1319 field.
1320 (language_defn::read_var_value): New member function.
1321 (default_read_var_value): Delete declaration.
1322 * m2-lang.c (m2_language_data): Delete la_read_var_value
1323 initializer.
1324 * objc-lang.c (objc_language_data): Likewise.
1325 * opencl-lang.c (opencl_language_data): Likewise.
1326 * p-lang.c (pascal_language_data): Likewise.
1327 * rust-lang.c (rust_language_data): Likewise.
1328 * value.h (default_read_var_value): Delete declaration.
1329
5bd40f2a
AB
13302020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1331
1332 * ada-lang.c (ada_print_array_index): Delete function, move
1333 implementation to...
1334 (ada_language::print_array_index): ...here.
1335 (ada_language_data): Delete la_print_array_index initializer.
1336 * c-lang.c (c_language_data): Likewise.
1337 (cplus_language_data): Likewise.
1338 (minimal_language_data): Likewise.
1339 * d-lang.c (d_language_data): Likewise.
1340 * f-lang.c (f_language_data): Likewise.
1341 * go-lang.c (go_language_data): Likewise.
1342 * language.c (default_print_array_index): Delete function, move
1343 implementation to...
1344 (language_defn::print_array_index): ...here.
1345 (unknown_language_data): Delete la_print_array_index initializer.
1346 (auto_language_data): Likewise.
1347 * language.h (struct language_data): Delete la_print_array_index
1348 field.
1349 (language_defn::print_array_index): New member function.
1350 (LA_PRINT_ARRAY_INDEX): Update.
1351 (default_print_array_index): Delete declaration.
1352 * m2-lang.c (m2_language_data): Delete la_print_array_index
1353 initializer.
1354 * objc-lang.c (objc_language_data): Likewise.
1355 * opencl-lang.c (opencl_language_data): Likewise.
1356 * p-lang.c (pascal_language_data): Likewise.
1357 * rust-lang.c (rust_language_data): Likewise.
1358
0874fd07
AB
13592020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
1360
1361 * gdb/ada-lang.c (ada_language_defn): Convert to...
1362 (ada_language_data): ...this.
1363 (class ada_language): New class.
1364 (ada_language_defn): New static global.
1365 * gdb/c-lang.c (c_language_defn): Convert to...
1366 (c_language_data): ...this.
1367 (class c_language): New class.
1368 (c_language_defn): New static global.
1369 (cplus_language_defn): Convert to...
1370 (cplus_language_data): ...this.
1371 (class cplus_language): New class.
1372 (cplus_language_defn): New static global.
1373 (asm_language_defn): Convert to...
1374 (asm_language_data): ...this.
1375 (class asm_language): New class.
1376 (asm_language_defn): New static global.
1377 (minimal_language_defn): Convert to...
1378 (minimal_language_data): ...this.
1379 (class minimal_language): New class.
1380 (minimal_language_defn): New static global.
1381 * gdb/d-lang.c (d_language_defn): Convert to...
1382 (d_language_data): ...this.
1383 (class d_language): New class.
1384 (d_language_defn): New static global.
1385 * gdb/f-lang.c (f_language_defn): Convert to...
1386 (f_language_data): ...this.
1387 (class f_language): New class.
1388 (f_language_defn): New static global.
1389 * gdb/go-lang.c (go_language_defn): Convert to...
1390 (go_language_data): ...this.
1391 (class go_language): New class.
1392 (go_language_defn): New static global.
1393 * gdb/language.c (unknown_language_defn): Remove declaration.
1394 (current_language): Initialize to nullptr, real initialization is
1395 moved to _initialize_language.
1396 (languages): Delete global.
1397 (language_defn::languages): Define.
1398 (set_language_command): Use language_defn::languages.
1399 (set_language): Likewise.
1400 (range_error): Likewise.
1401 (language_enum): Likewise.
1402 (language_def): Likewise.
1403 (add_set_language_command): Use language_def::languages for the
1404 language list, and language_def to lookup language pointers.
1405 (skip_language_trampoline): Use language_defn::languages.
1406 (unknown_language_defn): Convert to...
1407 (unknown_language_data): ...this.
1408 (class unknown_language): New class.
1409 (unknown_language_defn): New static global.
1410 (auto_language_defn): Convert to...
1411 (auto_language_data): ...this.
1412 (class auto_language): New class.
1413 (auto_language_defn): New static global.
1414 (language_gdbarch_post_init): Use language_defn::languages.
1415 (_initialize_language): Initialize current_language.
1416 * gdb/language.h (struct language_defn): Rename to...
1417 (struct language_data): ...this.
1418 (struct language_defn): New.
1419 (auto_language_defn): Delete.
1420 (unknown_language_defn): Delete.
1421 (minimal_language_defn): Delete.
1422 (ada_language_defn): Delete.
1423 (asm_language_defn): Delete.
1424 (c_language_defn): Delete.
1425 (cplus_language_defn): Delete.
1426 (d_language_defn): Delete.
1427 (f_language_defn): Delete.
1428 (go_language_defn): Delete.
1429 (m2_language_defn): Delete.
1430 (objc_language_defn): Delete.
1431 (opencl_language_defn): Delete.
1432 (pascal_language_defn): Delete.
1433 (rust_language_defn): Delete.
1434 * gdb/m2-lang.c (m2_language_defn): Convert to...
1435 (m2_language_data): ...this.
1436 (class m2_language): New class.
1437 (m2_language_defn): New static global.
1438 * gdb/objc-lang.c (objc_language_defn): Convert to...
1439 (objc_language_data): ...this.
1440 (class objc_language): New class.
1441 (objc_language_defn): New static global.
1442 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
1443 (opencl_language_data): ...this.
1444 (class opencl_language): New class.
1445 (opencl_language_defn): New static global.
1446 * gdb/p-lang.c (pascal_language_defn): Convert to...
1447 (pascal_language_data): ...this.
1448 (class pascal_language): New class.
1449 (pascal_language_defn): New static global.
1450 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
1451 language pointer, update comment format.
1452 * gdb/rust-lang.c (rust_language_defn): Convert to...
1453 (rust_language_data): ...this.
1454 (class rust_language): New class.
1455 (rust_language_defn): New static global.
1456
1313c56e
AB
14572020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
1458
1459 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
1460 member variable.
1461 <m_stmt_at_address>: New member variable.
1462 (lnp_state_machine::record_line): Don't record some lines, update
1463 tracking of is_stmt at the same address.
1464 (lnp_state_machine::lnp_state_machine): Initialise new member
1465 variables.
1466
b7ed9f3d
ST
14672020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
1468
1469 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
1470 "-include gnu-nat-mig.h".
1471 * gnu-nat-mig.h: New file.
1472 * gnu-nat.c: Include "gnu-nat-mig.h".
1473 (exc_server, msg_reply_server, notify_server,
1474 process_reply_server): Remove declarations.
1475
14a8ad62
ST
14762020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
1477
1478 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
1479 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
1480 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
1481 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
1482 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
1483 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
1484 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
1485 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
1486 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
1487 to gnu_nat_target class.
1488 * gnu-nat.c: Likewise.
1489 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
1490 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
1491 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
1492 object.
1493 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
1494 instead of `gnu_target'.
1495
0af5e106
ST
14962020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
1497
1498 * i386-gnu-tdep.c: Include "gdbcore.h"
1499 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
1500 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
1501 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
1502 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
1503 i386_gnu_sigcontext_addr): New functions
1504 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
1505 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
1506 tdep.
1507
078f2fc9
ST
15082020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
1509
1510 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
1511 before fork_inferior call. Avoid calling it if target_is_pushed returns
1512 true.
1513
53dff92c
ST
15142020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
1515
1516 * gnu-nat.h (gnu_target): New variable declaration.
1517 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
1518 gnu_target.
1519 * gnu-nat.c (gnu_target): New variable.
1520 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
1521 add_thread_silent, and add_thread calls.
1522 (gnu_nat_target::create_inferior): Pass gnu_target to
1523 add_thread_silent, thread_change_ptid call.
1524 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
1525 call.
1526
5a8b8627
ST
15272020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
1528
1529 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
1530 (gnu_nat_target::find_memory_regions): Remove unused
1531 `old_address' variable.
1532
366f550a
ST
15332020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
1534
1535 * gnu-nat.c: Include "gdbarch.h".
1536
f14871bf
ST
15372020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
1538
1539 * reply_mig_hack.awk (Error return): Cast function through
1540 void *, to bypass compiler function call check.
1541
c6887cfb
ST
15422020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
1543
1544 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
1545 $(srcdir)/reply_mig_hack.awk.
1546
6930bffe
ST
15472020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
1548
1549 * gnu-nat.h (gnu_debug_flag): Set type to bool.
1550
112c22ed
JG
15512020-05-30 Jonny Grant <jg@jguk.org>
1552
1553 * configure.ac (ACX_BUGURL): change bug URL to https.
1554
f68f85b5
PA
15552020-05-30 Pedro Alves <palves@redhat.com>
1556
1557 * cp-support.c (replace_typedefs_template): New.
1558 (replace_typedefs_qualified_name): Handle
1559 DEMANGLE_COMPONENT_TEMPLATE.
1560
976ca316
SM
15612020-05-29 Simon Marchi <simon.marchi@efficios.com>
1562
1563 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
1564 dwarf2/index-cache.h, dwarf2/index-write.c,
1565 dwarf2/index-write.h, dwarf2/line-header.c,
1566 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
1567 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
1568 variables and fields from `dwarf2_per_objfile` to just
1569 `per_objfile` throughout.
1570
989ade05
SM
15712020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
1572
1573 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
1574 <push_dwarf_reg_entry_value>: Add comment.
1575
c47bae85
KB
15762020-05-28 Kevin Buettner <kevinb@redhat.com>
1577 Keith Seitz <keiths@redhat.com>
1578
1579 * python/python.c (do_start_initialization): Call PyEval_SaveThread
1580 instead of PyEval_ReleaseLock.
1581 (class gdbpy_gil): Move to earlier in file.
1582 (finalize_python): Set gdb_python_initialized.
1583 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
1584 when not initialized.
1585
44486dcf
SM
15862020-05-28 Simon Marchi <simon.marchi@efficios.com>
1587
1588 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
1589 <push_dwarf_reg_entry_value>: Remove assert. Override
1590 per_objfile with caller_per_objfile.
1591
f030440d
TV
15922020-05-28 Tom de Vries <tdevries@suse.de>
1593
1594 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
1595 PR gold/15646 workaround to symbol kind "type".
1596
f0fbb768
TT
15972020-05-27 Tom Tromey <tromey@adacore.com>
1598
1599 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
1600
af0b2a3e
TT
16012020-05-27 Tom Tromey <tromey@adacore.com>
1602
1603 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
1604 Use htab_find_with_hash.
1605 <add_abbrev>: Remove "abbrev_number" parameter.
1606 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
1607 "abbrev_number" parameter. Use htab_find_slot_with_hash.
1608 (hash_abbrev): Add comment.
1609 (abbrev_table::lookup_abbrev): Move to header file.
1610 (abbrev_table::read): Update.
1611
7d00ffec
TT
16122020-05-27 Tom Tromey <tromey@adacore.com>
1613
1614 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
1615 method.
1616 <canonical_name>: New member.
1617 <raw_name>: Rename from "name".
1618 (partial_die_info): Initialize canonical_name.
1619 (scan_partial_symbols): Check raw_name.
1620 (partial_die_parent_scope, partial_die_full_name)
1621 (add_partial_symbol, add_partial_subprogram)
1622 (add_partial_enumeration, load_partial_dies): Use "name" method.
1623 (partial_die_info::name): New method.
1624 (partial_die_info::read, guess_partial_die_structure_name)
1625 (partial_die_info::fixup): Update.
1626
697bba18
TT
16272020-05-27 Tom Tromey <tromey@adacore.com>
1628
1629 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
1630 <get_ref_die_offset>: Inline.
1631 <get_ref_die_offset_complaint>: New method.
1632 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
1633 (attribute::get_ref_die_offset_complaint): Rename from
1634 get_ref_die_offset. Just issue complaint.
1635
c17ace43
HD
16362020-05-27 Hannes Domani <ssbssa@yahoo.de>
1637
1638 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
1639
96445f0b
HD
16402020-05-27 Hannes Domani <ssbssa@yahoo.de>
1641
1642 * exec.c (exec_file_attach): Use errno value of first openp failure.
1643
ac637ec3
HD
16442020-05-27 Hannes Domani <ssbssa@yahoo.de>
1645
1646 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
1647 Don't close thread handle.
1648
17ee85fc
TT
16492020-05-27 Tom Tromey <tom@tromey.com>
1650 Simon Marchi <simon.marchi@efficios.com>
1651
1652 * objfiles.h (struct objfile) <partial_symtabs>: Now a
1653 shared_ptr.
1654 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
1655 member.
1656 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
1657 dwarf2_per_bfd_objfile_data_key>: New globals.
1658 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
1659 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
1660 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
1661 shared.
1662 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
1663 short-circuit when sharing.
1664 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
1665 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
1666
39b16f87
SM
16672020-05-27 Simon Marchi <simon.marchi@efficios.com>
1668
1669 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
1670 to...
1671 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
1672 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
1673
fcf23d5b
SM
16742020-05-27 Simon Marchi <simon.marchi@efficios.com>
1675
1676 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
1677 build_name_components, find_name_components_bounds>:
1678 Add per_objfile parameter.
1679 (struct mapped_index) <symbol_name_at>: Likewise.
1680 (struct mapped_debug_names): Remove constructor.
1681 <dwarf2_per_objfile>: Remove field.
1682 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
1683 (mapped_index_base::find_name_components_bounds,
1684 mapped_index_base::build_name_components,
1685 dw2_expand_symtabs_matching_symbol): Likewise.
1686 (class mock_mapped_index) <symbol_name_at>: Likewise.
1687 (check_match): Likewise.
1688 (check_find_bounds_finds): Likewise.
1689 (test_mapped_index_find_name_component_bounds): Update.
1690 (CHECK_MATCH): Update.
1691 (dw2_expand_symtabs_matching): Update.
1692 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
1693 per_objfile parameter.
1694 <find_vec_in_debug_names>: Likewise.
1695 <m_per_objfile>: New field.
1696 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
1697 parameter.
1698 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
1699 (dw2_debug_names_iterator::next): Update.
1700 (dw2_debug_names_lookup_symbol): Update.
1701 (dw2_debug_names_expand_symtabs_for_function): Update.
1702 (dw2_debug_names_map_matching_symbols): Update.
1703 (dw2_debug_names_expand_symtabs_matching): Update.
1704 (dwarf2_read_debug_names): Update.
1705
7188ed02
SM
17062020-05-27 Simon Marchi <simon.marchi@efficios.com>
1707
1708 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
1709 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
1710 move to dwarf2_per_objfile.
1711 <read_in_chain>: Remove.
1712 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
1713 remove_all_cus, age_comp_units>: New methods.
1714 <m_dwarf2_cus>: New member.
1715 (struct dwarf2_per_cu_data) <cu>: Remove.
1716 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
1717 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
1718 moved to methods of dwarf2_per_objfile.
1719 (dwarf2_clear_marks): Remove.
1720 (dwarf2_queue_item::~dwarf2_queue_item): Update.
1721 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
1722 (dwarf2_per_bfd::free_cached_comp_units): Remove.
1723 (dwarf2_per_objfile::remove_all_cus): New.
1724 (class free_cached_comp_units) <~free_cached_comp_units>:
1725 Update.
1726 (load_cu): Update.
1727 (dw2_do_instantiate_symtab): Adjust.
1728 (fill_in_sig_entry_from_dwo_entry): Adjust.
1729 (cutu_reader::init_tu_and_read_dwo_dies): Update.
1730 (cutu_reader::cutu_reader): Likewise.
1731 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
1732 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
1733 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
1734 and dwarf2_per_objfile::age_comp_units.
1735 (load_partial_comp_unit): Update.
1736 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
1737 (process_queue): Likewise.
1738 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
1739 backlink.
1740 (dwarf2_read_addr_index): Likewise.
1741 (follow_die_offset): Likewise.
1742 (dwarf2_fetch_die_loc_sect_off): Likewise.
1743 (dwarf2_fetch_constant_bytes): Likewise.
1744 (dwarf2_fetch_die_type_sect_off): Likewise.
1745 (follow_die_sig_1): Likewise.
1746 (load_full_type_unit): Likewise.
1747 (read_signatured_type): Likewise.
1748 (dwarf2_cu::dwarf2_cu): Don't set cu field.
1749 (dwarf2_cu::~dwarf2_cu): Remove.
1750 (dwarf2_per_objfile::get_cu): New.
1751 (dwarf2_per_objfile::set_cu): New.
1752 (age_cached_comp_units): Rename to...
1753 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
1754 to std::unordered_map.
1755 (free_one_cached_comp_unit): Rename to...
1756 (dwarf2_per_objfile::remove_cu): ... this. Adjust
1757 to std::unordered_map.
1758 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
1759 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
1760 a dwarf2_per_objfile in data.
1761 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
1762 (dwarf2_clear_marks): Remove.
1763
2e671100
SM
17642020-05-27 Simon Marchi <simon.marchi@efficios.com>
1765
1766 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
1767 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
1768 (init_tu_and_read_dwo_dies): Likewise.
1769 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
1770 (cutu_reader::cutu_reader): Likewise.
1771 (load_partial_comp_unit): Likewise.
1772 (process_psymtab_comp_unit): Update.
1773 (build_type_psymtabs_1): Update.
1774 (process_skeletonless_type_unit): Update.
1775 (load_full_comp_unit): Update.
1776 (find_partial_die): Update.
1777 (dwarf2_read_addr_index): Update.
1778 (read_signatured_type): Update.
1779
2e6a9f79
SM
17802020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1781
1782 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
1783 m_header_read_in>: New fields.
1784 <get_header>: New method.
1785 * dwarf2/read.c (per_cu_header_read_in): Remove.
1786 (dwarf2_per_cu_data::get_header): New.
1787 (dwarf2_per_cu_data::addr_size): Update.
1788 (dwarf2_per_cu_data::offset_size): Update.
1789 (dwarf2_per_cu_data::ref_addr_size): Update.
1790
1b555f17
SM
17912020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1792
1793 * dwarf2/read.c (load_cu): Return dwarf2_cu.
1794 (dw2_do_instantiate_symtab): Update.
1795 (queue_and_load_all_dwo_tus): Change parameter from
1796 dwarf2_per_cu_data to dwarf2_cu.
1797 (dwarf2_fetch_die_loc_sect_off): Update.
1798 (dwarf2_fetch_constant_bytes): Update.
1799 (dwarf2_fetch_die_type_sect_off): Update.
1800
8fc0b21d
SM
18012020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1802
1803 * dwarf2/read.c (process_full_comp_unit,
1804 process_full_type_unit): Remove per_cu, per_objfile paramters.
1805 Add dwarf2_cu parameter.
1806 (process_queue): Update.
1807
168c9250
SM
18082020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1809
1810 * dwarf2/read.c (create_cu_from_index_list): Replace
1811 dwarf2_per_objfile parameter with dwarf2_per_bfd.
1812 (create_cus_from_index_list): Likewise.
1813 (create_cus_from_index): Likewise.
1814 (create_signatured_type_table_from_index): Likewise.
1815 (create_cus_from_debug_names_list): Likewise.
1816 (create_cus_from_debug_names): Likewise.
1817 (dwarf2_read_gdb_index): Update.
1818 (dwarf2_read_debug_names): Update.
1819
e286671b
TT
18202020-05-27 Tom Tromey <tom@tromey.com>
1821 Simon Marchi <simon.marchi@efficios.com>
1822
1823 * dwarf2/read.h (struct dwarf2_per_objfile)
1824 <get_type_for_signatured_type, set_type_for_signatured_type>:
1825 New methods.
1826 <m_type_map>: New member.
1827 (struct signatured_type) <type>: Remove.
1828 * dwarf2/read.c
1829 (dwarf2_per_objfile::get_type_for_signatured_type,
1830 dwarf2_per_objfile::set_type_for_signatured_type): New.
1831 (get_signatured_type): Use new methods.
1832
8adb8487
TT
18332020-05-27 Tom Tromey <tom@tromey.com>
1834 Simon Marchi <simon.marchi@efficios.com>
1835
1836 * dwarf2/read.h (struct type_unit_group_unshareable): New.
1837 (struct dwarf2_per_objfile) <type_units>: New member.
1838 <get_type_unit_group_unshareable>: New method.
1839 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
1840 num_symtabs, symtabs>: Remove; move to
1841 type_unit_group_unshareable.
1842 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
1843 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
1844 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
1845
127bbf4b
SM
18462020-05-27 Simon Marchi <simon.marchi@efficios.com>
1847
1848 * dwarf2/read.h (struct dwarf2_per_cu_data):
1849 <dwarf2_per_objfile>: Remove.
1850 * dwarf2/read.c (create_cu_from_index_list): Don't assign
1851 dwarf2_per_objfile.
1852 (create_signatured_type_table_from_index): Likewise.
1853 (create_signatured_type_table_from_debug_names): Likewise.
1854 (create_debug_type_hash_table): Likewise.
1855 (fill_in_sig_entry_from_dwo_entry): Likewise.
1856 (create_type_unit_group): Likewise.
1857 (read_comp_units_from_section): Likewise.
1858 (create_cus_hash_table): Likewise.
1859
f6e649dd
SM
18602020-05-27 Simon Marchi <simon.marchi@efficios.com>
1861
1862 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
1863 dwarf2_per_cu_data::dwarf2_per_objfile.
1864 (compute_compunit_symtab_includes): Likewise.
1865 (dwarf2_cu::start_symtab): Likewise.
1866
aa66c379
SM
18672020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1868
1869 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
1870 parameter.
1871 * dwarf2/read.c (get_die_type_at_offset): Likewise.
1872 (read_namespace_alias): Update.
1873 (lookup_die_type): Update.
1874 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
1875 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
1876 Update.
1877 (disassemble_dwarf_expression): Update.
1878
120ce1b5
SM
18792020-05-27 Simon Marchi <simon.marchi@efficios.com>
1880
1881 * dwarf2/read.h (struct dwarf2_queue_item): Add
1882 dwarf2_per_objfile parameter, assign new parameter.
1883 <per_objfile>: New field.
1884 * dwarf2/read.c (free_one_cached_comp_unit): Add
1885 dwarf2_per_objfile parameter.
1886 (queue_comp_unit): Likewise.
1887 (dw2_do_instantiate_symtab): Update.
1888 (process_psymtab_comp_unit): Update.
1889 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
1890 (process_imported_unit_die): Update.
1891 (queue_and_load_dwo_tu): Update.
1892 (follow_die_offset): Update.
1893 (follow_die_sig_1): Update.
1894
9f47c707
SM
18952020-05-27 Simon Marchi <simon.marchi@efficios.com>
1896
1897 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
1898 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
1899 (read_call_site_scope): Assign per_objfile.
1900 (dwarf2_per_cu_data::objfile): Remove.
1901 * gdbtypes.h (struct call_site) <per_objfile>: New member.
1902 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
1903 dwarf2_per_objfile parameter.
1904 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
1905 dwarf2_per_objfile parameter.
1906 (dwarf_expr_reg_to_entry_parameter): Add output
1907 dwarf2_per_objfile parameter.
1908 (locexpr_get_frame_base): Update.
1909 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
1910 <push_dwarf_reg_entry_value>: Update.
1911 <call_site_to_target_addr>: Update.
1912 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
1913 parameter.
1914 (value_of_dwarf_reg_entry): Update.
1915 (rw_pieced_value): Update.
1916 (indirect_synthetic_pointer): Update.
1917 (dwarf2_evaluate_property): Update.
1918 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
1919 parameter.
1920 (locexpr_read_variable): Update.
1921 (locexpr_get_symbol_read_needs): Update.
1922 (loclist_read_variable): Update.
1923
14095eb3
SM
19242020-05-27 Simon Marchi <simon.marchi@efficios.com>
1925
1926 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
1927 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
1928 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
1929 parameter.
1930 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
1931 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
1932 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
1933 parameter.
1934 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
1935 sect_variable_value): Add dwarf2_per_objfile parameter.
1936 (class dwarf_evaluate_loc_desc) <dwarf_call,
1937 dwarf_variable_value>: Update.
1938 (fetch_const_value_from_synthetic_pointer): Add
1939 dwarf2_per_objfile parameter.
1940 (fetch_const_value_from_synthetic_pointer): Update.
1941 (coerced_pieced_ref): Update.
1942 (class symbol_needs_eval_context) <dwarf_call,
1943 dwarf_variable_value>: Update.
1944 (dwarf2_compile_expr_to_ax): Update.
1945
3c3cd3d4
SM
19462020-05-27 Simon Marchi <simon.marchi@efficios.com>
1947
1948 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
1949 parameter.
1950 (dwarf2_evaluate_loc_desc_full): Update.
1951
82ca3f51
SM
19522020-05-27 Simon Marchi <simon.marchi@efficios.com>
1953
1954 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
1955 parameter.
1956 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
1957 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
1958 dwarf2_per_objfile parameter.
1959 (decode_debug_loc_dwo_addresses): Likewise.
1960 (dwarf2_find_location_expression): Update.
1961 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
1962 (locexpr_describe_location_piece): Add dwarf2_per_objfile
1963 parameter.
1964 (disassemble_dwarf_expression): Add dwarf2_per_objfile
1965 parameter.
1966 (locexpr_describe_location_1): Likewise.
1967 (locexpr_describe_location): Update.
1968
4b167ea1
SM
19692020-05-27 Simon Marchi <simon.marchi@efficios.com>
1970
1971 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
1972 Remove.
1973 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
1974 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
1975 (dwarf2_compile_property_to_c): Update.
1976 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
1977 use text offset from objfile.
1978 (locexpr_tracepoint_var_ref): Update.
1979 (locexpr_generate_c_location): Update.
1980 (loclist_describe_location): Update.
1981 (loclist_tracepoint_var_ref): Update.
1982 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
1983 dwarf2_per_objfile parameter.
1984 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
1985 use text offset from objfile.
1986 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
1987
89b07335
SM
19882020-05-27 Simon Marchi <simon.marchi@efficios.com>
1989
1990 * dwarf2/expr.h (struct dwarf_expr_context)
1991 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
1992 <offset>: Remove.
1993 <per_objfile>: New member.
1994 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
1995 dwarf2_per_objfile parameter. Don't set offset, set
1996 per_objfile.
1997 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
1998 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
1999 a dwarf2_per_objfile object instead of an offset.
2000 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
2001 constructor.
2002 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
2003 to dwarf2_expr_executor constructor. Don't set offset.
2004 (dwarf2_fetch_cfa_info): Update.
2005 (struct dwarf2_frame_cache) <text_offset>: Remove.
2006 <per_objfile>: New field.
2007 (dwarf2_frame_cache): Update.
2008 (dwarf2_frame_prev_register): Update.
2009 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
2010 <dwarf_evaluate_loc_desc>: Add constructor.
2011 (dwarf2_evaluate_loc_desc_full): Update.
2012 (dwarf2_locexpr_baton_eval): Update.
2013 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
2014 Add constructor.
2015 (dwarf2_loc_desc_get_symbol_read_needs): Update.
2016
293e7e51
SM
20172020-05-27 Simon Marchi <simon.marchi@efficios.com>
2018
2019 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
2020 addr_sized_int_type>: Move to dwarf2_cu.
2021 <int_type>: Move to dwarf2_per_objfile.
2022 (struct dwarf2_per_objfile) <int_type>: Move here.
2023 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
2024 addr_sized_int_type>: Move here.
2025 (read_func_scope): Update.
2026 (read_array_type): Update.
2027 (read_tag_string_type): Update.
2028 (attr_to_dynamic_prop): Update.
2029 (dwarf2_per_cu_data::int_type): Rename to...
2030 (dwarf2_per_objfile::int_type): ... this.
2031 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
2032 (dwarf2_cu::addr_sized_int_type): ... this.
2033 (read_subrange_type): Update.
2034 (dwarf2_per_cu_data::addr_type): Rename to...
2035 (dwarf2_cu::addr_type): ... this.
2036 (set_die_type): Update.
2037
64874a40
SM
20382020-05-27 Simon Marchi <simon.marchi@efficios.com>
2039
2040 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
2041 data through per_cu->cu.
2042
4ab09049
SM
20432020-05-27 Simon Marchi <simon.marchi@efficios.com>
2044
2045 * dwarf2/read.c (lookup_dwo_comp_unit): Change
2046 dwarf2_per_cu_data parameter fo dwarf2_cu.
2047 (lookup_dwo_type_unit): Likewise.
2048 (read_cutu_die_from_dwo): Likewise.
2049 (lookup_dwo_unit): Likewise.
2050 (open_and_init_dwo_file): Likewise.
2051 (lookup_dwo_cutu): Likewise.
2052 (lookup_dwo_comp_unit): Likewise.
2053 (lookup_dwo_type_unit): Likewise.
2054 (cutu_reader::init_tu_and_read_dwo_dies): Update.
2055 (cutu_reader::cutu_reader): Update.
2056
47b14e86
SM
20572020-05-27 Simon Marchi <simon.marchi@efficios.com>
2058
2059 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
2060 parameter.
2061 (process_full_type_unit): Likewise.
2062 (process_queue): Update.
2063
43182c09
SM
20642020-05-27 Simon Marchi <simon.marchi@efficios.com>
2065
2066 * dwarf2/read.c (recursively_compute_inclusions): Add
2067 dwarf2_per_objfile parameter.
2068 (compute_compunit_symtab_includes): Likewise.
2069 (process_cu_includes): Update.
2070
7aa104c4
SM
20712020-05-27 Simon Marchi <simon.marchi@efficios.com>
2072
2073 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
2074 parameter.
2075 (create_type_unit_group): Update.
2076 (process_psymtab_comp_unit_reader): Update.
2077 (build_type_psymtabs_reader): Update.
2078
e3beb21d
SM
20792020-05-27 Simon Marchi <simon.marchi@efficios.com>
2080
2081 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
2082 object through m_this_cu->cu.
2083
d460f660
SM
20842020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2085
2086 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
2087 the info parameter.
2088 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
2089
ab432490
SM
20902020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2091
2092 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
2093 per_objfile parameter.
2094 (load_full_type_unit): Add per_objfile parameter.
2095 (read_signatured_type): Likewise.
2096 (load_full_comp_unit): Likewise.
2097 (load_cu): Likewise.
2098 (dw2_do_instantiate_symtab): Likewise.
2099 (dw2_get_file_names): Likewise.
2100 (dw2_map_symtabs_matching_filename): Update.
2101 (dw_expand_symtabs_matching_file_matcher): Update.
2102 (dw2_map_symbol_filenames): Update.
2103 (process_psymtab_comp_unit): Add per_objfile parameter.
2104 (build_type_psymtabs_1): Update.
2105 (process_skeletonless_type_unit): Update.
2106 (dwarf2_build_psymtabs_hard): Update.
2107 (load_partial_comp_unit): Add per_objfile parameter.
2108 (scan_partial_symbols): Update.
2109 (load_full_comp_unit): Add per_objfile parameter.
2110 (process_imported_unit_die): Update.
2111 (create_cus_hash_table): Update.
2112 (find_partial_die): Update.
2113 (dwarf2_read_addr_index): Update.
2114 (follow_die_offset): Update.
2115 (dwarf2_fetch_die_loc_sect_off): Update.
2116 (dwarf2_fetch_constant_bytes): Update.
2117 (dwarf2_fetch_die_type_sect_off): Update.
2118 (follow_die_sig_1): Update.
2119 (load_full_type_unit): Add per_objfile parameter.
2120 (read_signatured_type): Likewise.
2121
313bad1b
SM
21222020-05-27 Simon Marchi <simon.marchi@efficios.com>
2123
2124 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
2125 of objfile_name.
2126
c3699833
SM
21272020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2128
2129 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
2130 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2131 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
2132 field.
2133 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
2134 (create_cus_from_index): Update.
2135 (dwarf2_read_gdb_index): Update.
2136 (create_cus_from_debug_names): Update.
2137 (dwarf2_read_debug_names): Update.
2138 (get_abbrev_section_for_cu): Update.
2139 (create_all_comp_units): Update.
2140 (read_attribute_value): Update.
2141 (get_debug_line_section): Update.
2142 * dwarf2/index-cache.c (index_cache::store): Update.
2143 * dwarf2/index-write.c (save_gdb_index_command): Update.
2144 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
2145
1859c670
SM
21462020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2147
2148 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
2149 member.
2150 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
2151 dwarf2_per_cu_data::per_bfd.
2152 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
2153 (create_type_unit_group): Likewise.
2154 (queue_comp_unit): Remove reference to
2155 per_cu->dwarf2_per_objfile.
2156 (maybe_queue_comp_unit): Likewise.
2157 (fill_in_sig_entry_from_dwo_entry): Assign new field.
2158 (create_cus_hash_table): Assign new field.
2159
5e22e966
SM
21602020-05-27 Simon Marchi <simon.marchi@efficios.com>
2161
2162 * dwarf2/read.c: Replace
2163 dwarf2_cu->per_cu->dwarf2_per_objfile references with
2164 dwarf2_cu->per_objfile throughout.
2165
97a1449a
SM
21662020-05-27 Simon Marchi <simon.marchi@efficios.com>
2167
2168 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
2169 parameter, don't use per_cu->dwarf2_per_objfile.
2170 (dw2_instantiate_symtab): Likewise.
2171 (dw2_find_last_source_symtab): Update.
2172 (dw2_map_expand_apply): Update.
2173 (dw2_lookup_symbol): Update.
2174 (dw2_expand_symtabs_for_function): Update.
2175 (dw2_expand_all_symtabs): Update.
2176 (dw2_expand_symtabs_with_fullname): Update.
2177 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
2178 don't use per_cu->dwarf2_per_objfile.
2179 (dw2_expand_marked_cus): Update.
2180 (dw2_find_pc_sect_compunit_symtab): Update.
2181 (dw2_debug_names_lookup_symbol): Update.
2182 (dw2_debug_names_expand_symtabs_for_function): Update.
2183 (dw2_debug_names_map_matching_symbols): Update.
2184 (dwarf2_psymtab::expand_psymtab): Update.
2185
9e021579
SM
21862020-05-27 Simon Marchi <simon.marchi@efficios.com>
2187
2188 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
2189 <per_objfile>: New member.
2190 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
2191 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
2192 call to dwarf2_cu.
2193 (cutu_reader::cutu_reader): Update.
2194 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
2195
ae090bdb
SM
21962020-05-27 Simon Marchi <simon.marchi@efficios.com>
2197
2198 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
2199 struct dwarf2_per_objfile.
2200 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
2201 dwarf2_per_bfd.
2202 * dwarf2/read.c (set_die_type): Update.
2203 (get_die_type_at_offset): Update.
2204
af758d11
SM
22052020-05-27 Tom Tromey <tom@tromey.com>
2206 Simon Marchi <simon.marchi@efficios.com>
2207
2208 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
2209 method.
2210 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
2211 get_symtab, set_symtab>: New methods.
2212 <m_symtabs>: New field.
2213 (struct dwarf2_psymtab): Derive from partial_symtab.
2214 <readin_p, get_compunit_symtab>: Declare methods.
2215 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
2216 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
2217 New methods.
2218 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
2219 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
2220 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
2221 (dw2_symtab_iter_next, dw2_print_stats)
2222 (dw2_expand_symtabs_with_fullname)
2223 (dw2_expand_symtabs_matching_one)
2224 (dw_expand_symtabs_matching_file_matcher)
2225 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
2226 (dw2_debug_names_iterator::next)
2227 (dw2_debug_names_map_matching_symbols)
2228 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
2229 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
2230 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
2231 New methods.
2232 (get_compunit_symtab, process_full_comp_unit)
2233 (process_full_type_unit): Update.
2234 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
2235
5989a64e
SM
22362020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
2237
2238 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
2239 then introduce a new dwarf2_per_objfile type.
2240 <read_line_string>: Move to the new dwarf2_per_objfile type.
2241 <objfile>: Likewise.
2242 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
2243 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
2244 dwarf2_per_objfile->per_bfd.
2245 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
2246 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
2247 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
2248 (dwarf2_per_bfd::free_cached_comp_units): ... this.
2249 (dwarf2_has_info): Allocate dwarf2_per_bfd.
2250 (dwarf2_per_objfile::locate_sections): Rename to...
2251 (dwarf2_per_bfd::locate_sections): ... this.
2252 (dwarf2_per_objfile::get_cutu): Rename to...
2253 (dwarf2_per_bfd::get_cutu): ... this.
2254 (dwarf2_per_objfile::get_cu): Rename to...
2255 (dwarf2_per_bfd::get_cu): ... this.
2256 (dwarf2_per_objfile::get_tu): Rename to...
2257 (dwarf2_per_bfd::get_tu): ... this.
2258 (dwarf2_per_objfile::allocate_per_cu): Rename to...
2259 (dwarf2_per_bfd::allocate_per_cu): ... this.
2260 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
2261 (dwarf2_per_bfd::allocate_signatured_type): ... this.
2262 (get_gdb_index_contents_ftype): Change parameter from
2263 dwarf2_per_objfile to dwarf2_per_bfd.
2264 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
2265 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
2266
a50264ba
TT
22672020-05-27 Tom Tromey <tom@tromey.com>
2268 Simon Marchi <simon.marchi@efficios.com>
2269
2270 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
2271 (allocate_piece_closure): Set "per_objfile" member.
2272 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
2273 (locexpr_describe_location, loclist_describe_location): Use new
2274 member.
2275 * dwarf2/read.c (read_call_site_scope)
2276 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2277 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
2278 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
2279 handle_data_member_location): Set per_objfile member.
2280 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
2281 member.
2282 (struct dwarf2_loclist_baton) <per_objfile>: New member.
2283
d3473f0c
TT
22842020-05-27 Tom Tromey <tom@tromey.com>
2285
2286 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
2287 allocate_signatured_type>: Declare new methods.
2288 <m_num_psymtabs>: New member.
2289 (struct dwarf2_per_cu_data) <index>: New member.
2290 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
2291 (dwarf2_per_objfile::allocate_signatured_type): New methods.
2292 (create_cu_from_index_list): Use allocate_per_cu.
2293 (create_signatured_type_table_from_index)
2294 (create_signatured_type_table_from_debug_names)
2295 (create_debug_type_hash_table, add_type_unit)
2296 (read_comp_units_from_section): Use allocate_signatured_type.
2297
5717c425
TT
22982020-05-27 Tom Tromey <tom@tromey.com>
2299
2300 * psymtab.c (partial_map_expand_apply)
2301 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
2302 (psym_lookup_global_symbol_language)
2303 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
2304 (psym_print_stats, psym_expand_symtabs_for_function)
2305 (psym_map_symbol_filenames, psym_map_matching_symbols)
2306 (psym_expand_symtabs_matching)
2307 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
2308 (maintenance_check_psymtabs): Update.
2309 * psympriv.h (struct partial_symtab) <readin_p,
2310 get_compunit_symtab>: Add objfile parameter.
2311 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
2312 Likewise.
2313 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
2314 get_compunit_symtab>: Likewise.
2315 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
2316
45940949
TT
23172020-05-27 Tom Tromey <tom@tromey.com>
2318
2319 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
2320 member.
2321 * dwarf2/read.c (delete_file_name_entry): Fix comment.
2322 (create_cu_from_index_list)
2323 (create_signatured_type_table_from_index)
2324 (create_signatured_type_table_from_debug_names)
2325 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
2326 (dwarf2_create_include_psymtab)
2327 (create_debug_type_hash_table, add_type_unit)
2328 (create_type_unit_group, read_comp_units_from_section)
2329 (dwarf2_compute_name, create_cus_hash_table)
2330 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
2331 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
2332 obstack.
2333 (dw2_get_real_path): Likewise. Change argument to
2334 dwarf2_per_objfile.
2335
f8c6d152
LM
23362020-05-27 Luis Machado <luis.machado@linaro.org>
2337
2338 PR tdep/26000
2339 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
2340 for ldrd (immediate).
2341
e98d2e6d
PW
23422020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2343
2344 * command.h: Add comment giving the name of class_tui.
2345 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
2346 create the fake command for the help for class_tui.
2347
53a47a3e
TT
23482020-05-26 Tom Tromey <tromey@adacore.com>
2349
2350 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
2351 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
2352 (val_atr): New function.
2353 (value_val_atr): Use it.
2354 * ada-valprint.c (print_optional_low_bound): Change low bound
2355 handling for enums.
2356 (val_print_packed_array_elements): Don't call discrete_position.
2357 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
2358 discrete_position for enum types.
2359 * language.c (default_print_array_index): Change type.
2360 * language.h (struct language_defn) <la_print_array_index>: Add
2361 index_type parameter, change type of index_value.
2362 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
2363 (default_print_array_index): Update.
2364 * valprint.c (maybe_print_array_index): Don't call
2365 value_from_longest. Update.
2366 (value_print_array_elements): Don't call discrete_position.
2367
0bc2354b
TT
23682020-05-26 Tom Tromey <tromey@adacore.com>
2369
2370 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
2371 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
2372
1218a4bf
CDA
23732020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
2374
2375 PR gdb/13519
2376 * avr-tdep.c (avr_integer_to_address): Return data or code
2377 address accordingly to the second 'type' argument of the
2378 function.
2379
92651b1d
MW
23802020-05-25 Michael Weghorn <m.weghorn@posteo.de>
2381
2382 * infcmd.c, inferior.h: (construct_inferior_arguments):
2383 Moved function from here to gdbsupport/common-inferior.{h,cc}
2384
0a4f5f8c
TT
23852020-05-23 Tom Tromey <tom@tromey.com>
2386
2387 Revert commit eca1f90c:
2388 * NEWS: Remove entry for completion styling.
2389 * completer.c (_rl_completion_prefix_display_length): Move
2390 declaration later.
2391 (gdb_fnprint): Revert.
2392 (gdb_display_match_list_1): Likewise.
2393 * cli/cli-style.c (completion_prefix_style)
2394 (completion_difference_style, completion_suffix_style): Remove.
2395 (_initialize_cli_style): Revert.
2396 * cli/cli-style.h (completion_prefix_style)
2397 (completion_difference_style, completion_suffix_style): Don't
2398 declare.
2399
e08bd6c5
PA
24002020-05-24 Pedro Alves <palves@redhat.com>
2401
2402 * symtab.c (completion_list_add_name): Return boolean indication
2403 of whether the symbol matched.
2404 (completion_list_add_symbol): Don't try to remove C++ aliases if
2405 the symbol didn't match in the first place.
2406 * symtab.h (completion_list_add_name): Return bool.
2407
ceacbf6e
SM
24082020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
2409
2410 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
2411 type::field.
2412
26f16254
JB
24132020-05-23 Joel Brobecker <brobecker@adacore.com>
2414
2415 GDB 9.2 released.
2416
eca1f90c
TT
24172020-05-23 Tom Tromey <tom@tromey.com>
2418
2419 * NEWS: Add entry for completion styling.
2420 * completer.c (_rl_completion_prefix_display_length): Move
2421 declaration earlier.
2422 (gdb_fnprint): Use completion_style.
2423 (gdb_display_match_list_1): Likewise.
2424 * cli/cli-style.c (completion_prefix_style)
2425 (completion_difference_style, completion_suffix_style): New
2426 globals.
2427 (_initialize_cli_style): Register new globals.
2428 * cli/cli-style.h (completion_prefix_style)
2429 (completion_difference_style, completion_suffix_style): Declare.
2430
51e2cfa2
PA
24312020-05-23 Pedro Alves <palves@redhat.com>
2432
2433 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
2434 (parse_escape): Use ISDIGIT instead of isdigit.
2435 (puts_debug): Use gdb_isprint instead of isprint.
2436 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
2437 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
2438 ISSPACE instead of isspace.
2439 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
2440 instead of isspace.
2441 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
2442 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
2443 instead of isxdigit and ISDIGIT instead of isdigit.
2444
80fc5e77
SM
24452020-05-22 Simon Marchi <simon.marchi@efficios.com>
2446
2447 * gdbtypes.h (struct type) <field>: New method.
2448 (TYPE_FIELDS): Remove, replace all uses with either type::fields
2449 or type::field.
2450
3cabb6b0
SM
24512020-05-22 Simon Marchi <simon.marchi@efficios.com>
2452
2453 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
2454 (TYPE_FIELDS): Use type::fields. Change all call sites that
2455 modify the propery to use type::set_fields instead.
2456
1f704f76
SM
24572020-05-22 Simon Marchi <simon.marchi@efficios.com>
2458
2459 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
2460 type::num_fields instead.
2461
5e33d5f4
SM
24622020-05-22 Simon Marchi <simon.marchi@efficios.com>
2463
2464 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
2465 methods.
2466 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
2467 that modify the number of fields to use type::set_num_fields
2468 instead.
2469
9392ebb3
TT
24702020-05-22 Tom Tromey <tromey@adacore.com>
2471
2472 * compile/compile-object-load.h (munmap_list_free): Don't
2473 declare.
2474
7c13f4e8
AB
24752020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
2476
2477 * annotate.c (annotate_source_line): Update return type, add call
2478 to update current symtab and line.
2479 * annotate.h (annotate_source_line): Update return type, and
2480 extend header comment.
2481 * source.c (info_line_command): Check annotation_level before
2482 calling annotate_source_line.
2483 * stack.c (print_frame_info): If calling annotate_source_line
2484 returns true, then don't print any other source line information.
2485
aa370940
SM
24862020-05-21 Simon Marchi <simon.marchi@efficios.com>
2487
2488 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
2489
84d53fa9
SM
24902020-05-21 Simon Marchi <simon.marchi@efficios.com>
2491
2492 * coffread.c (patch_type): Remove NULL check before xfree.
2493 * corefile.c (set_gnutarget): Likewise.
2494 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
2495 * exec.c (build_section_table): Likewise.
2496 * remote.c (remote_target::pass_signals): Likewise.
2497 * utils.c (n_spaces): Likewise.
2498 * cli/cli-script.c (document_command): Likewise.
2499 * i386-windows-tdep.c (core_process_module_section): Likewise.
2500 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
2501
9d428aae
SM
25022020-05-20 Simon Marchi <simon.marchi@efficios.com>
2503
2504 * symfile.c (reread_symbols): Clear objfile's section_offsets
2505 vector and section indices, re-compute them by calling
2506 sym_offsets.
2507
250106a7
TT
25082020-05-20 Tom Tromey <tromey@adacore.com>
2509
2510 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 2511 (desc_one_bound, desc_index_type): Compute field name.
250106a7 2512
9a0bacfb
TV
25132020-05-20 Tom de Vries <tdevries@suse.de>
2514
2515 PR symtab/25833
2516 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
2517
7b958a48
AM
25182020-05-20 Alan Modra <amodra@gmail.com>
2519
2520 PR 25993
2521 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
2522 bfd_set_filename.
2523 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
2524 passed to bfd_set_filename.
2525 * symfile-mem.c (add_vsyscall_page): Likewise for string
2526 passed to symbol_file_add_from_memory.
2527 (symbol_file_add_from_memory): Make name param a const char* and
2528 don't strdup.
2529
c7e97679
AM
25302020-05-20 Alan Modra <amodra@gmail.com>
2531
2532 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
2533 rather than accessing bfd->filename directly.
2534 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
2535 and use bfd_section_name.
2536 * dwarf2/frame.c (decode_frame_entry): Likewise.
2537 * exec.c (exec_set_section_address): Likewise.
2538 * solib-aix.c (solib_aix_bfd_open): Likewise.
2539 * stap-probe.c (get_stap_base_address): Likewise.
2540 * symfile.c (reread_symbols): Likewise.
2541
563c591b
TT
25422020-05-19 Tom Tromey <tromey@adacore.com>
2543
2544 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
2545
f408d82c
SM
25462020-05-19 Simon Marchi <simon.marchi@efficios.com>
2547
2548 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
2549
98c59b52
PA
25502020-05-19 Pedro Alves <palves@redhat.com>
2551
2552 * NEWS (set exec-file-mismatch): Adjust entry.
2553 * exec.c: Include "build-id.h".
2554 (validate_exec_file): Try to match build IDs instead of filenames.
2555 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
2556 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
2557 and pass down 'warn_if_slow'.
2558 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
2559 gdb_bfd_open_closure to pass it down.
2560 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
2561
4111f652
PA
25622020-05-19 Pedro Alves <palves@redhat.com>
2563
2564 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
2565 * target.c (target_fileio_open_1): Rename to target_fileio_open
2566 and make extern. Use bool.
2567 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
2568 (target_fileio_read_alloc_1): Adjust.
2569 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
2570 (target_fileio_open_warn_if_slow): Delete declaration.
2571
ad80db5b
PA
25722020-05-19 Pedro Alves <palves@redhat.com>
2573
2574 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
2575 Adjust all callers.
2576
1d6ce4d3
YS
25772020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
2578
2579 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
2580 whether disp is negative.
2581
9005fbbb
SM
25822020-05-19 Simon Marchi <simon.marchi@efficios.com>
2583
2584 * symfile.h (struct symfile_segment_data)
2585 <~symfile_segment_data>: Remove.
2586 <segment_info>: Change to std::vector.
2587 * symfile.c (default_symfile_segments): Update.
2588 * elfread.c (elf_symfile_segments): Update.
2589
68b888ff
SM
25902020-05-19 Simon Marchi <simon.marchi@efficios.com>
2591
2592 * symfile.h (struct symfile_segment_data) <struct segment>: New.
2593 <segments>: New.
2594 <segment_bases, segment_sizes>: Remove.
2595 * symfile.c (default_symfile_segments): Update.
2596 * elfread.c (elf_symfile_segments): Update.
2597 * remote.c (remote_target::get_offsets): Update.
2598 * solib-target.c (solib_target_relocate_section_addresses):
2599 Update.
2600
62982abd
SM
26012020-05-19 Simon Marchi <simon.marchi@efficios.com>
2602
2603 * symfile.h (struct symfile_segment_data): Initialize fields.
2604 <~symfile_segment_data>: Add.
2605 (symfile_segment_data_up): New.
2606 (struct sym_fns) <sym_segments>: Return a
2607 symfile_segment_data_up.
2608 (default_symfile_segments): Return a symfile_segment_data_up.
2609 (free_symfile_segment_data): Remove.
2610 (get_symfile_segment_data): Return a symfile_segment_data_up.
2611 * symfile.c (default_symfile_segments): Likewise.
2612 (get_symfile_segment_data): Likewise.
2613 (free_symfile_segment_data): Remove.
2614 (symfile_find_segment_sections): Update.
2615 * elfread.c (elf_symfile_segments): Return a
2616 symfile_segment_data_up.
2617 * remote.c (remote_target::get_offsets): Update.
2618 * solib-target.c (solib_target_relocate_section_addresses):
2619 Update.
2620 * symfile-debug.c (debug_sym_segments): Return a
2621 symfile_segment_data_up.
2622
7f204339
RO
26232020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2624
e52a0f1b
RO
2625 PR build/25981
2626 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
2627 Hardcode register numbers.
2628
7f204339
RO
2629 PR build/25981
2630 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
2631 procfs_find_LDT_entry): Remove.
2632 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
2633 procfs_find_LDT_entry): Remove.
2634 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
2635 Remove.
2636
7f32a4d5
PA
26372020-05-17 Pedro Alves <palves@redhat.com>
2638 Andrew Burgess <andrew.burgess@embecosm.com>
2639 Keno Fischer <keno@juliacomputing.com>
2640
2641 PR gdb/25741
2642 * breakpoint.c (build_target_condition_list): Update comments.
2643 (build_target_command_list): Update comments and skip matching
2644 locations.
2645 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
2646 a separate function. Simplify "set breakpoint auto-hw off"
2647 handling.
2648 (insert_breakpoints): Update comment.
2649 (tracepoint_locations_match): New parameter. For breakpoints,
2650 compare location types too, if the caller wants to.
2651 (handle_automatic_hardware_breakpoints): New functions.
2652 (bp_location_is_less_than): Also sort by location type and
2653 hardware breakpoint length.
2654 (update_global_location_list): Handle "set breakpoint auto-hw on"
2655 here.
2656 (update_breakpoint_locations): Ask breakpoint_locations_match to
2657 ignore location types.
2658
7d93a1e0
SM
26592020-05-16 Simon Marchi <simon.marchi@efficios.com>
2660
2661 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
2662 type::name instead.
2663
d0e39ea2
SM
26642020-05-16 Simon Marchi <simon.marchi@efficios.com>
2665
2666 * gdbtypes.h (struct type) <name, set_name>: New methods.
2667 (TYPE_CODE): Use type::name. Change all call sites used to set
2668 the name to use type::set_name instead.
2669
2dab0c7b
TT
26702020-05-16 Tom Tromey <tom@tromey.com>
2671
2672 * top.c (quit_force): Update.
2673 * infrun.c (handle_no_resumed): Update.
2674 * top.h (all_uis): New function.
2675 (ALL_UIS): Remove.
2676
59f7bd8d
SM
26772020-05-16 Simon Marchi <simon.marchi@efficios.com>
2678
2679 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
2680
9bf058f0
PA
26812020-05-16 Pedro Alves <palves@redhat.com>
2682
2683 * ia64-linux-nat.c
2684 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
2685 Declare method.
2686 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
2687
8f86ae1a
SM
26882020-05-15 Simon Marchi <simon.marchi@efficios.com>
2689
2690 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
2691 (sparc64_adi_info): Likewise.
2692
d6bc0792
TT
26932020-05-15 Tom Tromey <tom@tromey.com>
2694
2695 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
2696 block_objfile.
2697 (lookup_objfile_from_block): Remove.
2698 (lookup_symbol_in_block, lookup_symbol_in_static_block)
2699 (lookup_global_symbol): Use block_objfile.
2700 * symtab.h (lookup_objfile_from_block): Don't declare.
2701 * printcmd.c (clear_dangling_display_expressions): Use
2702 block_objfile.
2703 * parse.c (operator_check_standard): Use block_objfile.
2704
8c14c3a3
TT
27052020-05-15 Tom Tromey <tom@tromey.com>
2706
2707 * language.c (language_alloc_type_symbol): Set
2708 SYMBOL_SECTION.
2709 * symtab.c (initialize_objfile_symbol): Remove.
2710 (allocate_symbol): Remove.
2711 (allocate_template_symbol): Remove.
2712 * dwarf2/read.c (fixup_go_packaging): Use "new".
2713 (new_symbol): Use "new".
2714 (read_variable): Don't call initialize_objfile_symbol. Use
2715 "new".
2716 (read_func_scope): Use "new".
2717 * xcoffread.c (process_xcoff_symbol): Don't call
2718 initialize_objfile_symbol.
2719 (SYMBOL_DUP): Remove.
2720 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
2721 "new".
2722 * symtab.h (allocate_symbol, initialize_objfile_symbol)
2723 (allocate_template_symbol): Don't declare.
2724 (struct symbol): Add copy constructor. Change defaults.
2725 * jit.c (finalize_symtab): Use "new".
2726 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
2727 Use "new".
2728 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
2729 (common_block_end): Use "new".
2730 * mdebugread.c (parse_symbol): Use "new".
2731 (new_symbol): Likewise.
2732
5b4a1a8d
PW
27332020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2734
2735 * NEWS: Mention changes to help and apropos.
2736
57b4f16e
PW
27372020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2738
2739 * command.h (enum command_class): Improve comments, document
2740 that class_alias is for user-defined aliases, give the class
2741 name for each class, remove unused class_xdb.
2742 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
2743 * breakpoint.c (_initialize_breakpoint): Replace class_alias
2744 by a precise class.
2745 * infcmd.c (_initialize_infcmd): Likewise.
2746 * reverse.c (_initialize_reverse): Likewise.
2747 * stack.c (_initialize_stack): Likewise.
2748 * symfile.c (_initialize_symfile): Likewise.
2749 * tracepoint.c (_initialize_tracepoint): Likewise.
2750
7c05caf7
PW
27512020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2752
2753 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
2754 when their aliased command is traversed.
2755 (help_cmd): Add fput_command_names_styled call to
2756 output command name and aliases when command has an alias.
2757
3b3aaacb
PW
27582020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2759
2760 * cli/cli-decode.h (help_cmd_list): Remove declaration.
2761 * cli/cli-decode.c (help_cmd_list): Declare as static,
2762 remove prefix argument, use bool for recurse arg, rework to show the aliases of
2763 a command together with the command.
2764 (fput_command_name_styled, fput_command_names_styled): New functions.
2765 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
2766 fput_command_name_styled.
2767 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
2768 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
2769
7aa1b46f
PW
27702020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2771
2772 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
2773 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
2774 * command.h (cmd_show_list): Likewise.
2775 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
2776 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
2777
89bcba74
PW
27782020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2779
2780 * unittests/command-def-selftests.c (traverse_command_structure):
2781 Verify all commands of a list have the same prefix command and
2782 that only the top cmdlist commands have a null prefix.
2783
3f4d92eb
PW
27842020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2785
2786 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
2787 as prefix, not one of its aliases.
2788 (set_cmd_prefix): Remove.
2789 (do_add_cmd): Centralize the setting of the prefix of a command, when
2790 command is defined after its full chain of prefix commands.
2791 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
2792 (add_setshow_cmd_full): Likewise.
2793 (update_prefix_field_of_prefixed_commands): New function.
2794 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
2795 update_prefix_field_of_prefixed_commands.
2796 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
2797 addresses of remote_set_cmdlist and remote_show_cmdlist given
2798 as argument, not the address of an argument.
2799 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
2800 * gdb/remote.c (_initialize_remote): Likewise.
2801
0605465f
PW
28022020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2803
2804 * cli/cli-cmds.c (alias_command): Check for an existing alias
2805 using lookup_cmd_composition, as valid_command_p is too strict
2806 and forbids aliases that are the prefix of an existing alias
2807 or command.
2808 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
2809 command is properly recognised as a valid command.
2810
58e6ac70
PW
28112020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2812
2813 * unittests/help-doc-selftests.c: Rename to
2814 unittests/command-def-selftests.c
2815 * unittests/command-def-selftests.c (help_doc_tests): Update some
2816 comments.
2817 (command_structure_tests, traverse_command_structure): New namespace
2818 and function.
2819 (command_structure_invariants_tests): New function.
2820 (_initialize_command_def_selftests) Renamed from
2821 _initialize_help_doc_selftests, register command_structure_invariants
2822 selftest.
2823
a7b9ceb8
PW
28242020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2825
2826 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
2827 an alias of 'show'.
2828
b2188a06
JB
28292020-05-15 Joel Brobecker <brobecker@adacore.com>
2830
2831 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
2832 ada_is_fixed_point_type. Update all callers.
2833 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
2834 all callers.
2835 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
2836 Update all callers.
2837 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
2838 print_fixed_point_type. Update all callers.
2839 * ada-valprint.c (ada_value_print_num): Replace call to
2840 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
2841
a51951c2
KB
28422020-05-14 Kevin Buettner <kevinb@redhat.com>
2843
2844 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
2845 processors.
2846 (cpu_supports_bts): Add CV_AMD case.
2847
29d6859f
LM
28482020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
2849 Simon Marchi <simon.marchi@efficios.com>
2850
2851 * infrun.c (stop_all_threads): Collect multiple wait events at
2852 each pass.
2853
78134374
SM
28542020-05-14 Simon Marchi <simon.marchi@efficios.com>
2855
2856 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
2857 type::code instead.
2858
67607e24
SM
28592020-05-14 Simon Marchi <simon.marchi@efficios.com>
2860
2861 * gdbtypes.h (struct type) <code, set_code>: New methods.
2862 (TYPE_CODE): Use type::code. Change all call sites used to set
2863 the code to use type::set_code instead.
2864
a05575d3
TBA
28652020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2866 Tom de Vries <tdevries@suse.de>
2867 Pedro Alves <palves@redhat.com>
2868
2869 PR threads/25478
2870 * infrun.c (stop_all_threads): Do NOT ignore
2871 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
2872 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
2873 received.
2874 (handle_no_resumed): Remove code handling a live inferior with no
2875 threads.
2876 * remote.c (has_single_non_exited_thread): New.
2877 (remote_target::update_thread_list): Do not delete a thread if is
2878 the last thread of the process.
2879 * thread.c (thread_select): Call delete_exited_threads instead of
2880 prune_threads.
2881
6ad82919
TBA
28822020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2883
2884 * infrun.c (stop_all_threads): Enable/disable thread events of all
2885 targets. Move a debug message denoting the end of the function
2886 into the SCOPED_EXIT block.
2887
d890404b
TBA
28882020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2889
2890 * process-stratum-target.h: Include <set>.
2891 (all_non_exited_process_targets, switch_to_target_no_thread): New
2892 function declarations.
2893 * process-stratum-target.c (all_non_exited_process_targets)
2894 (switch_to_target_no_thread): New function implementations.
2895
293b3ebc
TBA
28962020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2897
2898 * infrun.c (handle_inferior_event): Extract out a piece of code
2899 into...
2900 (mark_non_executing_threads): ...this new function.
2901
7ca9b62a
TBA
29022020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2903
2904 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
2905 use.
2906
fc75c28b
TBA
29072020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2908
2909 * regcache.c (regcache_read_pc_protected): New function
2910 implementation that returns 0 if the PC cannot read via
2911 'regcache_read_pc'.
2912 * infrun.c (proceed): Call 'regcache_read_pc_protected'
2913 instead of 'regcache_read_pc'.
2914 (keep_going_pass_signal): Ditto.
2915
a89febbd
TT
29162020-05-13 Tom Tromey <tromey@adacore.com>
2917
2918 * ada-lang.c (align_value): Remove.
2919 (ada_template_to_fixed_record_type_1): Use align_up.
2920
f7e23710
TBA
29212020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2922
2923 * async-event.c: Update the copyright year.
2924 * async-event.h: Update the copyright year.
2925
02ff80c2
SM
29262020-05-12 Simon Marchi <simon.marchi@efficios.com>
2927
2928 * objfiles.h (is_addr_in_objfile,
2929 shared_objfile_contains_address_p): Return bool.
2930 * objfile.c (is_addr_in_objfile,
2931 shared_objfile_contains_address_p): Return bool.
2932
4fd6c7e8
TT
29332020-05-11 Tom Tromey <tromey@adacore.com>
2934
2935 * cli/cli-cmds.c (info_command): Restore.
2936 (_initialize_cli_cmds): Use add_prefix_command for "info".
2937 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
2938
5eb68a39
TT
29392020-05-11 Tom Tromey <tromey@adacore.com>
2940
2941 * ada-lang.c (ada_value_primitive_field): Now public.
2942 * ada-lang.h (ada_value_primitive_field): Declare.
2943 * ada-valprint.c (print_field_values): Use
2944 ada_value_primitive_field for wrapper fields.
2945
7666722f
TV
29462020-05-11 Tom de Vries <tdevries@suse.de>
2947
2948 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
2949 MODULE_DOMAIN.
2950
3ee6bb11
TV
29512020-05-11 Tom de Vries <tdevries@suse.de>
2952
2953 PR symtab/25941
2954 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
2955 with length 0, if not gdb-produced.
2956 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
2957
43434996
TV
29582020-05-09 Tom de Vries <tdevries@suse.de>
2959
2960 PR gdb/25955
2961 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
2962 calculation.
2963
2f78cffc
TT
29642020-05-09 Tom Tromey <tom@tromey.com>
2965
2966 * top.c (server_command): Now bool.
2967 * top.h (server_command): Now bool.
2968
4f7bc5ed
TT
29692020-05-08 Tom Tromey <tromey@adacore.com>
2970
2971 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
2972 already being processed.
2973
8be4b118
TT
29742020-05-08 Tom Tromey <tom@tromey.com>
2975
2976 * printcmd.c (struct display) <next>: Remove.
2977 <display>: New constructor.
2978 <exp_string>: Now a std::string.
2979 <enabled_p>: Now a bool.
2980 (display_number): Move definition earlier.
2981 (displays): Rename from display_chain. Now a std::vector.
2982 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
2983 (display_command): Update.
2984 (do_one_display, disable_display)
2985 (enable_disable_display_command, do_enable_disable_display):
2986 Update.
2987 (free_display): Remove.
2988 (clear_displays): Rewrite.
2989 (delete_display): Update.
2990 (map_display_numbers): Use function_view. Remove "data"
2991 parameter. Update.
2992 (do_delete_display): Remove.
2993 (undisplay_command): Update.
2994 (do_one_display, do_displays, disable_display)
2995 (info_display_command): Update.
2996 (do_enable_disable_display): Remove.
2997 (enable_disable_display_command)
2998 (clear_dangling_display_expressions): Update.
2999
94c93c35
TT
30002020-05-08 Tom Tromey <tom@tromey.com>
3001
3002 * symtab.c (set_symbol_cache_size)
3003 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
3004 (maintenance_print_symbol_cache_statistics): Update.
3005 * symmisc.c (print_symbol_bcache_statistics)
3006 (print_objfile_statistics, maintenance_print_objfiles)
3007 (maintenance_info_symtabs, maintenance_check_symtabs)
3008 (maintenance_expand_symtabs, maintenance_info_line_tables):
3009 Update.
3010 * symfile-debug.c (set_debug_symfile): Update.
3011 * source.c (forget_cached_source_info): Update.
3012 * python/python.c (gdbpy_progspaces): Update.
3013 * psymtab.c (maintenance_info_psymtabs): Update.
3014 * probe.c (parse_probes): Update.
3015 * linespec.c (iterate_over_all_matching_symtabs)
3016 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
3017 * guile/scm-progspace.c (gdbscm_progspaces): Update.
3018 * exec.c (exec_target::close): Update.
3019 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
3020 * breakpoint.c (print_one_breakpoint_location)
3021 (create_longjmp_master_breakpoint)
3022 (create_std_terminate_master_breakpoint): Update.
3023 * progspace.c (program_spaces): Now a std::vector.
3024 (maybe_new_address_space): Update.
3025 (add_program_space): Remove.
3026 (program_space::program_space): Update.
3027 (remove_program_space): Update.
3028 (number_of_program_spaces): Remove.
3029 (print_program_space, update_address_spaces): Update.
3030 * progspace.h (program_spaces): Change type.
3031 (ALL_PSPACES): Remove.
3032 (number_of_program_spaces): Don't declare.
3033 (struct program_space) <next>: Remove.
3034
a1fd1ac9
TT
30352020-05-08 Tom Tromey <tom@tromey.com>
3036
3037 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
3038 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
3039 (enable_break): Update.
3040 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
3041 (frv_fdpic_find_canonical_descriptor): Update.
3042 (frv_fetch_objfile_link_map): Update.
3043 * progspace.c (program_space::free_all_objfiles): Update.
3044 (program_space::solibs): New method.
3045 * progspace.h (struct program_space) <solibs>: New method.
3046 * solist.h (master_so_list): Don't declare.
3047 (ALL_SO_LIBS): Remove.
3048 * solib.h (so_list_head): Remove.
3049 (update_solib_list): Update comment.
3050 * solib.c (master_so_list): Remove.
3051 (solib_used, update_solib_list, solib_add)
3052 (info_sharedlibrary_command, clear_solib)
3053 (reload_shared_libraries_1, remove_user_added_objfile): Update.
3054
38eae084
TT
30552020-05-08 Tom Tromey <tom@tromey.com>
3056
3057 * extension.c (extension_languages): Now a std::array.
3058 (ALL_EXTENSION_LANGUAGES): Remove.
3059 (get_ext_lang_defn, get_ext_lang_of_file)
3060 (eval_ext_lang_from_control_command): Update.
3061 (finish_ext_lang_initialization)
3062 (auto_load_ext_lang_scripts_for_objfile)
3063 (ext_lang_type_printers::ext_lang_type_printers)
3064 (apply_ext_lang_type_printers)
3065 (ext_lang_type_printers::~ext_lang_type_printers)
3066 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
3067 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
3068 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
3069 (get_matching_xmethod_workers, ext_lang_colorize)
3070 (ext_lang_before_prompt): Update.
3071 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
3072
596dc4ad
TT
30732020-05-08 Tom Tromey <tom@tromey.com>
3074
3075 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
3076 overload.
3077 <swap_string, m_string>: Remove.
3078 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
3079 Update.
3080 * stabsread.c (define_symbol, read_type): Update.
3081 * linespec.c (find_linespec_symbols): Update.
3082 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
3083 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
3084 * dbxread.c (read_dbx_symtab): Update.
3085 * cp-support.h (cp_canonicalize_string_full)
3086 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
3087 Return unique_xmalloc_ptr.
3088 * cp-support.c (inspect_type): Update.
3089 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
3090 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
3091 Likewise.
3092 * c-typeprint.c (print_name_maybe_canonical): Update.
3093 * break-catch-throw.c (check_status_exception_catchpoint):
3094 Update.
3095
bf4cb9be
TV
30962020-05-08 Tom de Vries <tdevries@suse.de>
3097
3098 * infrun.c (follow_fork): Copy current_line and current_symtab to
3099 child thread.
3100
a1b68f28
SM
31012020-05-07 Simon Marchi <simon.marchi@efficios.com>
3102
3103 * async-event.c (struct async_signal_handler, struct
3104 async_event_handler): Reformat, remove typedef.
3105
98d48915
SM
31062020-05-07 Simon Marchi <simon.marchi@efficios.com>
3107
3108 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
3109 access thistype->main_type->dyn_prop_list directly.
3110
7aa91313
SM
31112020-05-07 Simon Marchi <simon.marchi@efficios.com>
3112
3113 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
3114 (remove_dyn_prop): Remove. Update all users to use
3115 type::remove_dyn_prop.
3116 * gdbtypes.c (remove_dyn_prop): Rename to...
3117 (type::remove_dyn_prop): ... this.
3118
5c54719c
SM
31192020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
3120
3121 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
3122 (add_dyn_prop): Remove. Update all users to use
3123 type::add_dyn_prop.
3124 * gdbtypes.c (add_dyn_prop): Rename to...
3125 (type::add_dyn_prop): ... this.
3126
24e99c6c
SM
31272020-05-07 Simon Marchi <simon.marchi@efficios.com>
3128
3129 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
3130 (get_dyn_prop): Remove. Update all users to use
3131 type::dyn_prop.
3132 * gdbtypes.c (get_dyn_prop): Rename to...
3133 (type::dyn_prop): ... this.
3134
0d4bf016
SM
31352020-05-06 Simon Marchi <simon.marchi@efficios.com>
3136
3137 * gdbtypes.h (struct main_type) <flag_static>: Remove.
3138
ac4a4f1c
SM
31392020-05-06 Simon Marchi <simon.marchi@efficios.com>
3140
3141 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
3142 instruction, skip it if it's there.
3143
a3bbacc1
SM
31442020-05-05 Simon Marchi <simon.marchi@efficios.com>
3145
3146 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
3147
c3236f84
SM
31482020-05-04 Simon Marchi <simon.marchi@efficios.com>
3149
3150 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
3151 * gdbtypes.c (recursive_dump_type): Remove use of
3152 TYPE_INCOMPLETE.
3153
3b6acaee
TT
31542020-05-03 Tom Tromey <tom@tromey.com>
3155
3156 * breakpoint.c (catch_command, tcatch_command): Remove.
3157 (_initialize_breakpoint): Use add_basic_prefix_cmd,
3158 add_show_prefix_cmd.
3159 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
3160 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
3161 Remove.
3162 (add_internal_problem_command): Use add_basic_prefix_cmd,
3163 add_show_prefix_cmd.
3164 * mips-tdep.c (set_mipsfpu_command): Remove.
3165 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
3166 * dwarf2/index-cache.c (set_index_cache_command): Remove.
3167 (_initialize_index_cache): Use add_basic_prefix_cmd.
3168 * memattr.c (dummy_cmd): Remove.
3169 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
3170 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
3171 (_initialize_tui_win): Use add_basic_prefix_cmd,
3172 add_show_prefix_cmd.
3173 * cli/cli-logging.c (set_logging_command): Remove.
3174 (_initialize_cli_logging): Use add_basic_prefix_cmd,
3175 add_show_prefix_cmd.
3176 (show_logging_command): Remove.
3177 * target.c (target_command): Remove.
3178 (add_target): Use add_basic_prefix_cmd.
3179
a51119cd
HD
31802020-05-02 Hannes Domani <ssbssa@yahoo.de>
3181
3182 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
3183
652fc23a 31842020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 3185
652fc23a
PW
3186 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
3187 info_command.
3188
117539e6
KR
31892020-04-30 Kamil Rytarowski <n54@gmx.com>
3190
3191 * nbsd-nat.c (nbsd_enable_proc_events)
3192 (nbsd_nat_target::post_startup_inferior): Add.
3193 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
3194 (nbsd_nat_target::update_thread_list): Rewrite.
3195 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
3196 "PTRACE_LWP_CREATE".
3197 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
3198
102e38eb 31992020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 3200
102e38eb
PW
3201 * stack.c (_initialize_stack): Remove duplicated creation
3202 of "frame" command and "f" alias.
3203
ee9d1e5f
HD
32042020-04-30 Hannes Domani <ssbssa@yahoo.de>
3205
3206 PR gdb/18706
3207 * gdbtypes.c (check_typedef): Calculate size of array of
3208 stubbed type.
3209
627c7fb8
HD
32102020-04-30 Hannes Domani <ssbssa@yahoo.de>
3211
3212 PR gdb/15559
3213 * i386-tdep.c (i386_push_dummy_call): Call
3214 i386_thiscall_push_dummy_call.
3215 (i386_thiscall_push_dummy_call): New function.
3216 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
3217 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
3218 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
3219
ffc2844e
SM
32202020-04-29 Simon Marchi <simon.marchi@efficios.com>
3221
3222 * gdbarch.sh (do_read): Add shellcheck disable directive for
3223 warning SC2162.
3224
1207375d
SM
32252020-04-29 Simon Marchi <simon.marchi@efficios.com>
3226
3227 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
3228 "referenced but not assigned" warning.
3229
9fdb2916
SM
32302020-04-29 Simon Marchi <simon.marchi@efficios.com>
3231
3232 * gdbarch.sh: Remove code that sets fallbackdefault.
3233
759cea5e
SM
32342020-04-29 Simon Marchi <simon.marchi@efficios.com>
3235
3236 * gdbarch.sh: Use shell operators && and || instead of
3237 -a and -o.
3238
cb02ab24
SM
32392020-04-29 Simon Marchi <simon.marchi@efficios.com>
3240
3241 * gdbarch.sh: Use $(...) instead of `...`.
3242
a6fc5ffc
SM
32432020-04-29 Simon Marchi <simon.marchi@efficios.com>
3244
3245 * gdbarch.sh: Use double quotes around variables.
3246
8d113d13
SM
32472020-04-29 Simon Marchi <simon.marchi@efficios.com>
3248
3249 * gdbarch.sh: Use %s with printf, instead of variables in the
3250 format string.
3251
ed6acedd
TT
32522020-04-29 Tom Tromey <tromey@adacore.com>
3253
3254 PR ada/25875:
3255 * dwarf2/read.c (update_enumeration_type_from_children): Compute
3256 type fields here.
3257 (read_enumeration_type): Call
3258 update_enumeration_type_from_children later. Update comments.
3259 (process_enumeration_scope): Don't create type fields.
3260
b68b1b58
KR
32612020-04-29 Kamil Rytarowski <n54@gmx.com>
3262
3263 * nbsd-tdep.c: Include "xml-syscall.h".
3264 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
3265
f94b2e03
KR
32662020-04-29 Kamil Rytarowski <n54@gmx.com>
3267
3268 * nbsd-nat.c: Include "sys/wait.h".
3269 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
3270 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
3271 (nbsd_nat_target::remove_exec_catchpoint)
3272 (nbsd_nat_target::set_syscall_catchpoint): Add.
3273 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
3274 (nbsd_nat_target::insert_exec_catchpoint)
3275 (nbsd_nat_target::remove_exec_catchpoint)
3276 (nbsd_nat_target::set_syscall_catchpoint): Add.
3277 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
3278 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
3279 `nbsd_get_syscall_number'.
3280
fc49bc72
TT
32812020-04-29 Tom Tromey <tom@tromey.com>
3282
3283 * stack.c (print_block_frame_labels): Remove.
3284
d642b692
HD
32852020-04-29 Hannes Domani <ssbssa@yahoo.de>
3286
3287 PR gdb/17320
3288 * ada-valprint.c (val_print_packed_array_elements): Move array
3289 end bracket to new line.
3290 (ada_val_print_string): Remove extra spaces before first array
3291 element.
3292 * c-valprint.c (c_value_print_array): Likewise.
3293 * m2-valprint.c (m2_print_array_contents): Likewise.
3294 (m2_value_print_inner): Likewise.
3295 * p-valprint.c (pascal_value_print_inner): Likewise.
3296 * valprint.c (generic_val_print_array): Likewise.
3297 (value_print_array_elements): Move first array element and array
3298 end bracket to new line.
3299
ea90f227
TV
33002020-04-29 Tom de Vries <tdevries@suse.de>
3301
3302 PR symtab/25889
3303 * linespec.c (find_method): Fix ix calculation.
3304
4498ef4f
KR
33052020-04-28 Kamil Rytarowski <n54@gmx.com>
3306
3307 * syscalls/update-netbsd.sh: New file.
3308 * syscalls/netbsd.xml: Regenerate.
3309 * data-directory/Makefile.in: Register `netbsd.xml' in
3310 `SYSCALLS_FILES'.
3311
a55e30b5
SM
33122020-04-28 Simon Marchi <simon.marchi@efficios.com>
3313
3314 * syscalls/update-freebsd.sh: Add double quotes.
3315
2b2fbab8
TT
33162020-04-28 Tom Tromey <tom@tromey.com>
3317
3318 * NEWS: Update.
3319 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
3320 (cmdpy_init): Allow class_tui.
3321
a65189c9
TV
33222020-04-28 Mark Williams <mark@myosotissp.com>
3323
3324 PR gdb/24480
3325 * dwarf2read.c: Add missing assingments to list_in_scope when
3326 start_symtab was already called.
3327
1b95cdb7
SM
33282020-04-28 Simon Marchi <simon.marchi@efficios.com>
3329
3330 PR gdb/25881
3331 * dwarf2/read.c (offset_map_type): Use
3332 gdb:hash_enum<sect_offset> as hash function.
3333
15cd93d0
TV
33342020-04-28 Tom de Vries <tdevries@suse.de>
3335
3336 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
3337 with DW_AT_signature.
3338
1eb39914
SM
33392020-04-27 Simon Marchi <simon.marchi@efficios.com>
3340
3341 * configure.ac: Remove check for fs_base/gs_base in
3342 user_regs_struct.
3343 * configure: Re-generate.
3344 * config.in: Re-generate.
3345 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
3346 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
3347 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
3348
991a3e2e
LM
33492020-04-27 Luis Machado <luis.machado@linaro.org>
3350
3351 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
3352 problematic inline frame unwinding situation.
3353 * frame.c (frame_id_computed_p): New function.
3354 * frame.h (frame_id_computed_p): New prototype.
3355
361ba0e8
TT
33562020-04-26 Tom Tromey <tom@tromey.com>
3357
3358 * command.h (enum command_class) <class_pseudo>: Remove.
3359
bc3609fd
PW
33602020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3361
3362 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
3363 and whitespace.
3364
b9771db7
KR
33652020-04-25 Kamil Rytarowski <n54@gmx.com>
3366
ec16513e
SM
3367 * inf-ptrace.c (inf_ptrace_target::wait): Remove
3368 `PT_GET_PROCESS_STATE' block.
b9771db7 3369
7151c1af
TT
33702020-04-24 Tom Tromey <tom@tromey.com>
3371
3372 * symtab.h (symbol_get_demangled_name): Don't declare.
3373 * symtab.c (symbol_get_demangled_name): Remove.
3374 (general_symbol_info::natural_name)
3375 (general_symbol_info::demangled_name): Update.
3376
906bb4c5
TT
33772020-04-24 Tom Tromey <tom@tromey.com>
3378
3379 PR rust/25025:
3380 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
3381
bcfe6157
TT
33822020-04-24 Tom Tromey <tom@tromey.com>
3383
3384 PR symtab/12707:
3385 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
3386 exists.
3387 (new_symbol): Likewise.
3388 * compile/compile-object-load.c (get_out_value_type): Use
3389 symbol_matches_search_name.
3390
f049a313
TT
33912020-04-24 Tom Tromey <tom@tromey.com>
3392
3393 * dwarf2/read.c (add_partial_symbol): Do not call
3394 compute_and_set_names.
3395
76e288d1
TT
33962020-04-24 Tom Tromey <tom@tromey.com>
3397
3398 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
3399 overload.
3400
2467f4f6
TT
34012020-04-24 Tom Tromey <tom@tromey.com>
3402
3403 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
3404 (add_psymbol_to_list): New overload. Make old overload call new
3405 one.
3406 * psympriv.h (add_psymbol_to_list): New overload.
3407
e61108c9
TT
34082020-04-24 Tom Tromey <tom@tromey.com>
3409
3410 * dwarf2/read.c (partial_die_info::read) <case
3411 DW_AT_linkage_name>: Use value_as_string.
3412 (dwarf2_string_attr): Use value_as_string.
3413 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3414 method.
3415 * dwarf2/attribute.c (attribute::value_as_string): New method.
3416
8c87a452
TT
34172020-04-24 Tom Tromey <tom@tromey.com>
3418
3419 * symtab.c (general_symbol_info::natural_name)
3420 (general_symbol_info::demangled_name): Check for language_rust.
3421
787de330
TT
34222020-04-24 Tom Tromey <tom@tromey.com>
3423
3424 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
3425 (dwarf2_physname): ... from here.
3426 (partial_die_info::read): Add Rust "{" hack.
3427
ff985671
TT
34282020-04-24 Tom Tromey <tom@tromey.com>
3429
3430 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
3431 method.
3432 (symbol_set_demangled_name): Don't declare.
3433 * symtab.c (general_symbol_info::set_demangled_name): Rename from
3434 symbol_set_demangled_name.
3435 (general_symbol_info::set_language)
3436 (general_symbol_info::compute_and_set_names): Update.
3437 * minsyms.c (minimal_symbol_reader::install): Update.
3438 * dwarf2/read.c (new_symbol): Update.
3439
1acda803
TT
34402020-04-24 Tom Tromey <tromey@adacore.com>
3441
3442 PR python/23662:
3443 * python/py-type.c (convert_field): Handle
3444 FIELD_LOC_KIND_DWARF_BLOCK.
3445 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
3446 (typy_get_dynamic): Nw function.
3447 (type_object_getset): Add "dynamic".
3448 * NEWS: Add entry.
3449
d656f129
TT
34502020-04-24 Tom Tromey <tromey@adacore.com>
3451
3452 * ada-typeprint.c (print_choices, print_variant_part)
3453 (print_record_field_types_dynamic): New functions.
3454 (print_record_field_types): Use print_record_field_types_dynamic.
3455
7d79de9a
TT
34562020-04-24 Tom Tromey <tromey@adacore.com>
3457
3458 * dwarf2/read.c (handle_data_member_location): New overload.
3459 (dwarf2_add_field): Use it.
3460 (decode_locdesc): Add "computed" parameter. Update comment.
3461 * gdbtypes.c (is_dynamic_type_internal): Also look for
3462 FIELD_LOC_KIND_DWARF_BLOCK.
3463 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
3464 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
3465 virtual base classes.
3466 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
3467 FIELD_LOC_KIND_DWARF_BLOCK.
3468
f8e89861
TT
34692020-04-24 Tom Tromey <tromey@adacore.com>
3470
3471 * dwarf2/read.c (read_structure_type): Handle dynamic length.
3472 * gdbtypes.c (is_dynamic_type_internal): Check
3473 TYPE_HAS_DYNAMIC_LENGTH.
3474 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
3475 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
3476 New macros.
3477 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
3478 constant.
3479
9c6a1327
TT
34802020-04-24 Tom Tromey <tromey@adacore.com>
3481
3482 * dwarf2/read.c (struct variant_field): Rewrite.
3483 (struct variant_part_builder): New.
3484 (struct nextfield): Remove "variant" field. Add "offset".
3485 (struct field_info): Add "current_variant_part" and
3486 "variant_parts".
3487 (alloc_discriminant_info): Remove.
3488 (alloc_rust_variant): New function.
3489 (quirk_rust_enum): Update.
3490 (dwarf2_add_field): Set "offset" member. Don't handle
3491 DW_TAG_variant_part.
3492 (offset_map_type): New typedef.
3493 (convert_variant_range, create_one_variant)
3494 (create_one_variant_part, create_variant_parts)
3495 (add_variant_property): New functions.
3496 (dwarf2_attach_fields_to_type): Call add_variant_property.
3497 (read_structure_type): Don't handle DW_TAG_variant_part.
3498 (handle_variant_part, handle_variant): New functions.
3499 (handle_struct_member_die): Use them.
3500 (process_structure_scope): Don't handle variant parts.
3501 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
3502 (struct discriminant_info): Remove.
3503 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
3504 (struct main_type) <flag_discriminated_union>: Remove.
3505 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
3506 (rust_enum_variant): Return int. Remove "contents". Rewrite.
3507 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
3508 Update.
3509 * valops.c (value_union_variant): Remove.
3510 * value.h (value_union_variant): Don't declare.
3511
b249d2c2
TT
35122020-04-24 Tom Tromey <tromey@adacore.com>
3513
3514 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
3515 (ada_value_primitive_packed_val): Update.
3516 * ada-valprint.c (ada_value_print_1): Update.
3517 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
3518 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
3519 just an address. Use evaluate_for_locexpr_baton.
3520 (dwarf2_evaluate_property): Update.
3521 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
3522 array_view.
3523 * findvar.c (default_read_var_value): Update.
3524 * gdbtypes.c (compute_variant_fields_inner)
3525 (resolve_dynamic_type_internal): Update.
3526 (resolve_dynamic_type): Change type of valaddr parameter.
3527 * gdbtypes.h (resolve_dynamic_type): Update.
3528 * valarith.c (value_subscripted_rvalue): Update.
3529 * value.c (value_from_contents_and_address): Update.
3530
61122aa9
TT
35312020-04-24 Tom Tromey <tromey@adacore.com>
3532
3533 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
3534 "push_initial_value" parameter.
3535 (dwarf2_evaluate_property): Likewise.
3536 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
3537
ef83a141
TT
35382020-04-24 Tom Tromey <tromey@adacore.com>
3539
3540 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
3541 (variant::matches, compute_variant_fields_recurse)
3542 (compute_variant_fields_inner, compute_variant_fields): New
3543 functions.
3544 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
3545 Use resolved_type after type is made.
3546 (operator==): Add new cases.
3547 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
3548 (struct discriminant_range, struct variant, struct variant_part):
3549 New.
3550 (union dynamic_prop_data) <variant_parts, original_type>: New
3551 members.
3552 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
3553 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
3554 constants.
3555 * value.c (unpack_bits_as_long): Now public.
3556 * value.h (unpack_bits_as_long): Declare.
3557
675127ec
TT
35582020-04-24 Tom Tromey <tromey@adacore.com>
3559
3560 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
3561 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
3562
9852ceef
HD
35632020-04-24 Hannes Domani <ssbssa@yahoo.de>
3564
3565 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
3566
7632c6ce
KR
35672020-04-24 Kamil Rytarowski <n54@gmx.com>
3568
3569 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
3570 (remove_fork_catchpoint, post_startup_inferior)
3571 (post_attach): Move...
3572 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
3573 (remove_fork_catchpoint, post_startup_inferior)
3574 (post_attach): ...here.
3575 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
3576 (remove_fork_catchpoint, post_startup_inferior)
3577 (post_attach): Move...
3578 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
3579 (remove_fork_catchpoint, post_startup_inferior)
3580 (post_attach): ...here.
3581
7be2bb4f
TT
35822020-04-24 Tom Tromey <tromey@adacore.com>
3583
3584 * nat/windows-nat.h (struct windows_thread_info)
3585 <pc_adjusted>: New member.
3586 * windows-nat.c (windows_fetch_one_register): Check
3587 pc_adjusted.
3588 (windows_nat_target::get_windows_debug_event)
3589 (windows_nat_target::wait): Set pc_adjusted.
3590
f80cb3b4
TV
35912020-04-24 Tom de Vries <tdevries@suse.de>
3592
3593 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
3594 Run gdb-add-index inside temp dir.
3595
29514b87
TT
35962020-04-23 Tom Tromey <tromey@adacore.com>
3597
3598 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
3599 in loop.
3600
5939967b
LM
36012020-04-23 Luis Machado <luis.machado@linaro.org>
3602
3603 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
3604 get_frame_register instead of gdbarch_unwind_pc.
3605
70bc38f5
TV
36062020-04-23 Tom de Vries <tdevries@suse.de>
3607
3608 * symtab.c (lookup_global_symbol): Prefer def over decl.
3609
de82891c
TV
36102020-04-23 Tom de Vries <tdevries@suse.de>
3611
3612 PR symtab/25807
3613 * block.c (best_symbol, better_symbol): Promote to external.
3614 * block.h (best_symbol, better_symbol): Declare.
3615 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
3616 decl.
3617
ecc6c606
TT
36182020-04-23 Tom Tromey <tromey@adacore.com>
3619
3620 PR ada/25837:
3621 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
3622 "const char *", not a "const std::string &".
3623 <name_and_matcher::operator==>: Update.
3624 * unittests/lookup_name_info-selftests.c: Change type of
3625 "result".
3626
740480b8
TT
36272020-04-23 Tom Tromey <tom@tromey.com>
3628
3629 * inferior.h (iterate_over_inferiors): Don't declare.
3630 * inferior.c (iterate_over_inferiors): Remove.
3631 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
3632 Remove.
3633 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
3634 use iterate_over_inferiors.
3635 (darwin_resume_inferior_it)
3636 (struct resume_inferior_threads_param)
3637 (darwin_resume_inferior_threads_it): Remove.
3638 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
3639
ae3ab1f0
TV
36402020-04-23 Tom de Vries <tdevries@suse.de>
3641
3642 * blockframe.c (find_pc_partial_function): Use
3643 find_pc_sect_compunit_symtab rather than
3644 objfile->sf->qf->find_pc_sect_compunit_symtab.
3645
317d2668
TV
36462020-04-22 Tom de Vries <tdevries@suse.de>
3647
3648 PR symtab/25764
3649 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
3650 in psymtabs.
3651
eea9e357
TV
36522020-04-22 Tom de Vries <tdevries@suse.de>
3653
3654 PR symtab/25801
3655 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
3656 symtabs.
3657
3d5afab3
TV
36582020-04-22 Tom de Vries <tdevries@suse.de>
3659
3660 PR symtab/25700
3661 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
3662 CU if already created.
3663
d43b7a2d
TBA
36642020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3665
3666 * infrun.c (displaced_step_fixup): Switch to the event_thread
3667 before calling displaced_step_restore, not after.
3668
d89edf9b
MM
36692020-04-21 Markus Metzger <markus.t.metzger@intel.com>
3670
3671 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
3672 its inferior is not recorded by us.
3673 (record_btrace_target_open): Replace call to
3674 all_non_exited_threads () with call to current_inferior
3675 ()->non_exited_threads ().
3676 (record_btrace_target::stop_recording): Likewise.
3677 (record_btrace_target::close): Likewise.
3678 (record_btrace_target::wait): Likewise.
3679 (record_btrace_target::record_stop_replaying): Likewise.
3680
5897fd49
MM
36812020-04-21 Markus Metzger <markus.t.metzger@intel.com>
3682
3683 * btrace.c (btrace_enable): Throw an error on double enables and
3684 when enabling recording fails.
3685 (btrace_disable): Throw an error if the thread is not recorded.
3686
1a476b6d
MM
36872020-04-21 Markus Metzger <markus.t.metzger@intel.com>
3688
3689 * record-btrace.c (record_btrace_target::fetch_registers): Forward
3690 request if we do not have a thread_info.
3691
4778a5f8
TV
36922020-04-21 Tom de Vries <tdevries@suse.de>
3693
3694 PR gdb/25471
3695 * thread.c
3696 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
3697 exception in get_frame_id.
3698
0fa7617d
TT
36992020-04-20 Tom Tromey <tromey@adacore.com>
3700
3701 * python/python.c (struct gdbpy_event): Mark move constructor as
3702 noexcept.
3703 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
3704 constructor as noexcept.
3705 * completer.h (struct completion_result): Mark move constructor as
3706 noexcept.
3707 * completer.c (completion_result::completion_result): Use
3708 initialization style. Don't call reset_match_list.
3709
ad23bda0
MS
37102020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
3711
3712 * MAINTAINERS (Write After Approval): Add myself.
3713
45e1f031
TT
37142020-04-18 Tom Tromey <tom@tromey.com>
3715
3716 * windows-tdep.c (init_w32_command_list)
3717 (w32_prefix_command_valid): Restore.
3718 (_initialize_windows_tdep): Call init_w32_command_list.
3719
08feed99
TT
37202020-04-18 Tom Tromey <tom@tromey.com>
3721
3722 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
3723 * value.c (value_fn_field): Update.
3724 * valops.c (find_function_in_inferior)
3725 (value_allocate_space_in_inferior): Update.
3726 * tui/tui-winsource.c (tui_update_source_windows_with_line):
3727 Update.
3728 * tui/tui-source.c (tui_source_window::set_contents): Update.
3729 * symtab.c (lookup_global_or_static_symbol)
3730 (find_function_start_sal_1, skip_prologue_sal)
3731 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
3732 * symmisc.c (dump_msymbols, dump_symtab_1)
3733 (maintenance_print_one_line_table): Update.
3734 * symfile.c (init_entry_point_info, section_is_mapped)
3735 (list_overlays_command, simple_read_overlay_table)
3736 (simple_overlay_update_1): Update.
3737 * stap-probe.c (handle_stap_probe): Update.
3738 * stabsread.c (dbx_init_float_type, define_symbol)
3739 (read_one_struct_field, read_enum_type, read_range_type): Update.
3740 * source.c (info_line_command): Update.
3741 * python/python.c (gdbpy_source_objfile_script)
3742 (gdbpy_execute_objfile_script): Update.
3743 * python/py-type.c (save_objfile_types): Update.
3744 * python/py-objfile.c (py_free_objfile): Update.
3745 * python/py-inferior.c (python_new_objfile): Update.
3746 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
3747 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
3748 (maintenance_check_psymtabs): Update.
3749 * printcmd.c (info_address_command): Update.
3750 * objfiles.h (struct objfile) <arch>: New method, from
3751 get_objfile_arch.
3752 (get_objfile_arch): Don't declare.
3753 * objfiles.c (get_objfile_arch): Remove.
3754 (filter_overlapping_sections): Update.
3755 * minsyms.c (msymbol_is_function): Update.
3756 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
3757 (output_nondebug_symbol): Update.
3758 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
3759 (mdebug_expand_psymtab): Update.
3760 * machoread.c (macho_add_oso_symfile): Update.
3761 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
3762 Update.
3763 * linux-fork.c (checkpoint_command): Update.
3764 * linespec.c (convert_linespec_to_sals): Update.
3765 * jit.c (finalize_symtab): Update.
3766 * infrun.c (insert_exception_resume_from_probe): Update.
3767 * ia64-tdep.c (ia64_find_unwind_table): Update.
3768 * hppa-tdep.c (internalize_unwinds): Update.
3769 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
3770 Update.
3771 * gcore.c (call_target_sbrk): Update.
3772 * elfread.c (record_minimal_symbol, elf_symtab_read)
3773 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
3774 (elf_gnu_ifunc_resolve_by_got): Update.
3775 * dwarf2/read.c (create_addrmap_from_index)
3776 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
3777 (read_debug_names_from_section)
3778 (process_psymtab_comp_unit_reader, add_partial_symbol)
3779 (add_partial_subprogram, process_full_comp_unit)
3780 (read_file_scope, read_func_scope, read_lexical_block_scope)
3781 (read_call_site_scope, dwarf2_ranges_read)
3782 (dwarf2_record_block_ranges, dwarf2_add_field)
3783 (mark_common_block_symbol_computed, read_tag_pointer_type)
3784 (read_tag_string_type, dwarf2_init_float_type)
3785 (dwarf2_init_complex_target_type, read_base_type)
3786 (partial_die_info::read, partial_die_info::read)
3787 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
3788 (dwarf2_fetch_die_loc_sect_off): Update.
3789 * dwarf2/loc.c (dwarf2_find_location_expression)
3790 (class dwarf_evaluate_loc_desc, rw_pieced_value)
3791 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
3792 (dwarf2_loc_desc_get_symbol_read_needs)
3793 (locexpr_describe_location_piece, locexpr_describe_location_1)
3794 (loclist_describe_location): Update.
3795 * dwarf2/index-write.c (write_debug_names): Update.
3796 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
3797 * dtrace-probe.c (dtrace_process_dof): Update.
3798 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
3799 (process_one_symbol): Update.
3800 * ctfread.c (ctf_init_float_type, read_base_type): Update.
3801 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
3802 (coff_read_enum_type): Update.
3803 * cli/cli-cmds.c (edit_command, list_command): Update.
3804 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
3805 * breakpoint.c (create_overlay_event_breakpoint)
3806 (create_longjmp_master_breakpoint)
3807 (create_std_terminate_master_breakpoint)
3808 (create_exception_master_breakpoint, get_sal_arch): Update.
3809 * block.c (block_gdbarch): Update.
3810 * annotate.c (annotate_source_line): Update.
3811
0743fc83
TT
38122020-04-17 Tom Tromey <tromey@adacore.com>
3813
3814 * auto-load.c (show_auto_load_cmd): Remove.
3815 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
3816 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
3817 (maintenance_print_arc_command): Remove.
3818 * tui/tui-win.c (tui_command): Remove.
3819 (tui_get_cmd_list): Use add_basic_prefix_cmd.
3820 * tui/tui-layout.c (tui_layout_command): Remove.
3821 (_initialize_tui_layout): Use add_basic_prefix_cmd.
3822 * python/python.c (user_set_python, user_show_python): Remove.
3823 (_initialize_python): Use add_basic_prefix_cmd,
3824 add_show_prefix_cmd.
3825 * guile/guile.c (set_guile_command, show_guile_command): Remove.
3826 (install_gdb_commands): Use add_basic_prefix_cmd,
3827 add_show_prefix_cmd.
3828 (info_guile_command): Remove.
3829 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
3830 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
3831 add_show_prefix_cmd.
3832 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
3833 Remove do_set and do_show parameters.
3834 * cli/cli-style.c (set_style, show_style): Remove.
3835 (_initialize_cli_style): Use add_basic_prefix_cmd,
3836 add_show_prefix_cmd.
3837 (cli_style_option::add_setshow_commands): Remove do_set and
3838 do_show parameters.
3839 (cli_style_option::add_setshow_commands): Use
3840 add_basic_prefix_cmd, add_show_prefix_cmd.
3841 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
3842 (set_style_name): Remove.
3843 * cli/cli-dump.c (dump_command, append_command): Remove.
3844 (srec_dump_command, ihex_dump_command, verilog_dump_command)
3845 (tekhex_dump_command, binary_dump_command)
3846 (binary_append_command): Remove.
3847 (_initialize_cli_dump): Use add_basic_prefix_cmd.
3848 * windows-tdep.c (w32_prefix_command_valid): Remove global.
3849 (init_w32_command_list): Remove; move into ...
3850 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
3851 * valprint.c (set_print, show_print, set_print_raw)
3852 (show_print_raw): Remove.
3853 (_initialize_valprint): Use add_basic_prefix_cmd,
3854 add_show_prefix_cmd.
3855 * typeprint.c (set_print_type, show_print_type): Remove.
3856 (_initialize_typeprint): Use add_basic_prefix_cmd,
3857 add_show_prefix_cmd.
3858 * record.c (set_record_command, show_record_command): Remove.
3859 (_initialize_record): Use add_basic_prefix_cmd,
3860 add_show_prefix_cmd.
3861 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
3862 add_show_prefix_cmd.
3863 (info_command, show_command, set_debug, show_debug): Remove.
3864 * top.h (set_history, show_history): Don't declare.
3865 * top.c (set_history, show_history): Remove.
3866 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
3867 (unset_tdesc_cmd): Remove.
3868 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
3869 add_show_prefix_cmd.
3870 * symtab.c (info_module_command): Remove.
3871 (_initialize_symtab): Use add_basic_prefix_cmd.
3872 * symfile.c (overlay_command): Remove.
3873 (_initialize_symfile): Use add_basic_prefix_cmd.
3874 * sparc64-tdep.c (info_adi_command): Remove.
3875 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
3876 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
3877 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
3878 add_show_prefix_cmd.
3879 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
3880 (_initialize_serial): Use add_basic_prefix_cmd,
3881 add_show_prefix_cmd.
3882 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
3883 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
3884 add_show_prefix_cmd.
3885 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
3886 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
3887 add_show_prefix_cmd.
3888 * riscv-tdep.c (show_riscv_command, set_riscv_command)
3889 (show_debug_riscv_command, set_debug_riscv_command): Remove.
3890 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
3891 add_show_prefix_cmd.
3892 * remote.c (remote_command, set_remote_cmd): Remove.
3893 (_initialize_remote): Use add_basic_prefix_cmd.
3894 * record-full.c (set_record_full_command)
3895 (show_record_full_command): Remove.
3896 (_initialize_record_full): Use add_basic_prefix_cmd,
3897 add_show_prefix_cmd.
3898 * record-btrace.c (cmd_set_record_btrace)
3899 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
3900 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
3901 (cmd_show_record_btrace_pt): Remove.
3902 (_initialize_record_btrace): Use add_basic_prefix_cmd,
3903 add_show_prefix_cmd.
3904 * ravenscar-thread.c (set_ravenscar_command)
3905 (show_ravenscar_command): Remove.
3906 (_initialize_ravenscar): Use add_basic_prefix_cmd,
3907 add_show_prefix_cmd.
3908 * mips-tdep.c (show_mips_command, set_mips_command)
3909 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
3910 add_show_prefix_cmd.
3911 * maint.c (maintenance_command, maintenance_info_command)
3912 (maintenance_check_command, maintenance_print_command)
3913 (maintenance_set_cmd, maintenance_show_cmd): Remove.
3914 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
3915 add_show_prefix_cmd.
3916 (show_per_command_cmd): Remove.
3917 * maint-test-settings.c (maintenance_set_test_settings_cmd):
3918 Remove.
3919 (maintenance_show_test_settings_cmd): Remove.
3920 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
3921 add_show_prefix_cmd.
3922 * maint-test-options.c (maintenance_test_options_command):
3923 Remove.
3924 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
3925 * macrocmd.c (macro_command): Remove
3926 (_initialize_macrocmd): Use add_basic_prefix_cmd.
3927 * language.c (set_check, show_check): Remove.
3928 (_initialize_language): Use add_basic_prefix_cmd,
3929 add_show_prefix_cmd.
3930 * infcmd.c (unset_command): Remove.
3931 (_initialize_infcmd): Use add_basic_prefix_cmd.
3932 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
3933 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
3934 add_show_prefix_cmd.
3935 * go32-nat.c (go32_info_dos_command): Remove.
3936 (_initialize_go32_nat): Use add_basic_prefix_cmd.
3937 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
3938 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
3939 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
3940 (_initialize_frame): Use add_basic_prefix_cmd,
3941 add_show_prefix_cmd.
3942 * dcache.c (set_dcache_command, show_dcache_command): Remove.
3943 (_initialize_dcache): Use add_basic_prefix_cmd,
3944 add_show_prefix_cmd.
3945 * cp-support.c (maint_cplus_command): Remove.
3946 (_initialize_cp_support): Use add_basic_prefix_cmd.
3947 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
3948 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
3949 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
3950 add_basic_prefix_cmd, add_show_prefix_cmd.
3951 * breakpoint.c (save_command): Remove.
3952 (_initialize_breakpoint): Use add_basic_prefix_cmd.
3953 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
3954 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
3955 add_show_prefix_cmd.
3956 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
3957 (set_ada_command, show_ada_command): Remove.
3958 (_initialize_ada_language): Use add_basic_prefix_cmd,
3959 add_show_prefix_cmd.
3960 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
3961
3557f442
KR
39622020-04-16 Kamil Rytarowski <n54@gmx.com>
3963
3964 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
3965 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
3966
16197208
SM
39672020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
3968
3969 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
3970 warning messages.
3971
00ac85d3
SM
39722020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
3973
3974 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
3975 import table is not at beginning of .idata section.
3976
381ce63f
PA
39772020-04-16 Pedro Alves <palves@redhat.com>
3978
3979 * inferior.c (delete_inferior): Use delete operator directly
3980 instead of delete_program_space.
3981 * progspace.c (add_program_space): New, factored out from
3982 program_space::program_space.
3983 (remove_program_space): New, factored out from
3984 delete_program_space.
3985 (program_space::program_space): Remove intro comment. Rewrite.
3986 (program_space::~program_space): Remove intro comment. Call
3987 remove_program_space.
3988 (delete_program_space): Delete.
3989 * progspace.h (program_space::program_space): Make explicit. Move
3990 intro comment here, adjusted.
3991 (program_space::~program_space): Move intro comment here,
3992 adjusted.
3993 (delete_program_space): Remove.
3994
a010605f
TT
39952020-04-16 Tom Tromey <tromey@adacore.com>
3996
3997 * windows-nat.c (windows_nat::handle_access_violation): New
3998 function.
3999 * nat/windows-nat.h (handle_access_violation): Declare.
4000 * nat/windows-nat.c (handle_exception): Move Cygwin code to
4001 windows-nat.c. Call handle_access_violation.
4002
efba5c23
TV
40032020-04-16 Tom de Vries <tdevries@suse.de>
4004
4005 PR symtab/25791
4006 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
4007 CUs without psymtab.
4008
97ed802d
KB
40092020-04-16 Kevin Buettner <kevinb@redhat.com>
4010
4011 * python/python.c (do_start_initialization): Don't call
4012 PyEval_InitThreads for Python 3.9 and beyond.
4013
c7d64809
KR
40142020-04-15 Kamil Rytarowski <n54@gmx.com>
4015
4016 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
4017 thread functions.
4018 (obsd_nat_target::wait): Likewise.
4019
ce127a96
TT
40202020-04-15 Tom Tromey <tromey@adacore.com>
4021
4022 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4023 (DEBUG_EXCEPT): Use debug_printf.
4024
99f1bc6a
AB
40252020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
4026
4027 * completer.c (class completion_tracker::completion_hash_entry)
4028 <hash_name>: New member function.
4029 (completion_tracker::discard_completions): New callback to hash a
4030 completion_hash_entry, pass this to htab_create_alloc.
4031
a0e9b532
JT
40322016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
4033
4034 * windows-nat.c (windows_make_so): Warn rather than stopping with
4035 an error if realpath() fails.
4036
06ca5dd4
KR
40372020-04-14 Kamil Rytarowski <n54@gmx.com>
4038
4039 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
4040 (nbsd_nat_target::info_proc): Add do_status.
4041
194d088f
TV
40422020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
4043 Tom de Vries <tdevries@suse.de>
4044
4045 PR symtab/25718
4046 * psympriv.h (struct partial_symtab::read_symtab)
4047 (struct partial_symtab::expand_psymtab)
4048 (struct partial_symtab::read_dependencies): Update comments.
4049 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
4050 read_symtab for includer.
4051 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
4052 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
4053 (struct dwarf2_include_psymtab::m_readin): Remove.
4054 (struct dwarf2_include_psymtab::includer): New member function.
4055 (dwarf2_psymtab::expand_psymtab): Assert !readin.
4056
c1a66c06
TV
40572020-04-14 Tom de Vries <tdevries@suse.de>
4058
4059 PR symtab/25720
4060 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
4061 with NULL symbol_matcher and lookup_name.
4062 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
4063 and lookup_name.
4064 * dwarf2/read.c (dw2_expand_symtabs_matching)
4065 (dw2_debug_names_expand_symtabs_matching): Same.
4066 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
4067 Make lookup_name a pointer. Update comment.
4068 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
4069 lookup_name being a pointer.
4070 * symfile.c (expand_symtabs_matching): Same.
4071 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
4072 * linespec.c (iterate_over_all_matching_symtabs): Same.
4073
400b5eca
TT
40742020-04-13 Tom Tromey <tom@tromey.com>
4075
4076 * run-on-main-thread.c: Update include.
4077 * unittests/main-thread-selftests.c: Update include.
4078 * tui/tui-win.c: Update include.
4079 * tui/tui-io.c: Update include.
4080 * tui/tui-interp.c: Update include.
4081 * tui/tui-hooks.c: Update include.
4082 * top.h: Update include.
4083 * top.c: Update include.
4084 * ser-base.c: Update include.
4085 * remote.c: Update include.
4086 * remote-notif.c: Update include.
4087 * remote-fileio.c: Update include.
4088 * record-full.c: Update include.
4089 * record-btrace.c: Update include.
4090 * python/python.c: Update include.
4091 * posix-hdep.c: Update include.
4092 * mingw-hdep.c: Update include.
4093 * mi/mi-main.c: Update include.
4094 * mi/mi-interp.c: Update include.
4095 * main.c: Update include.
4096 * linux-nat.c: Update include.
4097 * interps.c: Update include.
4098 * infrun.c: Update include.
4099 * inf-loop.c: Update include.
4100 * event-top.c: Update include.
4101 * event-loop.c: Move to ../gdbsupport/.
4102 * event-loop.h: Move to ../gdbsupport/.
4103 * async-event.h: Update include.
4104 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
4105
93b54c8e
TT
41062020-04-13 Tom Tromey <tom@tromey.com>
4107
4108 * tui/tui-win.c: Include async-event.h.
4109 * remote.c: Include async-event.h.
4110 * remote-notif.c: Include async-event.h.
4111 * record-full.c: Include async-event.h.
4112 * record-btrace.c: Include async-event.h.
4113 * infrun.c: Include async-event.h.
4114 * event-top.c: Include async-event.h.
4115 * event-loop.h: Move some declarations to async-event.h.
4116 * event-loop.c: Don't include ser-event.h or top.h. Move some
4117 code to async-event.c.
4118 * async-event.h: New file.
4119 * async-event.c: New file.
4120 * Makefile.in (COMMON_SFILES): Add async-event.c.
4121 (HFILES_NO_SRCDIR): Add async-event.h.
4122
c1cd3163
TT
41232020-04-13 Tom Tromey <tom@tromey.com>
4124
4125 * utils.c (flush_streams): New function.
4126 * event-loop.c (gdb_wait_for_event): Call flush_streams.
4127
29f2bf4f
TT
41282020-04-13 Tom Tromey <tom@tromey.com>
4129
4130 * event-loop.c (handle_file_event): Use warning, not
4131 printf_unfiltered.
4132
98029d02
TT
41332020-04-13 Tom Tromey <tom@tromey.com>
4134
4135 * event-loop.c: Include <chrono>.
4136
06cc9596
TT
41372020-04-13 Tom Tromey <tom@tromey.com>
4138
4139 * gdb_select.h: Move to ../gdbsupport/.
4140 * event-loop.c: Update include path.
4141 * top.c: Update include path.
4142 * ser-base.c: Update include path.
4143 * ui-file.c: Update include path.
4144 * ser-tcp.c: Update include path.
4145 * guile/scm-ports.c: Update include path.
4146 * posix-hdep.c: Update include path.
4147 * ser-unix.c: Update include path.
4148 * gdb_usleep.c: Update include path.
4149 * mingw-hdep.c: Update include path.
4150 * inflow.c: Update include path.
4151 * infrun.c: Update include path.
4152 * event-top.c: Update include path.
4153
8ae8e197
TT
41542020-04-13 Tom Tromey <tom@tromey.com>
4155
4156 * configure: Rebuild.
4157 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
4158
58cf28e8
TT
41592020-04-13 Tom Tromey <tom@tromey.com>
4160
4161 * event-loop.h (start_event_loop): Don't declare.
4162 * event-loop.c (start_event_loop): Move...
4163 * main.c (start_event_loop): ...here. Now static.
4164
b7f999ae
SDJ
41652020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
4166
4167 * MAINTAINERS: Update my email address.
4168
1085dfd4
KR
41692020-04-12 Kamil Rytarowski <n54@gmx.com>
4170
4171 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
4172 IP_ALL.
4173
49d1d1f5
KR
41742020-04-12 Kamil Rytarowski <n54@gmx.com>
4175
4176 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 4177 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 4178
b4848d2a
KR
41792020-04-12 Kamil Rytarowski <n54@gmx.com>
4180
4181 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 4182 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 4183
51c133d5
KR
41842020-04-12 Kamil Rytarowski <n54@gmx.com>
4185
4186 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
4187
54b8cbd0
KR
41882020-04-11 Kamil Rytarowski <n54@gmx.com>
4189
4190 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
4191 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
4192 (nbsd_nat_target::info_proc): New functions.
4193 * nbsd-nat.c (kinfo_get_vmmap): New function.
4194 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
4195 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
4196 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
4197 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
4198 functions.
4199 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
4200 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
4201 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
4202 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
4203 (KINFO_VME_FLAG_GROWS_DOWN): New.
4204
cf83625d
AS
42052020-04-10 Artur Shepilko <nomadbyte@gmail.com>
4206
4207 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
4208 bit shift.
4209
0c4311ab
TT
42102020-04-10 Tom Tromey <tromey@adacore.com>
4211
4212 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
4213
3e65b3e9
TT
42142020-04-10 Tom Tromey <tromey@adacore.com>
4215
4216 * symtab.c (get_symbol_address, get_msymbol_address): Skip
4217 separate debug files.
4218
13302e95
HD
42192020-04-10 Hannes Domani <ssbssa@yahoo.de>
4220
4221 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
4222 Move to...
4223 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
4224 ... here.
4225 * windows-nat.c (windows_nat_target::get_windows_debug_event):
4226 Check for STATUS_WX86_BREAKPOINT.
4227 (windows_nat_target::wait): Same.
4228
bdfc1e8a
TV
42292020-04-10 Tom de Vries <tdevries@suse.de>
4230
4231 PR cli/25808
4232 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
4233
f4460aec
SM
42342020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
4235
4236 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
4237 (Write After Approval): Remove Tom de Vries.
4238
a25198bb
BE
42392020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
4240
4241 revert partially:
4242 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
4243
aac66a4c
SM
4244 * buildsym.c (record_line): Fix undefined behavior and preserve
4245 lines at eof.
a25198bb 4246
206c98a6
KR
42472020-04-09 Kamil Rytarowski <n54@gmx.com>
4248
4249 * auxv.h (svr4_auxv_parse): New.
4250 * auxv.c (default_auxv_parse): Split into default_auxv_parse
4251 and generic_auxv_parse.
4252 (svr4_auxv_parse): Add.
4253 * obsd-tdep.c: Include "auxv.h".
4254 (obsd_auxv_parse): Remove.
4255 (obsd_init_abi): Remove comment.
4256 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
4257 from `obsd_auxv_parse' to `svr4_auxv_parse'.
4258 * nbsd-tdep.c: Include "auxv.h".
4259 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
4260
71fbdbaf
TT
42612020-04-08 Tom Tromey <tromey@adacore.com>
4262
4263 * nat/windows-nat.h (last_wait_event): Don't declare.
4264 (wait_for_debug_event): Update comment.
4265 * nat/windows-nat.c (last_wait_event): Now static.
4266
2c1d95e8
TT
42672020-04-08 Tom Tromey <tromey@adacore.com>
4268
4269 * windows-nat.c (wait_for_debug_event): Move to
4270 nat/windows-nat.c.
4271 * nat/windows-nat.h (wait_for_debug_event): Declare.
4272 * nat/windows-nat.c (wait_for_debug_event): Move from
4273 windows-nat.c. No longer static.
4274
d2977bc4
TT
42752020-04-08 Tom Tromey <tromey@adacore.com>
4276
4277 * windows-nat.c (get_windows_debug_event): Use
4278 fetch_pending_stop.
4279 * nat/windows-nat.h (fetch_pending_stop): Declare.
4280 * nat/windows-nat.c (fetch_pending_stop): New function.
4281
e758e19c
TT
42822020-04-08 Tom Tromey <tromey@adacore.com>
4283
4284 * windows-nat.c (windows_continue): Use matching_pending_stop and
4285 continue_last_debug_event.
4286 * nat/windows-nat.h (matching_pending_stop)
4287 (continue_last_debug_event): Declare.
4288 * nat/windows-nat.c (DEBUG_EVENTS): New define.
4289 (matching_pending_stop, continue_last_debug_event): New
4290 functions.
4291
8d30e395
TT
42922020-04-08 Tom Tromey <tromey@adacore.com>
4293
4294 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
4295 (handle_exception_result): Move to nat/windows-nat.h.
4296 (DEBUG_EXCEPTION_SIMPLE): Remove.
4297 (windows_nat::handle_ms_vc_exception): New function.
4298 (handle_exception): Move to nat/windows-nat.c.
4299 (get_windows_debug_event): Update.
4300 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
4301 nat/windows-nat.c.
4302 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
4303 (handle_exception_result): Move from windows-nat.c.
4304 (handle_exception): Declare.
4305 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
4306 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
4307 windows-nat.c.
4308
29de418d
TT
43092020-04-08 Tom Tromey <tromey@adacore.com>
4310
4311 * windows-nat.c (exception_count, event_count): Remove.
4312 (handle_exception, get_windows_debug_event)
4313 (do_initial_windows_stuff): Update.
4314
a816ba18
TT
43152020-04-08 Tom Tromey <tromey@adacore.com>
4316
4317 * windows-nat.c (windows_nat::handle_load_dll)
4318 (windows_nat::handle_unload_dll): Rename. No longer static.
4319 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
4320 Declare.
4321
a00caa12
TT
43222020-04-08 Tom Tromey <tromey@adacore.com>
4323
4324 * complaints.h (stop_whining): Declare at top-level.
4325 (complaint): Don't declare stop_whining.
4326
d41b524f
TT
43272020-04-08 Tom Tromey <tromey@adacore.com>
4328
4329 * windows-nat.c (windows_nat::handle_output_debug_string):
4330 Rename. No longer static.
4331 * nat/windows-nat.h (handle_output_debug_string): Declare.
4332
3c76026d
TT
43332020-04-08 Tom Tromey <tromey@adacore.com>
4334
4335 * windows-nat.c (current_process_handle, current_process_id)
4336 (main_thread_id, last_sig, current_event, last_wait_event)
4337 (current_windows_thread, desired_stop_thread_id, pending_stops)
4338 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
4339 (display_selectors, fake_create_process)
4340 (get_windows_debug_event): Update.
4341 * nat/windows-nat.h (current_process_handle, current_process_id)
4342 (main_thread_id, last_sig, current_event, last_wait_event)
4343 (current_windows_thread, desired_stop_thread_id, pending_stops)
4344 (struct pending_stop, siginfo_er): Move from windows-nat.c.
4345 * nat/windows-nat.c (current_process_handle, current_process_id)
4346 (main_thread_id, last_sig, current_event, last_wait_event)
4347 (current_windows_thread, desired_stop_thread_id, pending_stops)
4348 (siginfo_er): New globals. Move from windows-nat.c.
4349
9d8679cc
TT
43502020-04-08 Tom Tromey <tromey@adacore.com>
4351
4352 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
4353 (handle_load_dll): Update.
4354 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
4355
28688adf
TT
43562020-04-08 Tom Tromey <tromey@adacore.com>
4357
4358 * windows-nat.c (enum thread_disposition_type): Move to
4359 nat/windows-nat.h.
4360 (windows_nat::thread_rec): Rename from thread_rec. No longer
4361 static.
4362 (windows_add_thread, windows_nat_target::fetch_registers)
4363 (windows_nat_target::store_registers, handle_exception)
4364 (windows_nat_target::resume, get_windows_debug_event)
4365 (windows_nat_target::get_tib_address)
4366 (windows_nat_target::thread_name)
4367 (windows_nat_target::thread_alive): Update.
4368 * nat/windows-nat.h (enum thread_disposition_type): Move from
4369 windows-nat.c.
4370 (thread_rec): Declare.
4371
4834dad0
TT
43722020-04-08 Tom Tromey <tromey@adacore.com>
4373
4374 * windows-nat.c: Add "using namespace".
4375 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
4376 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
4377
65bafd5b
TT
43782020-04-08 Tom Tromey <tromey@adacore.com>
4379
4380 * nat/windows-nat.h (struct windows_thread_info): Declare
4381 destructor.
4382 * nat/windows-nat.c (~windows_thread_info): New.
4383
0a4afda3
TT
43842020-04-08 Tom Tromey <tromey@adacore.com>
4385
4386 PR gdb/22992
4387 * windows-nat.c (current_event): Update comment.
4388 (last_wait_event, desired_stop_thread_id): New globals.
4389 (struct pending_stop): New.
4390 (pending_stops): New global.
4391 (windows_nat_target) <stopped_by_sw_breakpoint>
4392 <supports_stopped_by_sw_breakpoint>: New methods.
4393 (windows_fetch_one_register): Add assertions. Adjust PC.
4394 (windows_continue): Handle pending stops. Suspend other threads
4395 when stepping. Use last_wait_event
4396 (wait_for_debug_event): New function.
4397 (get_windows_debug_event): Use wait_for_debug_event. Handle
4398 pending stops. Queue spurious stops.
4399 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
4400 (windows_nat_target::kill): Use wait_for_debug_event.
4401 * nat/windows-nat.h (struct windows_thread_info)
4402 <stopped_at_software_breakpoint>: New field.
4403 * nat/windows-nat.c (windows_thread_info::resume): Clear
4404 stopped_at_software_breakpoint.
4405
8e61ebec
TT
44062020-04-08 Tom Tromey <tromey@adacore.com>
4407
4408 * windows-nat.c (enum thread_disposition_type): New.
4409 (thread_rec): Replace "get_context" parameter with "disposition";
4410 change type.
4411 (windows_add_thread, windows_nat_target::fetch_registers)
4412 (windows_nat_target::store_registers, handle_exception)
4413 (windows_nat_target::resume, get_windows_debug_event)
4414 (windows_nat_target::get_tib_address)
4415 (windows_nat_target::thread_name)
4416 (windows_nat_target::thread_alive): Update.
4417
98a03287
TT
44182020-04-08 Tom Tromey <tromey@adacore.com>
4419
4420 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
4421 (windows_continue): Use windows_continue::resume.
4422 * nat/windows-nat.h (struct windows_thread_info) <suspend,
4423 resume>: Declare new methods.
4424 * nat/windows-nat.c: New file.
4425 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
4426
7c7411bc
TT
44272020-04-08 Tom Tromey <tromey@adacore.com>
4428
4429 * windows-nat.c (windows_add_thread, windows_delete_thread)
4430 (windows_nat_target::fetch_registers)
4431 (windows_nat_target::store_registers, fake_create_process)
4432 (windows_nat_target::resume, windows_nat_target::resume)
4433 (get_windows_debug_event, windows_nat_target::wait)
4434 (windows_nat_target::pid_to_str)
4435 (windows_nat_target::get_tib_address)
4436 (windows_nat_target::get_ada_task_ptid)
4437 (windows_nat_target::thread_name)
4438 (windows_nat_target::thread_alive): Use lwp, not tid.
4439
2950fdf7
TT
44402020-04-08 Tom Tromey <tromey@adacore.com>
4441
4442 * windows-nat.c (handle_exception)
4443 (windows_nat_target::thread_name): Update.
4444 * nat/windows-nat.h (windows_thread_info): Remove destructor.
4445 <name>: Now unique_xmalloc_ptr.
4446
62fe396b
TT
44472020-04-08 Tom Tromey <tromey@adacore.com>
4448
4449 * windows-nat.c (thread_rec)
4450 (windows_nat_target::fetch_registers): Update.
4451 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
4452 Update comment.
4453 <debug_registers_changed, reload_context>: Now bool.
4454
e9534bd2
TT
44552020-04-08 Tom Tromey <tromey@adacore.com>
4456
4457 * windows-nat.c (windows_add_thread): Use new.
4458 (windows_init_thread_list, windows_delete_thread): Use delete.
4459 (get_windows_debug_event): Update.
4460 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
4461 destructor, and initializers.
4462
ae1f8880
TT
44632020-04-08 Tom Tromey <tromey@adacore.com>
4464
4465 * windows-nat.c (struct windows_thread_info): Remove.
4466 * nat/windows-nat.h: New file.
4467
55a1e039
TT
44682020-04-08 Tom Tromey <tromey@adacore.com>
4469
4470 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
4471 (thread_rec, windows_add_thread, windows_delete_thread)
4472 (windows_continue): Update.
4473
93366324
TT
44742020-04-08 Tom Tromey <tromey@adacore.com>
4475
4476 * windows-nat.c (struct windows_thread_info): Remove typedef.
4477 (thread_head): Remove.
4478 (thread_list): New global.
4479 (thread_rec, windows_add_thread, windows_init_thread_list)
4480 (windows_delete_thread, windows_continue): Update.
4481
0f2265e2
SM
44822020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
4483
4484 * windows-tdep.h (windows_init_abi): Add comment.
4485 (cygwin_init_abi): New declaration.
4486 * windows-tdep.c: Split signal enumeration in two, one for
4487 Windows and one for Cygwin.
4488 (windows_gdb_signal_to_target): Only deal with signal of the
4489 Windows OS ABI.
4490 (cygwin_gdb_signal_to_target): New function.
4491 (windows_init_abi): Rename to windows_init_abi_common, don't set
4492 gdb_signal_to_target gdbarch method. Add new new function with
4493 this name.
4494 (cygwin_init_abi): New function.
4495 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
4496 comment. Don't call windows_init_abi.
4497 (amd64_windows_init_abi): Add comment, call windows_init_abi.
4498 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
4499 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
4500 i386_windows_init_abi_common, don't call windows_init_abi. Add
4501 a new function of this name.
4502 (i386_cygwin_init_abi): New function.
4503 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
4504 OS ABI Cygwin.
4505
3810f182
SM
45062020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
4507
4508 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
4509 parameter.c.
4510 (dwarf2_read_gdb_index): Update.
4511
063f8e80
KR
45122020-04-07 Kamil Rytarowski <n54@gmx.com>
4513
4514 * nbsd-tdep.c: Include "objfiles.h".
4515 (nbsd_skip_solib_resolver): New.
4516 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
4517
85a9510c 45182020-04-07 Nitika Achra <Nitika.Achra@amd.com>
4519
4520 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
4521 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
4522 with DW_LLE_base_addressx are being emitted in DWARFv5.
4523 Add the newly added kind DW_LOC_OFFSET_PAIR also.
4524 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
4525 unsigned integer.
4526
9fc3eaae 45272020-04-07 Nitika Achra <Nitika.Achra@amd.com>
4528
4529 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
4530 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
4531 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
4532 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
4533 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
4534 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
4535 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
4536
4537
41144253 45382020-04-07 Nitika Achra <Nitika.Achra@amd.com>
4539
4540 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
4541 (read_loclist_index): New function definition.
4542 (lookup_loclist_base): New function definition.
4543 (read_loclist_header): New function definition.
4544 (dwarf2_cu): Add loclist_base and loclist_header field.
4545 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
4546 (read_full_die_1): Read the value of DW_AT_loclists_base.
4547 (read_attribute_reprocess): Handle DW_FORM_loclistx.
4548 (read_attribute_value): Handle DW_FORM_loclistx.
4549 (skip_one_die): Handle DW_FORM_loclistx.
4550 (loclist_header): New structure declaration.
4551 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
4552
9f4e76a4
SM
45532020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
4554
4555 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
4556 constructor. Remove `addr` parameter from other constructor and
4557 add `per_cu` parameter.
4558 * dwarf2/read.c (create_partial_symtab): Update.
4559
25c11aca
TV
45602020-04-07 Tom de Vries <tdevries@suse.de>
4561
4562 PR symtab/25796
4563 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
4564 (partial_die_info::fixup): Inherit has_const_value.
4565
5707e24b
TV
45662020-04-07 Tom de Vries <tdevries@suse.de>
4567
4568 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
4569 symbols without address.
4570
05f00e22
KR
45712020-04-06 Kamil Rytarowski <n54@gmx.com>
4572
4573 * nbsd-nat.h (struct thread_info): Add forward declaration.
4574 (nbsd_nat_target::thread_alive): Add.
4575 (nbsd_nat_target::thread_name): Likewise.
4576 (nbsd_nat_target::update_thread_list): Likewise.
4577 (update_thread_list::post_attach): Likewise.
4578 (post_attach::pid_to_str): Likewise.
4579 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
4580 (nbsd_thread_lister): Add.
4581 (nbsd_nat_target::thread_alive): Likewise.
4582 (nbsd_nat_target::thread_name): Likewise.
4583 (nbsd_add_threads): Likewise.
4584 (update_thread_list::post_attach): Likewise.
4585 (nbsd_nat_target::update_thread_list): Likewise.
4586 (post_attach::pid_to_str): Likewise.
4587
6ee448cc
TT
45882020-04-06 Tom Tromey <tromey@adacore.com>
4589
4590 * ada-valprint.c (print_variant_part): Extract the variant field.
4591 (print_field_values): Use the field as the outer value when
4592 recursing.
4593
dea34e8c
TT
45942020-04-06 Tom Tromey <tromey@adacore.com>
4595
4596 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
4597 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
4598 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
4599 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
4600 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
4601
93689ce9
TT
46022020-04-06 Tom Tromey <tromey@adacore.com>
4603
4604 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
4605 TYPE_CODE_ERROR.
4606
79743962
KR
46072020-04-06 Kamil Rytarowski <n54@gmx.com>
4608
4609 * nbsd-tdep.c: Include "gdbarch.h".
4610 Define enum with NetBSD signal numbers.
4611 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
4612 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
4613 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
4614 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
4615 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
4616 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
4617 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
4618 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
4619 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
4620 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
4621 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
4622 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
4623
9e7c9a03
HD
46242020-04-03 Hannes Domani <ssbssa@yahoo.de>
4625
4626 PR gdb/25325
4627 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
4628
d9e49b61
TT
46292020-04-03 Tom Tromey <tromey@adacore.com>
4630
4631 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
4632 Read constant block.
4633
e0fc5c3f
SM
46342020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
4635
4636 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
4637 (gdb_bfd_get_full_section_contents): New declaration.
4638 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
4639 * windows-tdep.c (is_linked_with_cygwin_dll): Use
4640 gdb_bfd_get_full_section_contents.
4641
e2ff18a0
SM
46422020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
4643
4644 * exec.c (build_section_table): Replace internal_error with
4645 gdb_assert.
4646 (section_table_xfer_memory_partial): Likewise.
4647 * mdebugread.c (parse_partial_symbols): Likewise.
4648 * psymtab.c (lookup_partial_symbol): Likewise.
4649 * utils.c (wrap_here): Likewise.
4650
0830d301
TT
46512020-04-02 Tom Tromey <tromey@adacore.com>
4652
4653 * f-lang.c (build_fortran_types): Use arch_type to initialize
4654 builtin_complex_s32 in the TYPE_CODE_ERROR case.
4655
e7da7f8f
TT
46562020-04-02 Tom Tromey <tromey@adacore.com>
4657
4658 * dwarf2/read.c (partial_die_info::read): Do not create a vector
4659 of attributes.
4660
c90d28ac
AB
46612020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
4662 Bernd Edlinger <bernd.edlinger@hotmail.de>
4663 Tom Tromey <tromey@adacore.com>
4664
4665 * buildsym.c (buildsym_compunit::record_line): Remove
4666 deduplication code.
4667
1aa98955
TV
46682020-04-02 Tom de Vries <tdevries@suse.de>
4669
4670 PR ada/24671
4671 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
4672
d3214198
TV
46732020-04-02 Tom de Vries <tdevries@suse.de>
4674
4675 * dwarf2/read.c (dwarf2_gdb_index_functions,
4676 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
4677 NULL.
4678 * psymtab.c (psym_lookup_global_symbol_language): New function.
4679 (psym_functions): Init psym_lookup_global_symbol_language with
4680 psym_lookup_global_symbol_language.
4681 * symfile-debug.c (debug_sym_quick_functions): Init
4682 lookup_global_symbol_language with NULL.
4683 * symfile.c (set_initial_language): Remove fixme comment.
4684 * symfile.h (struct quick_symbol_functions): Add
4685 lookup_global_symbol_language.
4686 * symtab.c (find_quick_global_symbol_language): New function.
4687 (find_main_name): Use find_quick_global_symbol_language.
4688
2836752f
SM
46892020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
4690
4691 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
4692
64dc2d4b
BE
46932020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
4694
4695 * buildsym.c (record_line): Fix undefined behavior and preserve
4696 lines at eof.
4697
bbe3dc41
BE
46982020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
4699
4700 * buildsym.c (record_line): Fix the resizing condition.
4701
6b4a335b
TT
47022020-04-01 Tom Tromey <tom@tromey.com>
4703
4704 * value.h (value_literal_complex): Add comment.
4705 * valops.c (value_literal_complex): Refer to value.h.
4706
3638a098
TT
47072020-04-01 Tom Tromey <tom@tromey.com>
4708
4709 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
4710 (scalar_type): New rule, from typebase.
4711 (typebase): Use scalar_type. Recognize complex types.
4712 (field_name): Handle FLOAT_KEYWORD.
4713 (ident_tokens): Add _Complex and __complex__.
4714
c34e8714
TT
47152020-04-01 Tom Tromey <tom@tromey.com>
4716
4717 PR exp/25299:
4718 * valarith.c (promotion_type, complex_binop): New functions.
4719 (scalar_binop): Handle complex numbers. Use promotion_type.
4720 (value_pos, value_neg, value_complement): Handle complex numbers.
4721
fa649bb7
TT
47222020-04-01 Tom Tromey <tom@tromey.com>
4723
4724 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
4725 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
4726 (parse_number): Handle complex numbers.
4727
981c08ce
TT
47282020-04-01 Tom Tromey <tom@tromey.com>
4729
4730 * c-valprint.c (c_decorations): Change complex suffix to "i".
4731
4c99290d
TT
47322020-04-01 Tom Tromey <tom@tromey.com>
4733
4734 * valprint.c (generic_value_print_complex): Use accessors.
4735 * value.h (value_real_part, value_imaginary_part): Declare.
4736 * valops.c (value_real_part, value_imaginary_part): New
4737 functions.
4738 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
4739
5b930b45
TT
47402020-04-01 Tom Tromey <tom@tromey.com>
4741
4742 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
4743 (read_range_type): Update.
4744 * mdebugread.c (basic_type): Update.
4745 * go-lang.c (build_go_types): Use init_complex_type.
4746 * gdbtypes.h (struct main_type) <complex_type>: New member.
4747 (init_complex_type): Update.
4748 (arch_complex_type): Don't declare.
4749 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
4750 Make name if none given. Use alloc_type_copy. Look for cached
4751 complex type.
4752 (arch_complex_type): Remove.
4753 (gdbtypes_post_init): Use init_complex_type.
4754 * f-lang.c (build_fortran_types): Use init_complex_type.
4755 * dwarf2/read.c (read_base_type): Update.
4756 * d-lang.c (build_d_types): Use init_complex_type.
4757 * ctfread.c (read_base_type): Update.
4758
53cccef1
TBA
47592020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4760
4761 * infrun.c (stop_all_threads): Update assertion, plus when
4762 stopping threads, take into account that we might be trying
4763 to stop an all-stop target.
4764 (stop_waiting): Call 'stop_all_threads' if there exists a
4765 non-stop target.
4766
a0714d30
TBA
47672020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4768
4769 * target.h (exists_non_stop_target): New function declaration.
4770 * target.c (exists_non_stop_target): New function.
4771
60e22c1e
HD
47722020-04-01 Hannes Domani <ssbssa@yahoo.de>
4773
4774 PR gdb/24789
4775 * eval.c (is_integral_or_integral_reference): New function.
4776 (evaluate_subexp_standard): Allow integer references in
4777 pointer arithmetic.
4778
e139a727
TBA
47792020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4780
4781 * remote.c (remote_target::remote_parse_stop_reply): Remove the
4782 check for no ptid in the stop reply when the target is non-stop.
4783
e0802d59
TT
47842020-04-01 Tom Tromey <tromey@adacore.com>
4785
4786 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
4787 "name" parameter to rvalue reference. Initialize m_name_holder.
4788 <lookup_name_info>: New overloads.
4789 <name>: Return gdb::string_view.
4790 <c_str>: New method.
4791 <make_ignore_params>: Update.
4792 <search_name_hash>: Update.
4793 <language_lookup_name>: Return const char *.
4794 <m_name>: Change type.
4795 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
4796 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
4797 (lookup_name_info::match_any): Update.
4798 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
4799 Update.
4800 * minsyms.c (linkage_name_str): Update.
4801 * language.c (default_symbol_name_matcher): Update.
4802 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
4803 Update.
4804 * ada-lang.c (ada_fold_name): Change parameter to string_view.
4805 (ada_lookup_name_info::ada_lookup_name_info): Update.
4806 (literal_symbol_name_matcher): Update.
4807
8c072cb6
TT
48082020-04-01 Tom Tromey <tromey@adacore.com>
4809
4810 * psymtab.c (psymtab_search_name): Remove function.
4811 (psym_lookup_symbol): Create search name and lookup name here.
4812 (lookup_partial_symbol): Remove "name" parameter; add
4813 lookup_name.
4814 (psym_expand_symtabs_for_function): Update.
4815
6f29a534
TT
48162020-03-31 Joel Jones <joelkevinjones@gmail.com>
4817
4818 PR tui/25597:
4819 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
4820
af62665e
TT
48212020-03-31 Tom Tromey <tromey@adacore.com>
4822
4823 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
4824 memcpy.
4825
d1a89da5
NC
48262020-03-30 Nelson Chu <nelson.chu@sifive.com>
4827
4828 * features/riscv/32bit-csr.xml: Regenerated.
4829 * features/riscv/64bit-csr.xml: Regenerated.
4830
d8af9068
TT
48312020-03-30 Tom Tromey <tromey@adacore.com>
4832
4833 * ada-valprint.c (print_variant_part): Update.
4834 * ada-lang.h (ada_which_variant_applies): Update.
4835 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
4836 outer_valaddr parameters; replace with "outer" value parameter.
4837 (to_fixed_variant_branch_type): Update.
4838
227c0bf4
PFC
48392020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4840
4841 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
4842 <list>. Remove inclusion of observable.h.
4843 (PPC_DEBUG_CURRENT_VERSION): Move up define.
4844 (struct arch_lwp_info): New struct.
4845 (class ppc_linux_dreg_interface): New class.
4846 (struct ppc_linux_process_info): New struct.
4847 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
4848 <low_new_clone, low_forget_process, low_prepare_to_resume>
4849 <copy_thread_dreg_state, mark_thread_stale>
4850 <mark_debug_registers_changed, register_hw_breakpoint>
4851 <clear_hw_breakpoint, register_wp, clear_wp>
4852 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
4853 <num_memory_accesses, get_trigger_type>
4854 <create_watchpoint_request, hwdebug_point_cmp>
4855 <init_arch_lwp_info, get_arch_lwp_info>
4856 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
4857 methods.
4858 <struct ptid_hash>: New inner struct.
4859 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
4860 members.
4861 (saved_dabr_value, hwdebug_info, max_slots_number)
4862 (struct hw_break_tuple, struct thread_points, ppc_threads)
4863 (have_ptrace_hwdebug_interface)
4864 (hwdebug_find_thread_points_by_tid)
4865 (hwdebug_insert_point, hwdebug_remove_point): Remove.
4866 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
4867 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
4868 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
4869 use m_dreg_interface.
4870 (hwdebug_point_cmp): Change to...
4871 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
4872 reference arguments instead of pointers.
4873 (ppc_linux_nat_target::ranged_break_num_registers): Use
4874 m_dreg_interface.
4875 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
4876 m_dreg_interface. Call register_hw_breakpoint.
4877 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
4878 m_dreg_interface. Call clear_hw_breakpoint.
4879 (get_trigger_type): Change to...
4880 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
4881 comment.
4882 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
4883 use m_dreg_interface. Call register_hw_breakpoint.
4884 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
4885 use m_dreg_interface. Call clear_hw_breakpoint.
4886 (can_use_watchpoint_cond_accel): Change to...
4887 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
4888 method. Update comment, use m_dreg_interface and
4889 m_process_info.
4890 (calculate_dvc): Change to...
4891 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
4892 m_dreg_interface.
4893 (num_memory_accesses): Change to...
4894 (ppc_linux_nat_target::num_memory_accesses): ...this method.
4895 (check_condition): Change to...
4896 (ppc_linux_nat_target::check_condition): ...this method.
4897 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
4898 comment, use m_dreg_interface.
4899 (create_watchpoint_request): Change to...
4900 (ppc_linux_nat_target::create_watchpoint_request): ...this
4901 method. Use m_dreg_interface.
4902 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
4903 m_dreg_interface. Call register_hw_breakpoint or register_wp.
4904 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
4905 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
4906 (ppc_linux_nat_target::low_forget_process)
4907 (ppc_linux_nat_target::low_new_fork)
4908 (ppc_linux_nat_target::low_new_clone)
4909 (ppc_linux_nat_target::low_delete_thread)
4910 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
4911 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
4912 only call mark_thread_stale.
4913 (ppc_linux_thread_exit): Remove.
4914 (ppc_linux_nat_target::stopped_data_address): Change to...
4915 (ppc_linux_nat_target::low_stopped_data_address): This. Add
4916 comment, use m_dreg_interface and m_thread_hw_breakpoints.
4917 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
4918 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
4919 comment. Call low_stopped_data_address.
4920 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
4921 m_dreg_interface.
4922 (ppc_linux_nat_target::masked_watch_num_registers): Use
4923 m_dreg_interface.
4924 (ppc_linux_nat_target::copy_thread_dreg_state)
4925 (ppc_linux_nat_target::mark_thread_stale)
4926 (ppc_linux_nat_target::mark_debug_registers_changed)
4927 (ppc_linux_nat_target::register_hw_breakpoint)
4928 (ppc_linux_nat_target::clear_hw_breakpoint)
4929 (ppc_linux_nat_target::register_wp)
4930 (ppc_linux_nat_target::clear_wp)
4931 (ppc_linux_nat_target::init_arch_lwp_info)
4932 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
4933 (_initialize_ppc_linux_nat): Remove observer callback.
4934
4db10d8f
PFC
49352020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4936
4937 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
4938 (ppc_linux_nat_target::auxv_parse)
4939 (ppc_linux_nat_target::read_description)
4940 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
4941 Move up.
4942
1310c1b0
PFC
49432020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4944
4945 * linux-nat.h (low_new_clone): New method.
4946 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
4947
69b037c3
SM
49482020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
4949
4950 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
4951 (dbx_expand_psymtab): ... this.
4952 (start_psymtab): Update.
4953 * mdebugread.c (psymtab_to_symtab_1): Rename to...
4954 (mdebug_expand_psymtab): ... this.
4955 (parse_partial_symbols): Update.
4956 (new_psymtab): Update.
4957 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
4958 (xcoff_expand_psymtab): ... this.
4959 (xcoff_start_psymtab): Update.
4960
48993951
SM
49612020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
4962
4963 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
4964 <expand_dependencies>: ... this.
4965 * psymtab.c (partial_symtab::read_dependencies): Rename to...
4966 (partial_symtab::expand_dependencies): ... this.
4967 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
4968 Update.
4969 (dwarf2_psymtab::expand_psymtab): Update.
4970 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
4971 * mdebugread.c (psymtab_to_symtab_1): Update.
4972 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
4973
3ad83046
SM
49742020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
4975
4976 * psympriv.h (discard_psymtab): Remove.
4977 * dbxread.c (dbx_end_psymtab): Update.
4978 * xcoffread.c (xcoff_end_psymtab): Update.
4979
4d1b9ab6
TT
49802020-03-28 Tom Tromey <tom@tromey.com>
4981
4982 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
4983 comment.
4984
f1749218
TT
49852020-03-28 Tom Tromey <tom@tromey.com>
4986
4987 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
4988
ebea7626
HD
49892020-03-27 Hannes Domani <ssbssa@yahoo.de>
4990
4991 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
4992
a879b4d5
JB
49932020-03-26 John Baldwin <jhb@FreeBSD.org>
4994
4995 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
4996
0826b30a
TT
49972020-03-26 Tom Tromey <tom@tromey.com>
4998
4999 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
5000 (mark_common_block_symbol_computed, read_tag_string_type)
5001 (attr_to_dynamic_prop, read_subrange_type): Update.
5002 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
5003 to be methods on struct attribute.
5004 (skip_one_die, process_imported_unit_die, read_namespace_alias)
5005 (read_call_site_scope, partial_die_info::read)
5006 (partial_die_info::read, lookup_die_type, follow_die_ref):
5007 Update.
5008 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
5009 from dwarf2_get_ref_die_offset.
5010 (attribute::constant_value): New method, from
5011 dwarf2_get_attr_constant_value.
5012 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
5013 Declare method.
5014 <constant_value>: New method.
5015
2b2558bf
TT
50162020-03-26 Tom Tromey <tom@tromey.com>
5017
5018 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
5019 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
5020 (dwarf_type_encoding_name): Move to stringify.c.
5021 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
5022 * dwarf2/stringify.c: New file.
5023 * dwarf2/stringify.h: New file.
5024
eeb64781
TT
50252020-03-26 Tom Tromey <tom@tromey.com>
5026
5027 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
5028 Rewrite.
5029
a39fdb41
TT
50302020-03-26 Tom Tromey <tom@tromey.com>
5031
5032 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
5033 methods.
5034 * dwarf2/read.c (lookup_addr_base): Move to die.h.
5035 (lookup_ranges_base): Likewise.
5036 (read_cutu_die_from_dwo, read_full_die_1): Update.
5037
436c571c
TT
50382020-03-26 Tom Tromey <tom@tromey.com>
5039
5040 * dwarf2/read.c (read_import_statement, read_file_scope)
5041 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
5042 (read_lexical_block_scope, read_call_site_scope)
5043 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
5044 (handle_struct_member_die, process_structure_scope)
5045 (update_enumeration_type_from_children)
5046 (process_enumeration_scope, read_array_type, read_common_block)
5047 (read_namespace, read_module, read_subroutine_type): Update.
5048 (sibling_die): Remove.
5049
052c8bb8
TT
50502020-03-26 Tom Tromey <tom@tromey.com>
5051
5052 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
5053 (build_type_psymtabs_reader, read_structure_type)
5054 (read_enumeration_type, read_full_die_1): Update.
5055 (dwarf2_attr_no_follow): Move to die.h.
5056 * dwarf2/die.h (struct die_info) <attr>: New method.
5057
2b24b6e4
TT
50582020-03-26 Tom Tromey <tom@tromey.com>
5059
5060 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
5061 <base_address>: Now an optional.
5062 (dwarf2_find_base_address, dwarf2_rnglists_process)
5063 (dwarf2_ranges_process, fill_in_loclist_baton)
5064 (dwarf2_symbol_mark_computed): Update.
5065
c2d50fd0
TT
50662020-03-26 Tom Tromey <tom@tromey.com>
5067
5068 * dwarf2/read.c (struct die_info): Move to die.h.
5069 * dwarf2/die.h: New file.
5070
0df7ad3a
TT
50712020-03-26 Tom Tromey <tom@tromey.com>
5072
5073 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
5074 * dwarf2/read.c
5075 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5076 Move to line-header.c.
5077 (read_checked_initial_length_and_offset, read_formatted_entries):
5078 Likewise.
5079 (dwarf_decode_line_header): Split into two.
5080 * dwarf2/line-header.c
5081 (dwarf2_statement_list_fits_in_line_number_section_complaint):
5082 Move from read.c.
5083 (read_checked_initial_length_and_offset, read_formatted_entries):
5084 Likewise.
5085 (dwarf_decode_line_header): New function, split from read.c.
5086
86c0bb4c
TT
50872020-03-26 Tom Tromey <tom@tromey.com>
5088
5089 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
5090 Declare method.
5091 * dwarf2/read.c (read_attribute_value): Update.
5092 (dwarf2_per_objfile::read_line_string): Rename from
5093 read_indirect_line_string.
5094 (read_formatted_entries): Update.
5095
2ef46c2f
TT
50962020-03-26 Tom Tromey <tom@tromey.com>
5097
5098 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
5099 variable.
5100
4f9c1eda
TT
51012020-03-26 Tom Tromey <tom@tromey.com>
5102
5103 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
5104 const.
5105 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
5106 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
5107 parameter const.
5108
5a0e026f
TT
51092020-03-26 Tom Tromey <tom@tromey.com>
5110
5111 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
5112 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
5113 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
5114 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
5115
8844c11b
TT
51162020-03-26 Tom Tromey <tom@tromey.com>
5117
5118 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
5119 file_names_size, file_full_name, file_file_name>: Use const.
5120 <file_name_at, file_names>: Add const overload.
5121 * dwarf2/line-header.c (line_header::file_file_name)
5122 (line_header::file_full_name): Update.
5123
c90ec28a
TT
51242020-03-26 Tom Tromey <tom@tromey.com>
5125
5126 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
5127 (macro_start_file, consume_improper_spaces)
5128 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
5129 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
5130 (dwarf_decode_macros): Move to macro.c.
5131 * dwarf2/macro.c: New file.
5132 * dwarf2/macro.h: New file.
5133 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
5134
4f44ae6c
TT
51352020-03-26 Tom Tromey <tom@tromey.com>
5136
5137 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
5138 method.
5139 * dwarf2/section.c: New method. From
5140 read_indirect_string_at_offset_from.
5141 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
5142 (read_indirect_string_at_offset_from): Move to section.c.
5143 (read_indirect_string_at_offset): Rewrite.
5144 (read_indirect_line_string_at_offset): Remove.
5145 (read_indirect_string, read_indirect_line_string)
5146 (dwarf_decode_macro_bytes): Update.
5147
a0194fa8
TT
51482020-03-26 Tom Tromey <tom@tromey.com>
5149
5150 * dwarf2/section.h (struct dwarf2_section_info)
5151 <overload_complaint>: Declare.
5152 (dwarf2_section_buffer_overflow_complaint): Don't declare.
5153 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
5154 Rename from dwarf2_section_buffer_overflow_complaint.
5155 * dwarf2/read.c (skip_one_die, partial_die_info::read)
5156 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
5157
3d27bbdb
TT
51582020-03-26 Tom Tromey <tom@tromey.com>
5159
5160 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
5161 Declare.
5162 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
5163 Move from read.c.
5164 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
5165 to section.c.
5166
9eac9650
TT
51672020-03-26 Tom Tromey <tom@tromey.com>
5168
5169 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
5170
bf80d710
TT
51712020-03-26 Tom Tromey <tom@tromey.com>
5172
5173 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
5174 "builder".
5175 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
5176 parameter.
5177 (dwarf_decode_macros): Update.
5178
0314b390
TT
51792020-03-26 Tom Tromey <tom@tromey.com>
5180
5181 * dwarf2/read.c (read_attribute_value): Update.
5182 (read_indirect_string_from_dwz): Move to dwz.c; change into
5183 method.
5184 (dwarf_decode_macro_bytes): Update.
5185 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
5186 * dwarf2/dwz.c: New file.
5187 * Makefile.in (COMMON_SFILES): Add dwz.c.
5188
9fda78b6
TT
51892020-03-26 Tom Tromey <tom@tromey.com>
5190
5191 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
5192 * dwarf2/read.c: Add include.
5193 * dwarf2/index-write.c: Add include.
5194 * dwarf2/index-cache.c: Add include.
5195 * dwarf2/dwz.h: New file.
5196
33aa3c10
TT
51972020-03-25 Tom Tromey <tom@tromey.com>
5198
5199 * compile/compile-object-load.c (get_out_value_type): Mention
5200 correct symbol name in error message.
5201
d503b685
HD
52022020-03-25 Hannes Domani <ssbssa@yahoo.de>
5203
5204 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
5205
7b1eff95
TV
52062020-03-25 Tom de Vries <tdevries@suse.de>
5207
5208 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
5209 * symmisc.c (dump_symtab_1): Print user and includes fields.
5210 (maintenance_info_symtabs): Same.
5211
dd895392
AB
52122020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
5213
5214 PR gdb/25534
5215 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
5216 (riscv_regcache_cooked_write): New function.
5217 (riscv_push_dummy_call): Use new function.
5218 (riscv_return_value): Likewise.
5219
5ab2fbf1
SM
52202020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
5221
5222 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
5223 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
5224 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
5225 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
5226 * infrun.c (follow_fork): Likewise.
5227 (follow_fork_inferior): Likewise.
5228 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
5229 * linux-nat.h (class linux_nat_target): Likewise.
5230 * remote.c (class remote_target) <follow_fork>: Likewise.
5231 (remote_target::follow_fork): Likewise.
5232 * target-delegates.c: Re-generate.
5233 * target.c (default_follow_fork): Likewise.
5234 (target_follow_fork): Likewise.
5235 * target.h (struct target_ops) <follow_fork>: Likewise.
5236 (target_follow_fork): Likewise.
5237
a64fafb5
TV
52382020-03-24 Tom de Vries <tdevries@suse.de>
5239
5240 * psymtab.c (maintenance_info_psymtabs): Print user field.
5241
fe26d3a3
TT
52422020-03-20 Tom Tromey <tromey@adacore.com>
5243
5244 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
5245 const.
5246 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
5247 const.
5248
c884cc46
SM
52492020-03-20 Simon Marchi <simon.marchi@efficios.com>
5250
5251 * ptrace.m4: Don't check for ptrace declaration.
5252 * config.in: Re-generate.
5253 * configure: Re-generate.
5254 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
5255 not defined.
5256
1ff700c2
KR
52572020-03-20 Kamil Rytarowski <n54@gmx.com>
5258
5259 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
5260 `PTRACE_TYPE_RET'.
5261 * i386-bsd-nat.c (gdb_ptrace): Likewise.
5262 * sparc-nat.c (gdb_ptrace): Likewise.
5263 * x86-bsd-nat.c (gdb_ptrace): Likewise.
5264
f7d4f0b1
TT
52652020-03-20 Tom Tromey <tromey@adacore.com>
5266
5267 * c-exp.y (lex_one_token): Fix assert.
5268
f67210ff
TT
52692020-03-20 Tom Tromey <tromey@adacore.com>
5270
5271 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
5272 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
5273 strncpy call.
5274
1773be9e
TT
52752020-03-20 Tom Tromey <tromey@adacore.com>
5276
5277 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
5278
70304be9
TT
52792020-03-20 Tom Tromey <tromey@adacore.com>
5280
5281 * ada-valprint.c (print_variant_part): Remove parameters; switch
5282 to value-based API.
5283 (print_field_values): Likewise.
5284 (ada_val_print_struct_union): Likewise.
5285 (ada_value_print_1): Update.
5286
9faa006d
KR
52872020-03-20 Kamil Rytarowski <n54@gmx.com>
5288
5289 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
5290 nbsd_nat_target instead of inf_ptrace_target.
5291 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
5292 nbsd_nat_target.
5293
4a90f062
KR
52942020-03-20 Kamil Rytarowski <n54@gmx.com>
5295
5296 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
5297 it to the ptrace call.
5298 * (store_registers): Likewise.
5299
53002020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
5301
5302 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
5303 it to the ptrace call.
5304 * (store_registers): Likewise.
5305
2d07da27
LM
53062020-03-19 Luis Machado <luis.machado@linaro.org>
5307
5308 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
5309 valid, fetch vg value from ptrace.
5310
f09db380
KR
53112020-03-19 Kamil Rytarowski <n54@gmx.com>
5312 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
5313 * inf-ptrace.c: Likewise.
5314 * (gdb_ptrace): Add.
5315 * (inf_ptrace_target::resume): Update.
5316 * (inf_ptrace_target::xfer_partial): Likewise.
5317 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
5318 * (inf_ptrace_peek_poke): Update.
5319
fcc7376e
KR
53202020-03-19 Kamil Rytarowski <n54@gmx.com>
5321
5322 * x86-bsd-nat.c (gdb_ptrace): New.
5323 * (x86bsd_dr_set): Add new argument `ptid'.
5324 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
5325 x86bsd_dr_set_addr): Update.
5326
cada5fc9
AB
53272020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
5328
5329 * remote.c (remote_target::process_stop_reply): Handle events for
5330 all threads differently.
5331
19a2740f
AB
53322020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
5333
5334 * completer.c (completion_tracker::remove_completion): Define new
5335 function.
5336 * completer.h (completion_tracker::remove_completion): Declare new
5337 function.
5338 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
5339 when adding a C++ function symbol.
5340
724fd9ba
AB
53412020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
5342
5343 * completer.c (completion_tracker::completion_hash_entry): Define
5344 new class.
5345 (advance_to_filename_complete_word_point): Call
5346 recompute_lowest_common_denominator.
5347 (completion_tracker::completion_tracker): Call discard_completions
5348 to setup the hash table.
5349 (completion_tracker::discard_completions): Allow for being called
5350 from the constructor, pass new equal function, and element deleter
5351 when constructing the hash table. Initialise new class member
5352 variables.
5353 (completion_tracker::maybe_add_completion): Remove use of
5354 m_entries_vec, and store more information into m_entries_hash.
5355 (completion_tracker::recompute_lcd_visitor): New function, most
5356 content taken from...
5357 (completion_tracker::recompute_lowest_common_denominator):
5358 ...here, this now just visits each item in the hash calling the
5359 above visitor.
5360 (completion_tracker::build_completion_result): Remove use of
5361 m_entries_vec, call recompute_lowest_common_denominator.
5362 * completer.h (completion_tracker::have_completions): Remove use
5363 of m_entries_vec.
5364 (completion_tracker::completion_hash_entry): Declare new class.
5365 (completion_tracker::recompute_lowest_common_denominator): Change
5366 function signature.
5367 (completion_tracker::recompute_lcd_visitor): Declare new function.
5368 (completion_tracker::m_entries_vec): Delete.
5369 (completion_tracker::m_entries_hash): Initialize to NULL.
5370 (completion_tracker::m_lowest_common_denominator_valid): New
5371 member variable.
5372 (completion_tracker::m_lowest_common_denominator_max_length): New
5373 member variable.
5374
5a82b8a1
KR
53752020-03-17 Kamil Rytarowski <n54@gmx.com>
5376
5377 * regformats/regdef.h: Put reg in gdb namespace.
5378
fb516a69
KR
53792020-03-17 Kamil Rytarowski <n54@gmx.com>
5380
5381 * i386-bsd-nat.c (gdb_ptrace): New.
5382 * (i386bsd_fetch_inferior_registers,
5383 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
5384 * (i386bsd_fetch_inferior_registers,
5385 i386bsd_store_inferior_registers) Use gdb_ptrace.
5386
1c0aa1fb
KR
53872020-03-17 Kamil Rytarowski <n54@gmx.com>
5388
5389 * amd64-bsd-nat.c (gdb_ptrace): New.
5390 * (amd64bsd_fetch_inferior_registers,
5391 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
5392 * (amd64bsd_fetch_inferior_registers,
5393 amd64bsd_store_inferior_registers) Use gdb_ptrace.
5394
5ccd2fb7
KR
53952020-03-17 Kamil Rytarowski <n54@gmx.com>
5396
5397 * user-regs.c (user_reg::read): Rename to...
5398 (user_reg::xread): ...this.
5399 * (append_user_reg): Rename argument `read' to `xread'.
5400 * (user_reg_add_builtin): Likewise.
5401 * (user_reg_add): Likewise.
5402 * (value_of_user_reg): Likewise.
5403
2108a63a
KR
54042020-03-17 Kamil Rytarowski <n54@gmx.com>
5405
5406 * sparc-nat.c (gdb_ptrace): New.
5407 * sparc-nat.c (sparc_fetch_inferior_registers)
5408 (sparc_store_inferior_registers) Remove obsolete comment.
5409 * sparc-nat.c (sparc_fetch_inferior_registers)
5410 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
5411 * sparc-nat.c (sparc_fetch_inferior_registers)
5412 (sparc_store_inferior_registers) Use gdb_ptrace.
5413
a225c9a8
KR
54142020-03-17 Kamil Rytarowski <n54@gmx.com>
5415
5416 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
5417 it to the ptrace call.
5418 * sh-nbsd-nat.c (store_registers): Likewise.
5419
98097623
KR
54202020-03-17 Kamil Rytarowski <n54@gmx.com>
5421
5422 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
5423 nbsd_nat_target instead of inf_ptrace_target.
5424 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
5425 nbsd_nat_target.
5426
9e38d619
KR
54272020-03-17 Kamil Rytarowski <n54@gmx.com>
5428
5429 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
5430
a2ecbe9f
KR
54312020-03-17 Kamil Rytarowski <n54@gmx.com>
5432
5433 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
5434 <sys/sysctl.h>.
5435 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
5436
58990295
TV
54372020-03-17 Tom de Vries <tdevries@suse.de>
5438
5439 PR gdb/23710
5440 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
5441 fields.
5442 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
5443 fields.
5444 (process_imported_unit_die): Skip import of c++ CUs.
5445
771dd3a8
TT
54462020-03-16 Tom Tromey <tom@tromey.com>
5447
5448 * p-valprint.c (pascal_object_print_value): Initialize
5449 base_value.
5450
817a7585
AK
54512020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
5452 Shahab Vahedi <shahab@synopsys.com>
5453
5454 * Makefile.in: Add arch/arc.o
5455 * configure.tgt: Likewise.
5456 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
5457 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 5458 (arc_read_description): New function to cache target descriptions.
817a7585
AK
5459 * arc-tdep.h (arc_read_description): Add proto type.
5460 * arch/arc.c: New file.
5461 * arch/arc.h: Likewise.
5462 * features/Makefile: Replace old target descriptions with new.
5463 * features/arc-arcompact.c: Remove.
5464 * features/arc-arcompact.xml: Likewise.
5465 * features/arc-v2.c: Likewise
5466 * features/arc-v2.xml: Likewise
5467 * features/arc/aux-arcompact.xml: New file.
5468 * features/arc/aux-v2.xml: Likewise.
5469 * features/arc/core-arcompact.xml: Likewise.
5470 * features/arc/core-v2.xml: Likewise.
5471 * features/arc/aux-arcompact.c: Generate.
5472 * features/arc/aux-v2.c: Likewise.
5473 * features/arc/core-arcompact.c: Likewise.
5474 * features/arc/core-v2.c: Likewise.
5475 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
5476
67430cd0
TT
54772020-03-16 Tom Tromey <tromey@adacore.com>
5478
5479 PR gdb/25663:
5480 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
5481 putting value into bcache.
5482
30efb6c7
SM
54832020-03-16 Simon Marchi <simon.marchi@efficios.com>
5484
5485 PR gdb/21500
5486 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
5487 to...
5488 (amd64_windows_init_abi_common): ... this. Don't set size of
5489 long type.
5490 (amd64_windows_init_abi): New function.
5491 (amd64_cygwin_init_abi): New function.
5492 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
5493 the Cygwin OS ABI.
5494 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
5495 comment.
5496
8db52437
SM
54972020-03-16 Simon Marchi <simon.marchi@efficios.com>
5498
5499 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
5500 * windows-tdep.c (CYGWIN_DLL_NAME): New.
5501 (pe_import_directory_entry): New struct type.
5502 (is_linked_with_cygwin_dll): New function.
5503 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
5504 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
5505 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
5506
5982a56a
SM
55072020-03-16 Simon Marchi <simon.marchi@efficios.com>
5508
5509 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
5510 i386_cygwin_core_osabi_sniffer.
5511
7a1998df
SM
55122020-03-16 Simon Marchi <simon.marchi@efficios.com>
5513
5514 * i386-cygwin-tdep.c: Rename to...
5515 * i386-windows-tdep.c: ... this.
5516 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
5517 i386-windows-tdep.c.
5518 * configure.tgt: Likewise.
5519
053205cc
SM
55202020-03-16 Simon Marchi <simon.marchi@efficios.com>
5521
5522 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
5523 * osabi.c (gdb_osabi_names): Add "Windows".
5524 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
5525 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
5526 (i386_cygwin_core_osabi_sniffer): New function, extracted from
5527 i386_cygwin_osabi_sniffer.
5528 (_initialize_i386_cygwin_tdep): Register OS ABI
5529 GDB_OSABI_WINDOWS for i386.
5530 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
5531 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
5532 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
5533 for x86-64.
5534 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
5535 when the target matches '*-*-mingw*'.
5536
fe4b2ee6
SM
55372020-03-16 Simon Marchi <simon.marchi@efficios.com>
5538
5539 * defs.h (enum gdb_osabi): Move to...
5540 * osabi.h (enum gdb_osabi): ... here.
5541 * gdbarch.sh: Include osabi.h in gdbarch.h.
5542 * gdbarch.h: Re-generate.
5543
cb9b645d
SM
55442020-03-16 Simon Marchi <simon.marchi@efficios.com>
5545
5546 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
5547 function.
5548 (_initialize_amd64_windows_tdep): Register osabi sniffer.
5549
3293bbaf
TT
55502020-03-14 Tom Tromey <tom@tromey.com>
5551
5552 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
5553 for C++.
5554 (c_type_print_modifier): Likewise. Add "language" parameter.
5555 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
5556 (c_type_print_base_1): Update.
5557 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
5558 constants.
5559 * type-stack.c (type_stack::insert): Handle tp_atomic and
5560 tp_restrict.
5561 (type_stack::follow_type_instance_flags): Likewise.
5562 (type_stack::follow_types): Likewise. Merge type-following code.
5563 * c-exp.y (RESTRICT, ATOMIC): New tokens.
5564 (space_identifier, cv_with_space_id)
5565 (const_or_volatile_or_space_identifier_noopt)
5566 (const_or_volatile_or_space_identifier): Remove.
5567 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
5568 rules.
5569 (ptr_operator, typebase): Update.
5570 (enum token_flag) <FLAG_C>: New constant.
5571 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
5572 "_Atomic".
5573 (lex_one_token): Handle FLAG_C.
5574
154151a6
KR
55752020-03-14 Kamil Rytarowski <n54@gmx.com>
5576
5577 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
5578 it to the ptrace call.
5579 * m68k-bsd-nat.c (store_registers): Likewise.
5580
bc107784
KR
55812020-03-14 Kamil Rytarowski <n54@gmx.com>
5582
5583 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
5584 gdb_byte *.
5585 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
5586 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
5587 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
5588
01a80117
KR
55892020-03-14 Kamil Rytarowski <n54@gmx.com>
5590
5591 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
5592 nbsd_nat_target instead of inf_ptrace_target.
5593 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
5594 nbsd_nat_target.
5595
f90280ca
KR
55962020-03-14 Kamil Rytarowski <n54@gmx.com>
5597
5598 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
5599 register_t.
5600
6def66f1
KR
56012020-03-14 Kamil Rytarowski <n54@gmx.com>
5602
5603 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
5604 it to the ptrace call.
5605 * alpha-bsd-nat.c (store_registers): Likewise.
5606
66eaca97
KR
56072020-03-14 Kamil Rytarowski <n54@gmx.com>
5608
5609 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
5610 includes.
5611 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
5612 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
5613 fill_fpregset): Likewise.
5614
4fed520b
KR
56152020-03-14 Kamil Rytarowski <n54@gmx.com>
5616
5617 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
5618 nbsd_nat_target instead of inf_ptrace_target.
5619 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
5620 nbsd_nat_target.
5621
2190cf06
KR
56222020-03-14 Kamil Rytarowski <n54@gmx.com>
5623
5624 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
5625 register_t.
5626
75c56d3d
KR
56272020-03-14 Kamil Rytarowski <n54@gmx.com>
5628
5629 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
5630 it to the ptrace call.
5631 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
5632 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
5633 * arm-nbsd-nat.c (store_register): Likewise.
5634 * arm-nbsd-nat.c (store_regs): Likewise.
5635 * arm-nbsd-nat.c (store_fp_register): Likewise.
5636 * arm-nbsd-nat.c (store_fp_regs): Likewise.
5637
6018d381
KR
56382020-03-14 Kamil Rytarowski <n54@gmx.com>
5639
5640 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
5641 nbsd_nat_target instead of inf_ptrace_target.
5642 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
5643 nbsd_nat_target.
5644
013f99f0
KR
56452020-03-14 Kamil Rytarowski <n54@gmx.com>
5646
5647 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
5648 it to the ptrace call.
5649 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
5650
12753073
KR
56512020-03-14 Kamil Rytarowski <n54@gmx.com>
5652
6227b330
KR
5653 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
5654 it to the ptrace call.
5655 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
5656
56572020-03-14 Kamil Rytarowski <n54@gmx.com>
5658
5659 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
5660 gdb_byte *.
12753073
KR
5661 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
5662
d5be5fa4
KR
56632020-03-14 Kamil Rytarowski <n54@gmx.com>
5664
5665 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
5666 instead of inf_ptrace_target.
5667 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
5668 nbsd_nat_target.
5669
8110f842
KR
56702020-03-14 Kamil Rytarowski <n54@gmx.com>
5671
5672 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
5673 register_t.
5674
52feded7
KR
56752020-03-14 Kamil Rytarowski <n54@gmx.com>
5676
5677 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
5678 register_t.
5679
25567eee
KR
56802020-03-14 Kamil Rytarowski <n54@gmx.com>
5681
5682 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
5683 register_t.
5684
426a9c18
TT
56852020-03-13 Tom Tromey <tom@tromey.com>
5686
5687 * value.h (val_print): Don't declare.
5688 * valprint.h (val_print_array_elements)
5689 (val_print_scalar_formatted, generic_val_print): Don't declare.
5690 * valprint.c (generic_val_print_array): Take a struct value.
5691 (generic_val_print_ptr, generic_val_print_memberptr)
5692 (generic_val_print_bool, generic_val_print_int)
5693 (generic_val_print_char, generic_val_print_complex)
5694 (generic_val_print): Remove.
5695 (generic_value_print): Update.
5696 (do_val_print): Remove unused parameters. Don't call
5697 la_val_print.
5698 (val_print): Remove.
5699 (common_val_print): Update. Don't call value_check_printable.
5700 (val_print_scalar_formatted, val_print_array_elements): Remove.
5701 * rust-lang.c (rust_val_print): Remove.
5702 (rust_language_defn): Update.
5703 * p-valprint.c (pascal_val_print): Remove.
5704 (pascal_value_print_inner): Update.
5705 (pascal_object_print_val_fields, pascal_object_print_val):
5706 Remove.
5707 (pascal_object_print_static_field): Update.
5708 * p-lang.h (pascal_val_print): Don't declare.
5709 * p-lang.c (pascal_language_defn): Update.
5710 * opencl-lang.c (opencl_language_defn): Update.
5711 * objc-lang.c (objc_language_defn): Update.
5712 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
5713 * m2-lang.h (m2_val_print): Don't declare.
5714 * m2-lang.c (m2_language_defn): Update.
5715 * language.h (struct language_defn) <la_val_print>: Remove.
5716 * language.c (unk_lang_value_print_inner): Rename. Change
5717 argument types.
5718 (unknown_language_defn, auto_language_defn): Update.
5719 * go-valprint.c (go_val_print): Remove.
5720 * go-lang.h (go_val_print): Don't declare.
5721 * go-lang.c (go_language_defn): Update.
5722 * f-valprint.c (f_val_print): Remove.
5723 * f-lang.h (f_value_print): Don't declare.
5724 * f-lang.c (f_language_defn): Update.
5725 * d-valprint.c (d_val_print): Remove.
5726 * d-lang.h (d_value_print): Don't declare.
5727 * d-lang.c (d_language_defn): Update.
5728 * cp-valprint.c (cp_print_value_fields)
5729 (cp_print_value_fields_rtti, cp_print_value): Remove.
5730 (cp_print_static_field): Update.
5731 * c-valprint.c (c_val_print_array, c_val_print_ptr)
5732 (c_val_print_struct, c_val_print_union, c_val_print_int)
5733 (c_val_print_memberptr, c_val_print): Remove.
5734 * c-lang.h (c_val_print_array, cp_print_value_fields)
5735 (cp_print_value_fields_rtti): Don't declare.
5736 * c-lang.c (c_language_defn, cplus_language_defn)
5737 (asm_language_defn, minimal_language_defn): Update.
5738 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
5739 (ada_val_print_enum): Take a struct value.
5740 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
5741 (ada_val_print): Remove.
5742 (ada_value_print_1): Update.
5743 (printable_val_type): Remove.
5744 * ada-lang.h (ada_val_print): Don't declare.
5745 * ada-lang.c (ada_language_defn): Update.
5746
42331a1e
TT
57472020-03-13 Tom Tromey <tom@tromey.com>
5748
5749 * valprint.c (do_val_print): Update.
5750 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
5751 a struct value.
5752 (value_to_value_object_no_release): Declare.
5753 * python/py-value.c (value_to_value_object_no_release): New
5754 function.
5755 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
5756 struct value.
5757 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
5758 function.
5759 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
5760 a struct value.
5761 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
5762 Declare.
5763 (gdbscm_apply_val_pretty_printer): Take a struct value.
5764 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
5765 value.
5766 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
5767 value.
5768 * extension-priv.h (struct extension_language_ops)
5769 <apply_val_pretty_printer>: Take a struct value.
5770 * cp-valprint.c (cp_print_value): Create a struct value.
5771 (cp_print_value): Update.
5772
3a916a97
TT
57732020-03-13 Tom Tromey <tom@tromey.com>
5774
5775 * ada-valprint.c (print_field_values): Call common_val_print.
5776
b59eac37
TT
57772020-03-13 Tom Tromey <tom@tromey.com>
5778
5779 * ada-valprint.c (val_print_packed_array_elements): Remove
5780 bitoffset and val parameters. Call common_val_print.
5781 (ada_val_print_string): Remove offset, address, and original_value
5782 parameters.
5783 (ada_val_print_array): Update.
5784 (ada_value_print_array): New function.
5785 (ada_value_print_1): Call it.
5786
03371129
TT
57872020-03-13 Tom Tromey <tom@tromey.com>
5788
5789 * ada-valprint.c (ada_value_print): Use common_val_print.
5790
2e088f8b
TT
57912020-03-13 Tom Tromey <tom@tromey.com>
5792
5793 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
5794
39ef85a8
TT
57952020-03-13 Tom Tromey <tom@tromey.com>
5796
5797 * ada-valprint.c (ada_value_print_num): New function.
5798 (ada_value_print_1): Use it.
5799
b9fa6e07
TT
58002020-03-13 Tom Tromey <tom@tromey.com>
5801
5802 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
5803
416595d6
TT
58042020-03-13 Tom Tromey <tom@tromey.com>
5805
5806 * ada-valprint.c (ada_value_print_ptr): New function.
5807 (ada_value_print_1): Use it.
5808
5b5e15ec
TT
58092020-03-13 Tom Tromey <tom@tromey.com>
5810
5811 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
5812 call common_val_print.
5813 (ada_val_print_1): Update.
5814 (ada_value_print_1): New function.
5815 (ada_value_print_inner): Rewrite.
5816
fbf54e75
TT
58172020-03-13 Tom Tromey <tom@tromey.com>
5818
5819 * cp-valprint.c (cp_print_value_fields): Update.
5820 (cp_print_value): New function.
5821
64b653ca
TT
58222020-03-13 Tom Tromey <tom@tromey.com>
5823
5824 * m2-valprint.c (m2_value_print_inner): Use
5825 cp_print_value_fields.
5826 * cp-valprint.c (cp_print_value_fields): New function.
5827 * c-valprint.c (c_value_print_struct): New function.
5828 (c_value_print_inner): Use c_value_print_struct.
5829 * c-lang.h (cp_print_value_fields): Declare.
5830
6999f067
TT
58312020-03-13 Tom Tromey <tom@tromey.com>
5832
5833 * c-valprint.c (c_value_print_array): New function.
5834 (c_value_print_inner): Use it.
5835
ce80b8bd
TT
58362020-03-13 Tom Tromey <tom@tromey.com>
5837
5838 * c-valprint.c (c_value_print_memberptr): New function.
5839 (c_value_print_inner): Use it.
5840
2faac269
TT
58412020-03-13 Tom Tromey <tom@tromey.com>
5842
5843 * c-valprint.c (c_value_print_int): New function.
5844 (c_value_print_inner): Use it.
5845
da3e2c29
TT
58462020-03-13 Tom Tromey <tom@tromey.com>
5847
5848 * c-valprint.c (c_value_print_ptr): New function.
5849 (c_value_print_inner): Use it.
5850
50836231
TT
58512020-03-13 Tom Tromey <tom@tromey.com>
5852
5853 * c-valprint.c (c_value_print_inner): Rewrite.
5854
4f412b6e
TT
58552020-03-13 Tom Tromey <tom@tromey.com>
5856
5857 * valprint.c (generic_value_print_complex): New function.
5858 (generic_value_print): Use it.
5859
f5354008
TT
58602020-03-13 Tom Tromey <tom@tromey.com>
5861
5862 * valprint.c (generic_val_print_float): Don't call
5863 val_print_scalar_formatted.
5864 (generic_val_print, generic_value_print): Update.
5865
3eec3b05
TT
58662020-03-13 Tom Tromey <tom@tromey.com>
5867
5868 * valprint.c (generic_value_print_char): New function
5869 (generic_value_print): Use it.
5870
fdddfccb
TT
58712020-03-13 Tom Tromey <tom@tromey.com>
5872
5873 * valprint.c (generic_value_print_int): New function.
5874 (generic_value_print): Use it.
5875
6dde7521
TT
58762020-03-13 Tom Tromey <tom@tromey.com>
5877
5878 * valprint.c (generic_value_print_bool): New function.
5879 (generic_value_print): Use it.
5880
4112d2e6
TT
58812020-03-13 Tom Tromey <tom@tromey.com>
5882
5883 * valprint.c (generic_val_print_func): Simplify.
5884 (generic_val_print, generic_value_print): Update.
5885
65786af6
TT
58862020-03-13 Tom Tromey <tom@tromey.com>
5887
5888 * valprint.c (generic_val_print_flags): Remove.
5889 (generic_val_print, generic_value_print): Update.
5890 (val_print_type_code_flags): Add original_value parameter.
5891
40f3ce18
TT
58922020-03-13 Tom Tromey <tom@tromey.com>
5893
5894 * valprint.c (generic_val_print): Update.
5895 (generic_value_print): Update.
5896 * valprint.c (generic_val_print_enum): Don't call
5897 val_print_scalar_formatted.
5898
2a5b130b
TT
58992020-03-13 Tom Tromey <tom@tromey.com>
5900
5901 * valprint.c (generic_value_print): Call generic_value_print_ptr.
5902 * valprint.c (generic_value_print_ptr): New function.
5903
abc66ce9
TT
59042020-03-13 Tom Tromey <tom@tromey.com>
5905
5906 * valprint.c (generic_value_print): Rewrite.
5907
07a32858
TT
59082020-03-13 Tom Tromey <tom@tromey.com>
5909
5910 * p-valprint.c (pascal_object_print_value_fields)
5911 (pascal_object_print_value): New functions.
5912
64d64d3a
TT
59132020-03-13 Tom Tromey <tom@tromey.com>
5914
5915 * p-valprint.c (pascal_value_print_inner): Rewrite.
5916
6a95a1f5
TT
59172020-03-13 Tom Tromey <tom@tromey.com>
5918
5919 * f-valprint.c (f_value_print_innner): Rewrite.
5920
59fcdac6
TT
59212020-03-13 Tom Tromey <tom@tromey.com>
5922
5923 * m2-valprint.c (m2_print_unbounded_array): New overload.
5924 (m2_print_unbounded_array): Update.
5925 (m2_print_array_contents): Take a struct value.
5926 (m2_value_print_inner): Rewrite.
5927
d133c3e1
TT
59282020-03-13 Tom Tromey <tom@tromey.com>
5929
5930 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
5931 (d_value_print_inner): New function.
5932 * d-lang.h (d_value_print_inner): Declare.
5933 * d-lang.c (d_language_defn): Use d_value_print_inner.
5934
23b0f06b
TT
59352020-03-13 Tom Tromey <tom@tromey.com>
5936
5937 * go-valprint.c (go_value_print_inner): New function.
5938 * go-lang.h (go_value_print_inner): Declare.
5939 * go-lang.c (go_language_defn): Use go_value_print_inner.
5940
5f56f7cb
TT
59412020-03-13 Tom Tromey <tom@tromey.com>
5942
5943 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
5944 API.
5945 (rust_val_print): Rewrite.
5946 (rust_value_print_inner): New function, from rust_val_print.
5947 (rust_language_defn): Use rust_value_print_inner.
5948
26792ee0
TT
59492020-03-13 Tom Tromey <tom@tromey.com>
5950
5951 * ada-valprint.c (ada_value_print_inner): New function.
5952 * ada-lang.h (ada_value_print_inner): Declare.
5953 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
5954
24051bbe
TT
59552020-03-13 Tom Tromey <tom@tromey.com>
5956
5957 * f-valprint.c (f_value_print_innner): New function.
5958 * f-lang.h (f_value_print_innner): Declare.
5959 * f-lang.c (f_language_defn): Use f_value_print_innner.
5960
c0941be6
TT
59612020-03-13 Tom Tromey <tom@tromey.com>
5962
5963 * p-valprint.c (pascal_value_print_inner): New function.
5964 * p-lang.h (pascal_value_print_inner): Declare.
5965 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
5966
62c4663d
TT
59672020-03-13 Tom Tromey <tom@tromey.com>
5968
5969 * m2-valprint.c (m2_value_print_inner): New function.
5970 * m2-lang.h (m2_value_print_inner): Declare.
5971 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
5972
62182190
TT
59732020-03-13 Tom Tromey <tom@tromey.com>
5974
5975 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
5976 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
5977 * c-valprint.c (c_value_print_inner): New function.
5978 * c-lang.h (c_value_print_inner): Declare.
5979 * c-lang.c (c_language_defn, cplus_language_defn)
5980 (asm_language_defn, minimal_language_defn): Use
5981 c_value_print_inner.
5982
1e592a8a
TT
59832020-03-13 Tom Tromey <tom@tromey.com>
5984
5985 * p-valprint.c (pascal_object_print_value_fields): Now static.
5986 * p-lang.h (pascal_object_print_value_fields): Don't declare.
5987
7fe471e9
TT
59882020-03-13 Tom Tromey <tom@tromey.com>
5989
5990 * c-valprint.c (c_val_print_array): Simplify.
5991
d121c6ce
TT
59922020-03-13 Tom Tromey <tom@tromey.com>
5993
5994 * valprint.c (value_print_array_elements): New function.
5995 * valprint.h (value_print_array_elements): Declare.
5996
4dba70ee
TT
59972020-03-13 Tom Tromey <tom@tromey.com>
5998
5999 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
6000 * mips-tdep.c (mips_print_register): Use
6001 value_print_scalar_formatted.
6002
4f9ae810
TT
60032020-03-13 Tom Tromey <tom@tromey.com>
6004
6005 * valprint.h (value_print_scalar_formatted): Declare.
6006 * valprint.c (value_print_scalar_formatted): New function.
6007
156bfec9
TT
60082020-03-13 Tom Tromey <tom@tromey.com>
6009
6010 * valprint.h (generic_value_print): Declare.
6011 * valprint.c (generic_value_print): New function.
6012
2b4e573d
TT
60132020-03-13 Tom Tromey <tom@tromey.com>
6014
6015 * valprint.c (do_val_print): Call la_value_print_inner, if
6016 available.
6017 * rust-lang.c (rust_language_defn): Update.
6018 * p-lang.c (pascal_language_defn): Update.
6019 * opencl-lang.c (opencl_language_defn): Update.
6020 * objc-lang.c (objc_language_defn): Update.
6021 * m2-lang.c (m2_language_defn): Update.
6022 * language.h (struct language_defn) <la_value_print_inner>: New
6023 member.
6024 * language.c (unknown_language_defn, auto_language_defn): Update.
6025 * go-lang.c (go_language_defn): Update.
6026 * f-lang.c (f_language_defn): Update.
6027 * d-lang.c (d_language_defn): Update.
6028 * c-lang.c (c_language_defn, cplus_language_defn)
6029 (asm_language_defn, minimal_language_defn): Update.
6030 * ada-lang.c (ada_language_defn): Update.
6031
a1f6a07c
TT
60322020-03-13 Tom Tromey <tom@tromey.com>
6033
6034 * c-valprint.c (c_value_print): Use common_val_print.
6035
410cf315
TT
60362020-03-13 Tom Tromey <tom@tromey.com>
6037
6038 * cp-valprint.c (cp_print_static_field): Use common_val_print.
6039
72a45c93
TT
60402020-03-13 Tom Tromey <tom@tromey.com>
6041
6042 * f-valprint.c (f77_print_array_1, f_val_print): Use
6043 common_val_print.
6044
040f66bd
TT
60452020-03-13 Tom Tromey <tom@tromey.com>
6046
6047 * riscv-tdep.c (riscv_print_one_register_info): Use
6048 common_val_print.
6049
a6e05a6c
TT
60502020-03-13 Tom Tromey <tom@tromey.com>
6051
6052 * mi/mi-main.c (output_register): Use common_val_print.
6053
3444c526
TT
60542020-03-13 Tom Tromey <tom@tromey.com>
6055
6056 * infcmd.c (default_print_one_register_info): Use
6057 common_val_print.
6058
c2a44efe
TT
60592020-03-13 Tom Tromey <tom@tromey.com>
6060
6061 * valprint.h (common_val_print_checked): Declare.
6062 * valprint.c (common_val_print_checked): New function.
6063 * stack.c (print_frame_arg): Use common_val_print_checked.
6064
b0c26e99
TT
60652020-03-13 Tom Tromey <tom@tromey.com>
6066
6067 * valprint.c (do_val_print): New function, from val_print.
6068 (val_print): Use do_val_print.
6069 (common_val_print): Use do_val_print.
6070
ce3acbe9
TT
60712020-03-13 Tom Tromey <tom@tromey.com>
6072
6073 * valprint.c (value_print): Use scoped_value_mark.
6074
96c7f873
TV
60752020-03-13 Tom de Vries <tdevries@suse.de>
6076
6077 PR symtab/25646
6078 * psymtab.c (partial_symtab::partial_symtab): Don't set
6079 globals_offset and statics_offset. Push element onto
6080 current_global_psymbols and current_static_psymbols stacks.
6081 (concat): New function.
6082 (end_psymtab_common): Set globals_offset and statics_offset. Pop
6083 element from current_global_psymbols and current_static_psymbols
6084 stacks. Concat popped elements to global_psymbols and
6085 static_symbols.
6086 (add_psymbol_to_list): Use current_global_psymbols and
6087 current_static_psymbols stacks.
6088 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
6089 current_static_psymbols fields.
6090
6ba0a321
CB
60912020-03-12 Christian Biesinger <cbiesinger@google.com>
6092
6093 * corelow.c (sniff_core_bfd): Remove.
6094 (class core_target) <m_core_vec>: Remove.
6095 (core_target::core_target): Update.
6096 (core_file_fns): Remove.
6097 (deprecated_add_core_fns): Remove.
6098 (default_core_sniffer): Remove.
6099 (sniff_core_bfd): Remove.
6100 (default_check_format): Remove.
6101 (gdb_check_format): Remove.
6102 (core_target_open): Update.
6103 (core_target::get_core_register_section): Update.
6104 (get_core_registers_cb): Update.
6105 (core_target::fetch_registers): Update.
6106 * gdbcore.h (struct core_fns): Remove.
6107 (deprecated_add_core_fns): Remove.
6108 (default_core_sniffer): Remove.
6109 (default_check_format): Remove.
6110
227031b2
TT
61112020-03-12 Tom Tromey <tom@tromey.com>
6112
6113 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
6114 CORE_ADDR.
6115 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
6116
53807e9f
TT
61172020-03-12 Tom Tromey <tom@tromey.com>
6118
6119 * remote.c (remote_target::download_tracepoint)
6120 (remote_target::enable_tracepoint)
6121 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
6122 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
6123 sprintf_vma.
6124
64f25102
TT
61252020-03-12 Tom Tromey <tom@tromey.com>
6126
6127 * symfile-mem.c: Update CORE_ADDR size assert.
6128
272cd5a3
SM
61292020-03-12 Simon Marchi <simon.marchi@efficios.com>
6130
6131 * selftest.m4: Move to gdbsupport/.
6132 * acinclude.m4: Update path to selftest.m4.
6133
74cd3f9d
SM
61342020-03-12 Simon Marchi <simon.marchi@efficios.com>
6135
6136 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
6137 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
6138 gdbarch-selfselftests.c and selftest-arch.c.
6139 (SUBDIR_UNITTESTS_OBS): Rename to...
6140 (SELFTESTS_OBS): ... this.
6141 (COMMON_SFILES): Remove disasm-selftests.c and
6142 gdbarch-selftests.c.
6143 * configure.ac: Don't add selftest-arch.{c,o} to
6144 CONFIG_{SRCS,OBS}.
6145 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
6146 preprocessor conditions.
6147
db6878ac
SM
61482020-03-12 Simon Marchi <simon.marchi@efficios.com>
6149
6150 * configure.ac: Don't source bfd/development.sh.
6151 * selftest.m4: Modify comment.
6152 * configure: Re-generate.
6153
4d696a5c
SM
61542020-03-12 Simon Marchi <simon.marchi@efficios.com>
6155
6156 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
6157 not "true" or "false".
6158 * configure: Re-generate.
6159
8dd8e1c7
CB
61602020-03-12 Christian Biesinger <cbiesinger@google.com>
6161
6162 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
6163 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
6164 renamed to arm_nbsd_supply_gregset.
6165 (fetch_register): Update to call arm_nbsd_supply_gregset.
6166 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
6167 (arm_netbsd_nat_target::fetch_registers): Update.
6168 (fetch_elfcore_registers): Removed.
6169 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
6170 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
6171 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
6172 not require NetBSD system headers.
6173 (arm_nbsd_regset): New struct.
6174 (arm_nbsd_iterate_over_regset_sections): New function.
6175 (arm_netbsd_init_abi_common): Updated to call
6176 set_gdbarch_iterate_over_regset_sections.
6177 * arm-nbsd-tdep.h: New file.
6178
dd69bf7a
KB
61792020-03-11 Kevin Buettner <kevinb@redhat.com>
6180
6181 * symtab.c (find_pc_sect_line): Add check which prevents infinite
6182 recursion.
6183
a0761e34
SM
61842020-03-11 Simon Marchi <simon.marchi@efficios.com>
6185
6186 * configure: Re-generate.
6187
e7a82140
TT
61882020-03-11 Tom Tromey <tromey@adacore.com>
6189
6190 * ada-typeprint.c (print_choices): Fix comment.
6191
dcc050c8
AB
61922020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
6193
6194 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
6195 previous item in the list, when the list has no items.
6196
1c33af77
TV
61972020-03-11 Tom de Vries <tdevries@suse.de>
6198
6199 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
6200 PROP_LOCLIST handling code.
6201
8c95582d
AB
62022020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
6203
6204 * buildsym-legacy.c (record_line): Pass extra parameter to
6205 record_line.
6206 * buildsym.c (buildsym_compunit::record_line): Take an extra
6207 parameter, reduce duplication in the line table, and record the
6208 is_stmt flag in the line table.
6209 * buildsym.h (buildsym_compunit::record_line): Add extra
6210 parameter.
6211 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
6212 non-statement lines.
6213 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
6214 this to the symtab builder.
6215 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
6216 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
6217 through to dwarf_record_line_1.
6218 * infrun.c (process_event_stop_test): When stepping, don't stop at
6219 a non-statement instruction, and only refresh the step info when
6220 we land in the middle of a line's range. Also add an extra
6221 comment.
6222 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
6223 field.
6224 * record-btrace.c (btrace_find_line_range): Only record lines
6225 marked as is-statement.
6226 * stack.c (frame_show_address): Show the frame address if we are
6227 in a non-statement sal.
6228 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
6229 (maintenance_print_one_line_table): Print a header for the is_stmt
6230 column, and include is_stmt information in the output.
6231 * symtab.c (find_pc_sect_line): Find lines marked as statements in
6232 preference to non-statements.
6233 (find_pcs_for_symtab_line): Prefer is-statement entries.
6234 (find_line_common): Likewise.
6235 * symtab.h (struct linetable_entry): Add is_stmt field.
6236 (struct symtab_and_line): Likewise.
6237 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
6238 arranging the line table.
6239
e4003a34
TV
62402020-03-07 Tom de Vries <tdevries@suse.de>
6241
6242 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
6243 DIE.
6244
e8932576
TT
62452020-03-07 Tom Tromey <tom@tromey.com>
6246
6247 * valops.c (value_literal_complex): Remove obsolete comment.
6248 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
6249 comment.
6250
29734269
SM
62512020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
6252
6253 * infrun.h: Forward-declare thread_info.
6254 (set_step_info): Add thread_info parameter, add doc.
6255 * infrun.c (set_step_info): Add thread_info parameter, move doc
6256 to header.
6257 * infrun.c (process_event_stop_test): Pass thread to
6258 set_step_info call.
6259 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
6260 set_step_info.
6261 (prepare_one_step): Add thread_info parameter, pass it to
6262 set_step_frame and prepare_one_step (recursive) call.
6263 (step_1): Pass thread to prepare_one_step call.
6264 (step_command_fsm::should_stop): Pass thread to
6265 prepare_one_step.
6266 (until_next_fsm): Pass thread to set_step_frame call.
6267 (finish_command): Pass thread to set_step_info call.
6268
b7d64b29
HD
62692020-03-06 Hannes Domani <ssbssa@yahoo.de>
6270
6271 * windows-tdep.c (windows_solib_create_inferior_hook):
6272 Check if inferior is running.
6273
09f2921c
TV
62742020-03-06 Tom de Vries <tdevries@suse.de>
6275
6276 * NEWS: Fix "the the".
6277 * ctfread.c: Same.
6278
fd760e79
TV
62792020-03-06 Tom de Vries <tdevries@suse.de>
6280
6281 * psymtab.c (psymtab_to_symtab): Don't print "done.".
6282
20ea4a60
AB
62832020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
6284
6285 * .dir-locals.el: Add a comment referencing the other copies of
6286 this file.
6287
0afbabf0
JB
62882020-03-05 John Baldwin <jhb@FreeBSD.org>
6289
6290 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
6291 psargs.
6292
842806cb
TBA
62932020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6294
6295 * .gitattributes: New file.
6296
be1e3d3e
TT
62972020-03-04 Tom Tromey <tom@tromey.com>
6298
6299 * symmisc.c (print_symbol_bcache_statistics)
6300 (print_objfile_statistics): Update.
6301 * symfile.c (allocate_symtab): Use intern.
6302 * psymtab.c (partial_symtab::partial_symtab): Use intern.
6303 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
6304 macro_cache>: Remove.
6305 <string_cache>: New member.
6306 (struct objfile) <intern>: New methods.
6307 * elfread.c (elf_symtab_read): Use intern.
6308 * dwarf2/read.c (fixup_go_packaging): Intern package name.
6309 (dwarf2_compute_name, dwarf2_physname)
6310 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
6311 names.
6312 (guess_partial_die_structure_name): Update.
6313 (partial_die_info::fixup): Intern name.
6314 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
6315 name.
6316 (dwarf2_name): Intern name. Update.
6317 * buildsym.c (buildsym_compunit::get_macro_table): Use
6318 string_cache.
6319
4e7625fd
TT
63202020-03-04 Tom Tromey <tom@tromey.com>
6321
6322 * jit.c (bfd_open_from_target_memory): Make "target" const.
6323 * corefile.c (gnutarget): Now const.
6324 * gdbcore.h (gnutarget): Now const.
6325
46f9f931
HD
63262020-03-04 Hannes Domani <ssbssa@yahoo.de>
6327
6328 * NEWS: Mention support for WOW64 processes.
6329 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
6330 (amd64_windows_segment_register_p): Remove static.
6331 (_initialize_amd64_windows_nat): Update.
6332 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
6333 * i386-windows-nat.c (context_offset): Update.
6334 (i386_mappings): Rename and remove static.
6335 (i386_windows_segment_register_p): Remove static.
6336 (_initialize_i386_windows_nat): Update.
6337 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
6338 (STATUS_WX86_SINGLE_STEP): New macro.
6339 (EnumProcessModulesEx): New macro.
6340 (Wow64SuspendThread): New macro.
6341 (Wow64GetThreadContext): New macro.
6342 (Wow64SetThreadContext): New macro.
6343 (Wow64GetThreadSelectorEntry): New macro.
6344 (windows_set_context_register_offsets): Add static.
6345 (windows_set_segment_register_p): Likewise.
6346 (windows_add_thread): Adapt for WOW64 processes.
6347 (windows_fetch_one_register): Likewise.
6348 (windows_nat_target::fetch_registers): Likewise.
6349 (windows_store_one_register): Likewise.
6350 (display_selector): Likewise.
6351 (display_selectors): Likewise.
6352 (handle_exception): Likewise.
6353 (windows_continue): Likewise.
6354 (windows_nat_target::resume): Likewise.
6355 (windows_add_all_dlls): Likewise.
6356 (do_initial_windows_stuff): Likewise.
6357 (windows_nat_target::attach): Likewise.
6358 (windows_get_exec_module_filename): Likewise.
6359 (windows_nat_target::create_inferior): Likewise.
6360 (windows_xfer_siginfo): Likewise.
6361 (_initialize_loadable): Initialize Wow64SuspendThread,
6362 Wow64GetThreadContext, Wow64SetThreadContext,
6363 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
6364 * windows-nat.h (windows_set_context_register_offsets):
6365 Remove declaration.
6366 (windows_set_segment_register_p): Likewise.
6367 (i386_windows_segment_register_p): Add declaration.
6368 (amd64_windows_segment_register_p): Likewise.
6369
440cf44e
LM
63702020-03-04 Luis Machado <luis.machado@linaro.org>
6371
6372 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
6373 in "info registers" for AArch64/ARM.
6374
6375 The change caused "info registers" to not print GPR's.
6376
6377 gdb/ChangeLog:
6378
6379 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
6380
6381 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
6382 when reg->group is empty and reggroup is not.
6383
1009d92f
TT
63842020-03-03 Tom Tromey <tromey@adacore.com>
6385
6386 * dwarf2/frame.c (struct dwarf2_frame_cache)
6387 <checked_tailcall_bottom, entry_cfa_sp_offset,
6388 entry_cfa_sp_offset_p>: Remove members.
6389 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
6390 (dwarf2_frame_prev_register): Don't call
6391 dwarf2_tailcall_sniffer_first.
6392 (dwarf2_append_unwinders): Don't append tailcall unwinder.
6393 * frame-unwind.c (add_unwinder): New fuction.
6394 (frame_unwind_init): Use it. Add tailcall unwinder.
6395
5e5d66b6
AB
63962020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
6397 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6398
6399 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
6400 value should be printed as true.
6401
584cf46d
HD
64022020-03-03 Hannes Domani <ssbssa@yahoo.de>
6403
6404 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
6405 (windows_init_abi): Set and use windows_so_ops.
6406
7b973adc
SDJ
64072020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
6408
6409 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
6410 when verifying if dealing with a convenience variable.
6411
bb7b70ab
LM
64122020-03-03 Luis Machado <luis.machado@linaro.org>
6413
6414 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
6415
9822cb57
SM
64162020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6417
6418 * infrun.c (gdbarch_supports_displaced_stepping): New.
6419 (use_displaced_stepping): Break up conditions in smaller pieces.
6420 Use gdbarch_supports_displaced_stepping.
6421 (displaced_step_prepare_throw): Use
6422 gdbarch_supports_displaced_stepping.
6423
63e163f2
AB
64242020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
6425
6426 * NEWS: Mention new behaviour of the history filename.
6427 * top.c (write_history_p): Add comment.
6428 (show_write_history_p): Add header comment, give a different
6429 message when history writing is on, but the history filename is
6430 empty.
6431 (history_filename): Add comment.
6432 (history_filename_empty): New function.
6433 (show_history_filename): Add header comment, give a different
6434 message when the filename is empty.
6435 (init_history): Compare history_filename against nullptr, and only
6436 read history if the filename is not empty.
6437 (set_history_filename): Add header comment, and only make
6438 non-empty filenames absolute.
6439 (init_main): Make the filename argument to 'set history filename'
6440 optional.
6441
81b86b97
CB
64422020-03-02 Christian Biesinger <cbiesinger@google.com>
6443
6444 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
6445 (arm_supply_vfpregset): ...this, and update to use VFP registers.
6446 (fetch_fp_register): Update.
6447 (fetch_fp_regs): Update.
6448 (store_fp_register): Update.
6449 (store_fp_regs): Update.
6450 (arm_netbsd_nat_target::read_description): New function.
6451 (fetch_elfcore_registers): Update.
6452
24ed6739
AB
64532020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
6454
6455 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
6456 general_thread if the stop reply is missing a thread-id.
6457 (remote_target::process_stop_reply): Use the first non-exited
6458 thread if the target didn't pass a thread-id.
6459 * infrun.c (do_target_wait): Move call to
6460 switch_to_inferior_no_thread to ....
6461 (do_target_wait_1): ... here.
6462
a84bb2a0
JT
64632020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
6464
6465 * debuginfod-support.c: Include defs.h first.
6466
658dadf0
TV
64672020-02-28 Tom de Vries <tdevries@suse.de>
6468
6469 * symfile.c (set_initial_language): Use default language for lookup.
6470
4ebe4877
SM
64712020-02-28 Simon Marchi <simon.marchi@efficios.com>
6472
6473 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
6474 reader variable, pass `this` to read_cutu_die_from_dwo.
6475
e5da1139
AM
64762020-02-27 Aaron Merey <amerey@redhat.com>
6477
6478 * source.c (open_source_file): Check for nullptr when computing
6479 srcpath.
6480
317f7127
TT
64812020-02-27 Tom Tromey <tromey@adacore.com>
6482
6483 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
6484 member.
6485 (dwarf2_add_field): Don't update nfields.
6486 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
6487
3104d9ee
AB
64882020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
6489
6490 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
6491 abs.
6492
b83470bf
TT
64932020-02-26 Tom Tromey <tom@tromey.com>
6494
6495 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
6496 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
6497 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
6498 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
6499 per_cu_data.
6500
edfe0a0c
TT
65012020-02-26 Tom Tromey <tom@tromey.com>
6502
6503 * dwarf2/index-write.c (psym_index_map): Change type.
6504 (add_address_entry_worker, write_one_signatured_type)
6505 (recursively_count_psymbols, recursively_write_psymbols)
6506 (class debug_names, psyms_seen_size, write_gdbindex)
6507 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
6508
0d79cdc4
AM
65092020-02-26 Aaron Merey <amerey@redhat.com>
6510
6511 * Makefile.in: Handle optional debuginfod support.
6512 * NEWS: Update.
6513 * README: Add --with-debuginfod summary.
6514 * config.in: Regenerate.
6515 * configure: Regenerate.
6516 * configure.ac: Handle optional debuginfod support.
6517 * debuginfod-support.c: debuginfod helper functions.
6518 * debuginfod-support.h: Ditto.
6519 * doc/gdb.texinfo: Add --with-debuginfod to configure options
6520 summary.
6521 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
6522 when a dwz file cannot be found.
6523 * elfread.c (elf_symfile_read): Query debuginfod servers when a
6524 debuginfo file cannot be found.
6525 * source.c (open_source_file): Query debuginfod servers when a
6526 source file cannot be found.
6527 * top.c (print_gdb_configuration): Include
6528 --{with,without}-debuginfod in the output.
6529
b65ce565
JG
65302020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
6531
6532 * thread.c (thr_try_catch_cmd): Print thread name.
6533
d4c9a4f8
SM
65342020-02-26 Simon Marchi <simon.marchi@efficios.com>
6535
6536 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
6537 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6538 dwarf2_fetch_die_type_sect_off): Move to...
6539 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6540 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6541 dwarf2_fetch_die_type_sect_off): ... here.
6542 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6543 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6544 dwarf2_fetch_die_type_sect_off): Move doc to header file.
6545
0dce4280
TV
65462020-02-26 Tom de Vries <tdevries@suse.de>
6547
6548 PR gdb/25603
6549 * symfile.c (set_initial_language): Exit-early if
6550 language_mode == language_mode_manual.
6551
450a1bfc
SM
65522020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
6553
6554 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
6555 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
6556 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
6557
9e80cfa1
AB
65582020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
6559
6560 * gdbtypes.c (create_array_type_with_stride): Handle negative
6561 array strides.
6562 * valarith.c (value_subscripted_rvalue): Likewise.
6563
09624f1f
LM
65642020-02-25 Luis Machado <luis.machado@linaro.org>
6565
6566 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
6567
8cb5117c
SM
65682020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
6569
6570 * loc.h (dwarf2_get_die_type): Move to...
6571 * read.h (dwarf2_get_die_type): ... here.
6572 * read.c (dwarf2_get_die_type): Move doc to header.
6573
c325c44e
JB
65742020-02-25 Joel Brobecker <brobecker@adacore.com>
6575
6576 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
6577 'gnulib/Makefile.in' to the list.
6578
4ac93832
TT
65792020-02-24 Tom Tromey <tom@tromey.com>
6580
6581 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
6582 Remove.
6583 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
6584 XOBNEWVEC.
6585
197400e8
TT
65862020-02-24 Tom Tromey <tom@tromey.com>
6587
6588 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
6589 New method.
6590 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
6591 (dw2_do_instantiate_symtab, dw2_get_file_names)
6592 (build_type_psymtab_dependencies, load_full_type_unit): Update.
6593
76935768
TT
65942020-02-24 Tom Tromey <tom@tromey.com>
6595
6596 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
6597 make_scoped_restore.
6598 (dwarf2_psymtab::read_symtab): Don't clear
6599 reading_partial_symbols.
6600
a88ef40d
TV
66012020-02-24 Tom de Vries <tdevries@suse.de>
6602
6603 PR gdb/25592
6604 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
6605
c9af6521
TV
66062020-02-24 Tom de Vries <tdevries@suse.de>
6607
6608 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
6609 commands layout next/prev/regs.
6610
5707a07a
TT
66112020-02-22 Tom Tromey <tom@tromey.com>
6612
6613 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
6614 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
6615
3b0fb49e
TT
66162020-02-22 Tom Tromey <tom@tromey.com>
6617
6618 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
6619
283be8bf
TT
66202020-02-22 Tom Tromey <tom@tromey.com>
6621
6622 * tui/tui-win.c (_initialize_tui_win): Add usage text.
6623 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
6624 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
6625 * tui/tui.c (_initialize_tui): Add usage text.
6626
ca793b96
TT
66272020-02-22 Tom Tromey <tom@tromey.com>
6628
6629 * tui/tui-win.c (tui_set_focus_command)
6630 (tui_set_win_height_command): Use error_no_arg.
6631 (_initialize_tui_win): Update help text.
6632 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
6633
432b5c40
TT
66342020-02-22 Tom Tromey <tom@tromey.com>
6635
6636 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
6637 * tui/tui-disasm.h (struct tui_disasm_window)
6638 <display_start_addr>: Declare.
6639 * tui/tui-source.h (struct tui_source_window)
6640 <display_start_addr>: Declare.
6641 * tui/tui-winsource.h (struct tui_source_window_base)
6642 <show_source_line, display_start_addr>: New methods.
6643 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
6644 Rename and move to protected section.
6645 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
6646 (tui_source_window_base::do_erase_source_content): Update.
6647 (tui_source_window_base::show_source_line): Now a method.
6648 (tui_source_window_base::show_source_content)
6649 (tui_source_window_base::tui_source_window_base)
6650 (tui_source_window_base::rerender)
6651 (tui_source_window_base::refill)
6652 (tui_source_window_base::do_scroll_horizontal)
6653 (tui_source_window_base::set_is_exec_point_at)
6654 (tui_source_window_base::update_breakpoint_info)
6655 (tui_source_window_base::update_exec_info): Update.
6656 * tui/tui-source.c (tui_source_window::set_contents)
6657 (tui_source_window::showing_source_p)
6658 (tui_source_window::do_scroll_vertical)
6659 (tui_source_window::location_matches_p)
6660 (tui_source_window::line_is_displayed): Update.
6661 (tui_source_window::display_start_addr): New method.
6662 * tui/tui-disasm.c (tui_disasm_window::set_contents)
6663 (tui_disasm_window::do_scroll_vertical)
6664 (tui_disasm_window::location_matches_p): Update.
6665 (tui_disasm_window::display_start_addr): New method.
6666
01b1af32
TT
66672020-02-22 Tom Tromey <tom@tromey.com>
6668
6669 * NEWS: Add entry for gdb.register_window_type.
6670 * tui/tui-layout.h (window_factory): New typedef.
6671 (tui_register_window): Declare.
6672 * tui/tui-layout.c (saved_tui_windows): New global.
6673 (tui_apply_current_layout): Use it.
6674 (tui_register_window): New function.
6675 * python/python.c (do_start_initialization): Call
6676 gdbpy_initialize_tui.
6677 (python_GdbMethods): Add "register_window_type" function.
6678 * python/python-internal.h (gdbpy_register_tui_window)
6679 (gdbpy_initialize_tui): Declare.
6680 * python/py-tui.c: New file.
6681 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
6682
fc96d20b
TT
66832020-02-22 Tom Tromey <tom@tromey.com>
6684
6685 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
6686
935c78c0
TT
66872020-02-22 Tom Tromey <tom@tromey.com>
6688
6689 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
6690 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
6691 * tui/tui-data.c (tui_set_win_with_focus): Remove.
6692 (tui_set_win_focus_to): Move from tui-win.c.
6693
0240c8f1
TT
66942020-02-22 Tom Tromey <tom@tromey.com>
6695
6696 * tui/tui-layout.c (make_standard_window, get_locator_window): New
6697 functions.
6698 (known_window_types): New global.
6699 (tui_get_window_by_name): Reimplement.
6700 (initialize_known_windows): New function.
6701 (validate_window_name): Rewrite.
6702 (_initialize_tui_layout): Call initialize_known_windows.
6703
fdb01f0c
TT
67042020-02-22 Tom Tromey <tom@tromey.com>
6705
6706 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
6707 Remove constants.
6708 * tui/tui-winsource.h (struct tui_source_window_base)
6709 <tui_source_window_base>: Remove parameter.
6710 * tui/tui-winsource.c
6711 (tui_source_window_base::tui_source_window_base): Remove
6712 parameter.
6713 (tui_source_window_base::refill): Update.
6714 * tui/tui-stack.h (struct tui_locator_window)
6715 <tui_locator_window>: Update.
6716 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
6717 Default the constructor.
6718 * tui/tui-regs.h (struct tui_data_item_window)
6719 <tui_data_item_window>: Default the constructor.
6720 (struct tui_data_window) <tui_data_window>: Likewise.
6721 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
6722 Default the constructor.
6723 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
6724 Default the constructor.
6725 <type>: Remove.
6726 (struct tui_win_info) <tui_win_info>: Default the constructor.
6727 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
6728 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
6729 Default the constructor.
6730
865a5aec
TT
67312020-02-22 Tom Tromey <tom@tromey.com>
6732
6733 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
6734 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
6735 * tui/tui-win.c (tui_resize_all): Don't call
6736 tui_delete_invisible_windows.
6737 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
6738 done.
6739 (tui_set_layout): Update.
6740 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
6741 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
6742 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
6743
e098d18c
TT
67442020-02-22 Tom Tromey <tom@tromey.com>
6745
6746 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
6747 correctly.
6748
eb9c8874
TT
67492020-02-22 Tom Tromey <tom@tromey.com>
6750
6751 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
6752
7eed1a8e
TT
67532020-02-22 Tom Tromey <tom@tromey.com>
6754
6755 * tui/tui-winsource.h (struct tui_source_window_iterator)
6756 <inner_iterator>: New etytypedef.
6757 <tui_source_window_iterator>: Take "end" parameter.
6758 <tui_source_window_iterator>: Take iterator.
6759 <operator*, advance>: Update.
6760 <m_iter>: Change type.
6761 <m_end>: New field.
6762 (struct tui_source_windows) <begin, end>: Update.
6763 * tui/tui-layout.c (tui_windows): New global.
6764 (tui_apply_current_layout): Clear tui_windows.
6765 (tui_layout_window::apply): Update tui_windows.
6766 * tui/tui-data.h (tui_windows): Declare.
6767 (all_tui_windows): Now inline function.
6768 (class tui_window_iterator, struct all_tui_windows): Remove.
6769
7c043ba6
TT
67702020-02-22 Tom Tromey <tom@tromey.com>
6771
6772 PR tui/17850:
6773 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
6774 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
6775 "height" argument.
6776 (class tui_layout_window) <get_sizes>: Likewise.
6777 (class tui_layout_split) <tui_layout_split>: Add "vertical"
6778 argument.
6779 <get_sizes>: Add "height" argument.
6780 <m_vertical>: New field.
6781 * tui/tui-layout.c (tui_layout_split::clone): Update.
6782 (tui_layout_split::get_sizes): Add "height" argument.
6783 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
6784 (tui_new_layout_command): Parse "-horizontal".
6785 (_initialize_tui_layout): Update help string.
6786 (tui_layout_split::specification): Add "-horizontal" when needed.
6787 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
6788 argument.
6789 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
6790 New methods.
6791
6bc56648
TT
67922020-02-22 Tom Tromey <tom@tromey.com>
6793
6794 * tui/tui-layout.h (enum tui_adjust_result): New.
6795 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
6796 (class tui_layout_window) <adjust_size>: Return
6797 tui_adjust_result. Rewrite.
6798 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
6799 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
6800
c22fef7e
TT
68012020-02-22 Tom Tromey <tom@tromey.com>
6802
6803 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
6804 parameter and return types.
6805 (class tui_layout_base) <specification>: Add "depth".
6806 (class tui_layout_window) <specification>: Add "depth".
6807 (class tui_layout_split) <specification>: Add "depth".
6808 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
6809 and return types.
6810 (tui_new_layout_command): Parse sub-layouts.
6811 (_initialize_tui_layout): Update help string.
6812 (tui_layout_window::specification): Add "depth".
6813 (add_layout_command): Update.
6814
ee325b61
TT
68152020-02-22 Tom Tromey <tom@tromey.com>
6816
6817 * NEWS: Add "tui new-layout" item.
6818 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
6819 Add new-layout command to help text.
6820 (validate_window_name): New function.
6821 (tui_new_layout_command): New function.
6822 (_initialize_tui_layout): Register "new-layout".
6823 (tui_layout_window::specification): New method.
6824 (tui_layout_window::specification): New method.
6825 * tui/tui-layout.h (class tui_layout_base) <specification>: New
6826 method.
6827 (class tui_layout_window) <specification>: New method.
6828 (class tui_layout_split) <specification>: New method.
6829
416eb92d
TT
68302020-02-22 Tom Tromey <tom@tromey.com>
6831
6832 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
6833 * tui/tui-win.c (window_name_completer): Update comment.
6834 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
6835 Declare method.
6836 (class tui_layout_window) <replace_window>: Likewise.
6837 (class tui_layout_split) <replace_window>: Likewise.
6838 (tui_set_layout): Don't declare.
6839 (tui_set_initial_layout): Declare function.
6840 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
6841 (asm_regs_layout): New globals.
6842 (tui_current_layout, show_layout): Remove.
6843 (tui_set_layout, tui_add_win_to_layout): Rewrite.
6844 (find_layout, tui_apply_layout): New function.
6845 (layout_completer): Remove.
6846 (tui_next_layout): Reimplement.
6847 (tui_next_layout_command): New function.
6848 (tui_set_initial_layout, tui_prev_layout_command): New functions.
6849 (tui_regs_layout): Reimplement.
6850 (tui_regs_layout_command): New function.
6851 (extract_display_start_addr): Rewrite.
6852 (next_layout, prev_layout): Remove.
6853 (tui_layout_window::replace_window): New method.
6854 (tui_layout_split::replace_window): New method.
6855 (destroy_layout): New function.
6856 (layout_list): New global.
6857 (add_layout_command): New function.
6858 (initialize_layouts): Update.
6859 (tui_layout_command): New function.
6860 (_initialize_tui_layout): Install "layout" commands.
6861 * tui/tui-data.h (enum tui_layout_type): Remove.
6862 (tui_current_layout): Don't declare.
6863
0dbc2fc7
TT
68642020-02-22 Tom Tromey <tom@tromey.com>
6865
6866 * tui/tui-regs.c (tui_reg_layout): Remove.
6867 (tui_reg_command): Use tui_regs_layout.
6868 * tui/tui-layout.h (tui_reg_command): Declare.
6869 * tui/tui-layout.c (tui_reg_command): New function.
6870
5afe342e
TT
68712020-02-22 Tom Tromey <tom@tromey.com>
6872
6873 * tui/tui.c (tui_rl_delete_other_windows): Call
6874 tui_remove_some_windows.
6875 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
6876 Declare method.
6877 (class tui_layout_window) <remove_windows>: New method.
6878 (class tui_layout_split) <remove_windows>: Declare.
6879 (tui_remove_some_windows): Declare.
6880 * tui/tui-layout.c (tui_remove_some_windows): New function.
6881 (tui_layout_split::remove_windows): New method.
6882
427326a8
TT
68832020-02-22 Tom Tromey <tom@tromey.com>
6884
6885 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
6886 * tui/tui-layout.h (tui_next_layout): Declare.
6887 * tui/tui-layout.c (tui_next_layout): New function.
6888
3fe12b6d
TT
68892020-02-22 Tom Tromey <tom@tromey.com>
6890
6891 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
6892 correct coordinates.
6893
59b8b5d2
TT
68942020-02-22 Tom Tromey <tom@tromey.com>
6895
6896 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
6897 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
6898 DATA_WIN case.
6899
2a3d458b
TT
69002020-02-22 Tom Tromey <tom@tromey.com>
6901
6902 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
6903 TUI_DISASM_WIN, not tui_win_list.
6904
3f0cbb04
TT
69052020-02-22 Tom Tromey <tom@tromey.com>
6906
6907 * valprint.c (generic_val_print_enum_1)
6908 (val_print_type_code_flags): Style member names.
6909 * rust-lang.c (val_print_struct, rust_print_enum)
6910 (rust_print_struct_def, rust_internal_print_type): Style member
6911 names.
6912 * p-valprint.c (pascal_object_print_value_fields): Style member
6913 names. Only call fprintf_symbol_filtered for static members.
6914 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
6915 * f-valprint.c (f_val_print): Style member names.
6916 * f-typeprint.c (f_type_print_base): Style member names.
6917 * cp-valprint.c (cp_print_value_fields): Style member names. Only
6918 call fprintf_symbol_filtered for static members.
6919 (cp_print_class_member): Style member names.
6920 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
6921 member names.
6922 * ada-valprint.c (ada_print_scalar): Style enum names.
6923 (ada_val_print_enum): Likewise.
6924 * ada-typeprint.c (print_enum_type): Style enum names.
6925
d4d947ae
TT
69262020-02-21 Tom Tromey <tom@tromey.com>
6927
6928 * psympriv.h (struct partial_symtab): Update comment.
6929
e94e944b
TT
69302020-02-21 Tom Tromey <tromey@adacore.com>
6931
6932 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
6933 type is CORE_ADDR.
6934
1eb73179
TV
69352020-02-21 Tom de Vries <tdevries@suse.de>
6936
6937 PR gdb/25534
6938 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
6939 if dependencies[i]->user != NULL.
6940
4f180d53
AT
69412020-02-21 Ali Tamur <tamur@google.com>
6942
6943 * dwarf2/read.c (dwarf2_name): Add null check.
6944
22b6cd70
TT
69452020-02-20 Tom Tromey <tom@tromey.com>
6946
6947 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
6948 ">=", in binary search.
6949 (dwarf2_find_containing_comp_unit): New overload.
6950 (run_test): New self-test.
6951 (_initialize_dwarf2_read): Register new test.
6952
bd0cf5a6
NC
69532020-02-20 Nelson Chu <nelson.chu@sifive.com>
6954
6955 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
6956 * riscv-tdep.h: Likewise.
6957 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
6958 rv32-only CSR.
6959 * features/riscv/64bit-csr.xml: Regenerated.
6960
3f702acd
SDJ
69612020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
6962 Tom Tromey <tom@tromey.com>
6963
6964 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
6965 of 'fputc_unfiltered'.
6966 (putchar_unfiltered): Call 'fputc_unfiltered'.
6967 (fputc_unfiltered): Call 'fputs_unfiltered'.
6968
d13c7322
AB
69692020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
6970
6971 * config.in: Regenerate.
6972 * configure: Regenerate.
6973 * configure.ac: Add --with-python-libdir option.
6974 * main.c: Use WITH_PYTHON_LIBDIR.
6975
869d8950
TT
69762020-02-19 Tom Tromey <tom@tromey.com>
6977
6978 * symtab.c (general_symbol_info::compute_and_set_names): Use
6979 obstack_strndup. Simplify call to symbol_set_demangled_name.
6980
298e9637
SM
69812020-02-19 Simon Marchi <simon.marchi@efficios.com>
6982
6983 * dwarf2/read.c (allocate_signatured_type_table,
6984 allocate_dwo_unit_table, allocate_type_unit_groups_table,
6985 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
6986 Remove objfile parameter, update all callers.
6987
08410482
DE
69882020-02-19 Doug Evans <dje@google.com>
6989
6990 PR rust/25535
6991 * rust-lang.c (rust_print_enum): Apply embedded_offset to
6992 rust_enum_variant calculation.
6993
dfdeeca1
TT
69942020-02-19 Tom Tromey <tromey@adacore.com>
6995
6996 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
6997
2ef5453b
TT
69982020-02-19 Tom Tromey <tromey@adacore.com>
6999
7000 * ada-lang.c (cache_symbol): Use obstack_strdup.
7001
9f1528a1
AB
70022020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7003
7004 * configure: Regenerate.
7005
d3c22fa8
TT
70062020-02-19 Tom Tromey <tromey@adacore.com>
7007
7008 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
7009 NULL check.
7010
bf84f706
MR
70112020-02-19 Maciej W. Rozycki <macro@wdc.com>
7012
7013 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
7014
d1c9b20f
AB
70152020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
7016
7017 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
7018 if GDBSERVER is not defined.
7019 (riscv_tdesc_cache): Likewise, also store const target_desc.
7020 (STATIC_IN_GDB): Define.
7021 (riscv_create_target_description): Update declaration with
7022 STATIC_IN_GDB.
7023 (riscv_lookup_target_description): New function, only define if
7024 GDBSERVER is not defined.
7025 * arch/riscv.h (riscv_create_target_description): Declare only
7026 when GDBSERVER is defined.
7027 (riscv_lookup_target_description): New declaration when GDBSERVER
7028 is not defined.
7029 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
7030 (riscv_linux_read_features): ...this, and return
7031 riscv_gdbarch_features instead of target_desc.
7032 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
7033 (riscv_linux_read_description): Rename to...
7034 (riscv_linux_read_features): ...this.
7035 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
7036 Update to use riscv_gdbarch_features and
7037 riscv_lookup_target_description.
7038 * riscv-tdep.c (riscv_find_default_target_description): Use
7039 riscv_lookup_target_description instead of
7040 riscv_create_target_description.
7041
373d7ac0
SM
70422020-02-18 Simon Marchi <simon.marchi@efficios.com>
7043
7044 * valprint.c (generic_val_print_enum_1): When printing a flag
7045 enum with value 0 and there is no enumerator with value 0, print
7046 just "0" instead of "(unknown: 0x0)".
7047
b29a2df0
SM
70482020-02-18 Simon Marchi <simon.marchi@efficios.com>
7049
7050 * valprint.c (generic_val_print_enum_1): Print unknown part of
7051 flag enum in hex.
7052
6740f0cc
SM
70532020-02-18 Simon Marchi <simon.marchi@efficios.com>
7054
7055 * dwarf2/read.c (update_enumeration_type_from_children): Allow
7056 flag enums to contain duplicate enumerators.
7057 * valprint.c (generic_val_print_enum_1): Update comment.
7058
edd45eb0
SM
70592020-02-18 Simon Marchi <simon.marchi@efficios.com>
7060
7061 * dwarf2/read.c: Include "count-one-bits.h".
7062 (update_enumeration_type_from_children): If an enumerator has
7063 multiple bits set, don't treat the enumeration as a "flag enum".
7064 * valprint.c (generic_val_print_enum_1): Assert that enumerators
7065 of flag enums have 0 or 1 bit set.
7066
6d0cf446
BE
70672020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
7068
7069 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
7070 conversion.
7071 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7072 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7073 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7074 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7075 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7076
7001c1b7
SM
70772020-02-18 Simon Marchi <simon.marchi@efficios.com>
7078
7079 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
7080
fdb61c6c
SM
70812020-02-14 Simon Marchi <simon.marchi@efficios.com>
7082
7083 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
7084 displaced_step_closure_up.
7085 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7086 (struct displaced_step_closure_up):
7087 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7088 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7089 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
7090 Likewise.
7091 * gdbarch.sh (displaced_step_copy_insn): Likewise.
7092 * gdbarch.c, gdbarch.h: Re-generate.
7093 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
7094 displaced_step_closure_up.
7095 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7096 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7097 * infrun.h (displaced_step_closure_up): New type alias.
7098 (struct displaced_step_inferior_state) <step_closure>: Change
7099 type to displaced_step_closure_up.
7100 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
7101 displaced_step_closure_up.
7102 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7103
a4a38eb4
TT
71042020-02-14 Tom Tromey <tom@tromey.com>
7105
7106 * minidebug.c (gnu_debug_key): New global.
7107 (find_separate_debug_file_in_section): Use it.
7108
e8217e61
SM
71092020-02-14 Simon Marchi <simon.marchi@efficios.com>
7110
7111 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
7112 std::unique_ptr.
7113 * gdbarch.c: Re-generate.
7114 * gdbarch.h: Re-generate.
7115 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
7116 change.
7117 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
7118 type to std::unique_ptr.
7119 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
7120 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
7121 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
7122 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
7123 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
7124 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
7125 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
7126 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
7127 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
7128
d8d83535
SM
71292020-02-14 Simon Marchi <simon.marchi@efficios.com>
7130
7131 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
7132 std::unique_ptr.
7133 (displaced_step_clear): Rename to...
7134 (displaced_step_reset): ... this. Just call displaced->reset ().
7135 (displaced_step_clear_cleanup): Rename to...
7136 (displaced_step_reset_cleanup): ... this.
7137 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
7138 (displaced_step_fixup): Likewise.
7139 (resume_1): Likewise.
7140 (handle_inferior_event): Restore child's memory before calling
7141 displaced_step_fixup on the parent.
7142 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
7143 to std::unique_ptr.
7144 <step_closure>: Change type to std::unique_ptr.
7145
5f661e03
SM
71462020-02-14 Simon Marchi <simon.marchi@efficios.com>
7147
7148 * arm-tdep.c: Include count-one-bits.h.
7149 (cleanup_block_store_pc): Use count_one_bits.
7150 (cleanup_block_load_pc): Use count_one_bits.
7151 (arm_copy_block_xfer): Use count_one_bits.
7152 (thumb2_copy_block_xfer): Use count_one_bits.
7153 (thumb_copy_pop_pc_16bit): Use count_one_bits.
7154 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
7155 (thumb_get_next_pcs_raw): Use count_one_bits.
7156 (arm_get_next_pcs_raw): Use count_one_bits_l.
7157 * arch/arm.c (bitcount): Remove.
7158 * arch/arm.h (bitcount): Remove.
7159
8084e579
TT
71602020-02-14 Tom Tromey <tromey@adacore.com>
7161
7162 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
7163 Update.
7164 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
7165 * dwarf2/loc.c (call_site_find_chain_1): Return
7166 unique_xmalloc_ptr.
7167 (call_site_find_chain): Likewise.
7168
258bf0ee
RB
71692020-02-14 Richard Biener <rguenther@suse.de>
7170
7171 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
7172 on expression with division operators.
7173
f98a8458
AKS
71742020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7175
7176 * MAINTAINERS (Write After Approval): Adding myself.
7177
d1437c0e
TT
71782020-02-12 Tom Tromey <tom@tromey.com>
7179
7180 * event-loop.c (event_data, gdb_event, event_handler_func):
7181 Remove.
7182
3d4560f7
TT
71832020-02-12 Tom Tromey <tom@tromey.com>
7184
7185 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
7186 (dwarf2_frame_objfile_data): Add comment.
7187 (find_comp_unit, set_comp_unit): New functions.
7188 (dwarf2_frame_find_fde): Use find_comp_unit.
7189 (dwarf2_build_frame_info): Use set_comp_unit.
7190
21982304
TT
71912020-02-12 Tom Tromey <tom@tromey.com>
7192
7193 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
7194 (comp_unit): Don't initialize objfile.
7195 (execute_cfa_program): Add text_offset parameter.
7196 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
7197 (dwarf2_frame_cache): Update.
7198 (dwarf2_build_frame_info): Don't set "objfile" member.
7199
4debb237
TT
72002020-02-12 Tom Tromey <tom@tromey.com>
7201
7202 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
7203 (decode_frame_entry): Likewise.
7204 (dwarf2_build_frame_info): Update.
7205
0d404d44
TT
72062020-02-12 Tom Tromey <tom@tromey.com>
7207
7208 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
7209 (decode_frame_entry_1): Use the comp_unit obstack.
7210
a7a3ae5c
TT
72112020-02-12 Tom Tromey <tom@tromey.com>
7212
7213 * dwarf2/frame.c (struct comp_unit): Add initializers and
7214 constructor.
7215 (dwarf2_frame_objfile_data): Store a comp_unit.
7216 (dwarf2_frame_find_fde): Update.
7217 (dwarf2_build_frame_info): Use "new".
7218
a9d65418
TT
72192020-02-12 Tom Tromey <tom@tromey.com>
7220
7221 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
7222 (dwarf2_fde_table): Typedef for std::vector.
7223 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
7224 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
7225 (decode_frame_entry): Update.
7226 (dwarf2_build_frame_info): Use "new".
7227
7559c217
CB
72282020-02-12 Christian Biesinger <cbiesinger@google.com>
7229
7230 * arm-tdep.c (arm_gdbarch_init): Update.
7231 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
7232 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
7233 have_neon, is_m>: Change to bool.
7234
aeefc73c
CB
72352020-02-12 Christian Biesinger <cbiesinger@google.com>
7236
7237 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
7238
d27b8e5f
TT
72392020-02-12 Tom Tromey <tom@tromey.com>
7240
7241 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
7242
cd5900f3
HD
72432020-02-12 Hannes Domani <ssbssa@yahoo.de>
7244
7245 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
7246 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
7247
f056b22b
TT
72482020-02-11 Tom Tromey <tom@tromey.com>
7249
7250 * psymtab.h: Update comment.
7251
f92ff6b5
TT
72522020-02-11 Tom Tromey <tom@tromey.com>
7253
7254 * gdb_obstack.h (struct auto_obstack): Use
7255 DISABLE_COPY_AND_ASSIGN.
7256
3fd6912b
TT
72572020-02-11 Tom Tromey <tom@tromey.com>
7258
7259 * dwarf2/frame.h (struct objfile): Don't forward declare.
7260
69ed9b74
CB
72612020-02-11 Christian Biesinger <cbiesinger@google.com>
7262
7263 * cris-tdep.c (cris_supply_gregset): Change signature to match
7264 what struct regset expects.
7265 (cris_regset): New struct.
7266 (fetch_core_registers): Remove.
7267 (cris_iterate_over_regset_sections): New function.
7268 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
7269 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
7270
bda874f6
CB
72712020-02-11 Christian Biesinger <cbiesinger@google.com>
7272
7273 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
7274 registers.
7275
754e1564
CB
72762020-02-11 Christian Biesinger <cbiesinger@google.com>
7277
7278 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
7279
8ddd8e0e
SM
72802020-02-11 Simon Marchi <simon.marchi@efficios.com>
7281
7282 * configure: Re-generate.
7283
898e7f60
SM
72842020-02-11 Simon Marchi <simon.marchi@efficios.com>
7285
7286 * configure: Re-generate.
7287
58df732b
SM
72882020-02-11 Simon Marchi <simon.marchi@efficios.com>
7289
7290 * acinclude: Update warning.m4 path.
7291 * warning.m4: Move to gdbsupport.
7292
da5bd37e
TT
72932020-02-11 Tom Tromey <tromey@adacore.com>
7294
7295 * remote.c (remote_console_output): Update.
7296 * printcmd.c (printf_command): Update.
7297 * event-loop.c (gdb_wait_for_event): Update.
7298 * linux-nat.c (sigchld_handler): Update.
7299 * remote-sim.c (gdb_os_write_stdout): Update.
7300 (gdb_os_flush_stdout): Update.
7301 (gdb_os_flush_stderr): Update.
7302 (gdb_os_write_stderr): Update.
7303 * exceptions.c (print_exception): Update.
7304 * remote-fileio.c (remote_fileio_func_read): Update.
7305 (remote_fileio_func_write): Update.
7306 * tui/tui.c (tui_enable): Update.
7307 * tui/tui-interp.c (tui_interp::init): Update.
7308 * utils.c (init_page_info): Update.
7309 (putchar_unfiltered, fputc_unfiltered): Update.
7310 (gdb_flush): Update.
7311 (emit_style_escape): Update.
7312 (flush_wrap_buffer, fputs_maybe_filtered): Update.
7313 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
7314 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
7315 (stderr_file::write): Update.
7316 (stderr_file::puts): Update.
7317 * ui-file.h (ui_file_isatty, ui_file_write)
7318 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
7319 (ui_file_puts): Don't declare.
7320
85f0dd3c
TV
73212020-02-10 Tom de Vries <tdevries@suse.de>
7322
7323 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
7324 sentinel to char *.
7325
2e927613
TV
73262020-02-09 Tom de Vries <tdevries@suse.de>
7327
7328 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
7329 filename if it matches "<artificial>".
7330
6bafc845
HD
73312020-02-09 Hannes Domani <ssbssa@yahoo.de>
7332
7333 * windows-tdep.c (struct enum_value_name): New struct.
7334 (create_enum): New function.
7335 (windows_get_siginfo_type): Create and use enum types.
7336
7928d571
HD
73372020-02-09 Hannes Domani <ssbssa@yahoo.de>
7338
7339 * NEWS: Mention $_siginfo support for Windows.
7340 * windows-nat.c (handle_exception): Set siginfo_er.
7341 (windows_nat_target::mourn_inferior): Reset siginfo_er.
7342 (windows_xfer_siginfo): New function.
7343 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
7344 * windows-tdep.c (struct windows_gdbarch_data): New struct.
7345 (init_windows_gdbarch_data): New function.
7346 (get_windows_gdbarch_data): New function.
7347 (windows_get_siginfo_type): New function.
7348 (windows_init_abi): Register windows_get_siginfo_type.
7349 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
7350
6751ebae
TT
73512020-02-08 Tom Tromey <tom@tromey.com>
7352
7353 * dwarf2/read.c (class cutu_reader) <cutu_reader,
7354 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
7355 <keep>: Declare method.
7356 <m_keep>: Remove member.
7357 <~cutu_reader>: Remove.
7358 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7359 (cutu_reader::cutu_reader): Update.
7360 (cutu_reader::keep): Rename from ~cutu_reader.
7361 (process_psymtab_comp_unit, build_type_psymtabs_1)
7362 (process_skeletonless_type_unit, load_partial_comp_unit)
7363 (load_full_comp_unit, dwarf2_read_addr_index)
7364 (read_signatured_type): Update.
7365
135f5437
TT
73662020-02-08 Tom Tromey <tom@tromey.com>
7367
7368 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
7369 "want_partial_unit" parameter.
7370 (process_psymtab_comp_unit): Change want_partial_unit to bool.
7371 Inline check for DW_TAG_partial_unit.
7372 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
7373
9f66ff1c
TT
73742020-02-08 Tom Tromey <tom@tromey.com>
7375
7376 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
7377 read.c.
7378 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
7379 read.c.
7380
c8a7a66f
TT
73812020-02-08 Tom Tromey <tom@tromey.com>
7382
7383 * dwarf2/read.c (read_address): Move to comp-unit.c.
7384 (dwarf2_rnglists_process, dwarf2_ranges_process)
7385 (read_attribute_value, dwarf_decode_lines_1)
7386 (var_decode_location, decode_locdesc): Update.
7387 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
7388 read.c. Remove "cu" parameter.
7389 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
7390 method.
7391
8266302d
TT
73922020-02-08 Tom Tromey <tom@tromey.com>
7393
7394 * dwarf2/read.c (read_attribute_value, read_indirect_string)
7395 (read_indirect_line_string): Update.
7396 * dwarf2/comp-unit.c (read_offset): Remove.
7397 (read_comp_unit_head): Update.
7398 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
7399 method.
7400 (read_offset): Don't declare.
7401
4057dfde
TT
74022020-02-08 Tom Tromey <tom@tromey.com>
7403
7404 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
7405 * dwarf2/read.c (struct comp_unit_head): Move to
7406 dwarf2/comp-unit.h.
7407 (enum class rcuh_kind): Move to comp-unit.h.
7408 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
7409 (read_comp_unit_head, error_check_comp_unit_head)
7410 (read_and_check_comp_unit_head): Move to comp-unit.c.
7411 (read_offset, dwarf_unit_type_name): Likewise.
7412 (create_debug_type_hash_table, read_cutu_die_from_dwo)
7413 (cutu_reader::cutu_reader, read_call_site_scope)
7414 (find_partial_die, follow_die_offset): Update.
7415 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
7416
24aa364d
TT
74172020-02-08 Tom Tromey <tom@tromey.com>
7418
7419 * dwarf2/read.c (read_offset_1): Move to leb.c.
7420 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
7421 (dwarf_decode_macro_bytes): Update.
7422 * dwarf2/leb.c (read_offset): Rename; move from read.c.
7423 * dwarf2/leb.h (read_offset): Declare.
7424
2c7d5afc
TT
74252020-02-08 Tom Tromey <tom@tromey.com>
7426
7427 * dwarf2/read.c (dwarf2_section_size): Remove.
7428 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
7429 Update.
7430 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
7431
4075cb26
TT
74322020-02-08 Tom Tromey <tom@tromey.com>
7433
7434 * dwarf2/read.c (read_initial_length): Move to leb.c.
7435 * dwarf2/leb.h (read_initial_length): Declare.
7436 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
7437 handle_nonstd parameter.
7438 * dwarf2/frame.c (read_initial_length): Remove.
7439 (decode_frame_entry_1): Update.
7440
09ba997f
TT
74412020-02-08 Tom Tromey <tom@tromey.com>
7442
7443 * dwarf2/loc.c (dwarf2_find_location_expression)
7444 (dwarf_evaluate_loc_desc::get_tls_address)
7445 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
7446 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
7447 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
7448 (dwarf2_compile_property_to_c)
7449 (dwarf2_loc_desc_get_symbol_read_needs)
7450 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
7451 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
7452 (loclist_describe_location, loclist_tracepoint_var_ref)
7453 (loclist_generate_c_location): Update.
7454 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
7455 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
7456 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
7457 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
7458 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
7459 (dwarf2_per_cu_data::addr_size)
7460 (dwarf2_per_cu_data::ref_addr_size)
7461 (dwarf2_per_cu_data::text_offset)
7462 (dwarf2_per_cu_data::addr_type): Now methods.
7463 (per_cu_header_read_in): Make per_cu "const".
7464 (dwarf2_version): Remove.
7465 (dwarf2_per_cu_data::int_type): Now a method.
7466 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
7467 (set_die_type, read_array_type, read_subrange_index_type)
7468 (read_tag_string_type, read_subrange_type): Update.
7469 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
7470 offset_size, ref_addr_size, text_offset, addr_type, version,
7471 objfile, int_type, addr_sized_int_type>: Declare methods.
7472
96c738c0
TT
74732020-02-08 Tom Tromey <tom@tromey.com>
7474
7475 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
7476 Move earlier.
7477
8fdd972c
TT
74782020-02-08 Tom Tromey <tom@tromey.com>
7479
7480 * dwarf2/read.h (dwarf_line_debug): Declare.
7481 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
7482 * dwarf2/read.c: Move line_header code to new files.
7483 (dwarf_line_debug): No longer static.
7484 * dwarf2/line-header.c: New file.
7485 * dwarf2/line-header.h: New file.
7486
03075812
TT
74872020-02-08 Tom Tromey <tom@tromey.com>
7488
7489 * dwarf2/read.c (struct line_header) <file_full_name,
7490 file_file_name>: Return unique_xmalloc_ptr.
7491 (line_header::file_file_name): Update.
7492 (line_header::file_full_name): Update.
7493 (dw2_get_file_names_reader): Update.
7494 (macro_start_file): Update.
7495
bb822404
TT
74962020-02-08 Tom Tromey <tom@tromey.com>
7497
7498 * dwarf2/read.c (struct line_header) <file_full_name,
7499 file_file_name>: Declare methods.
7500 (dw2_get_file_names_reader): Update.
7501 (file_file_name): Now a method.
7502 (file_full_name): Likewise.
7503 (macro_start_file): Update.
7504
009b64fc
TT
75052020-02-08 Tom Tromey <tom@tromey.com>
7506
7507 * dwarf2/read.c (dwarf_always_disassemble)
7508 (show_dwarf_always_disassemble): Move to loc.c.
7509 (_initialize_dwarf2_read): Move "always-disassemble" registration
7510 to loc.c.
7511 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
7512 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
7513 static.
7514 (show_dwarf_always_disassemble): Move from read.c.
7515 (_initialize_dwarf2loc): Move always-disassemble from read.c.
7516
5895093f
TT
75172020-02-08 Tom Tromey <tom@tromey.com>
7518
7519 * dwarf2/read.c (~dwarf2_per_objfile): Update.
7520 (create_quick_file_names_table): Return htab_up.
7521 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
7522 Update.
7523 * dwarf2/read.h (struct dwarf2_per_objfile)
7524 <quick_file_names_table>: Now htab_up.
7525
b3b32279
TT
75262020-02-08 Tom Tromey <tom@tromey.com>
7527
7528 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
7529
1d33d811
TT
75302020-02-08 Tom Tromey <tom@tromey.com>
7531
7532 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
7533 Rewrite.
7534 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
7535 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
7536 (abbrev_table::abbrev_table): No longer inline.
7537 (ABBREV_HASH_SIZE): Remove.
7538 (abbrev_table::m_abbrevs): Now an htab_up.
7539
86de1d91
TT
75402020-02-08 Tom Tromey <tom@tromey.com>
7541
7542 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
7543 (cutu_reader): Update.
7544 (build_type_psymtabs_1): Update.
7545 * dwarf2/abbrev.c (abbrev_table::read): Rename.
7546 (abbrev_table::alloc_abbrev): Update.
7547 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
7548 (abbrev_table::read): New static method, renamed from
7549 abbrev_table_read_table.
7550 (abbrev_table::alloc_abbrev)
7551 (abbrev_table::add_abbrev): Now private.
7552 (abbrev_table::abbrev_table): Now private.
7553 (abbrev_table::m_abbrev_obstack): Now private. Rename.
7554
0335378b
TT
75552020-02-08 Tom Tromey <tom@tromey.com>
7556
7557 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
7558 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
7559 htab_up.
7560
48b490f2
TT
75612020-02-08 Tom Tromey <tom@tromey.com>
7562
7563 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
7564 htab_up.
7565 (lookup_dwo_unit_in_dwp): Update.
7566 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
7567 on obstack.
7568
bc68fb19
TT
75692020-02-08 Tom Tromey <tom@tromey.com>
7570
7571 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
7572 obstack.
7573
d15acc42
TT
75742020-02-08 Tom Tromey <tom@tromey.com>
7575
7576 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
7577 line_header_hash.
7578 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
7579 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
7580 Change type to htab_up.
7581
eaa5fa8b
TT
75822020-02-08 Tom Tromey <tom@tromey.com>
7583
7584 * dwarf2/read.c (allocate_type_unit_groups_table): Return
7585 htab_up. Don't allocate on obstack.
7586 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
7587 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
7588 Change type to htab_up.
7589
b0b6a987
TT
75902020-02-08 Tom Tromey <tom@tromey.com>
7591
7592 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
7593 Change type to htab_up.
7594 * dwarf2/read.c (create_signatured_type_table_from_index)
7595 (create_signatured_type_table_from_debug_names)
7596 (create_all_type_units, add_type_unit)
7597 (lookup_dwo_signatured_type, lookup_signatured_type)
7598 (process_skeletonless_type_unit): Update.
7599 (create_debug_type_hash_table, create_debug_types_hash_table):
7600 Change type of types_htab.
7601 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
7602 htab_up. Don't allocate on obstack.
7603 (create_cus_hash_table): Change type of cus_htab parameter.
7604 (struct dwo_file) <cus, tus>: Now htab_up.
7605 (lookup_dwo_signatured_type, lookup_dwo_cutu)
7606 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
7607 (queue_and_load_all_dwo_tus): Update.
7608 * dwarf2/index-write.c (write_gdbindex): Update.
7609 (write_debug_names): Update.
7610
39856def
TT
76112020-02-08 Tom Tromey <tom@tromey.com>
7612
7613 * dwarf2/read.h (struct dwarf2_queue_item): Move from
7614 dwarf2/read.c. Remove "next" member. Add constructor ntad
7615 destructor.
7616 (struct dwarf2_per_objfile) <queue>: New member.
7617 * dwarf2/read.c (struct dwarf2_queue_item): Move to
7618 dwarf2/read.h.
7619 (dwarf2_queue, dwarf2_queue_tail): Remove.
7620 (class dwarf2_queue_guard): Add parameter to constructor. Use
7621 DISABLE_COPY_AND_ASSIGN.
7622 <m_per_objfile>: New member.
7623 <~dwarf2_queue_guard>: Rewrite.
7624 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
7625 Update.
7626 (~dwarf2_queue_item): New.
7627
3e225074
TT
76282020-02-08 Tom Tromey <tom@tromey.com>
7629
7630 * dwarf2/read.c (struct die_info) <has_children>: New member.
7631 (dw2_get_file_names_reader): Remove has_children.
7632 (dw2_get_file_names): Update.
7633 (read_cutu_die_from_dwo): Remove has_children.
7634 (cutu_reader::init_tu_and_read_dwo_dies)
7635 (cutu_reader::cutu_reader): Update.
7636 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
7637 Remove has_children.
7638 (build_type_psymtabs_1, process_skeletonless_type_unit)
7639 (load_partial_comp_unit, load_full_comp_unit): Update.
7640 (create_dwo_cu_reader): Remove has_children.
7641 (create_cus_hash_table, read_die_and_children): Update.
7642 (read_full_die_1,read_full_die): Remove has_children.
7643 (read_signatured_type): Update.
7644 (class cutu_reader) <has_children>: Remove.
7645
82ca8957
TT
76462020-02-08 Tom Tromey <tom@tromey.com>
7647
7648 * dwarf2/expr.c: Rename from dwarf2expr.c.
7649 * dwarf2/expr.h: Rename from dwarf2expr.h.
7650 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
7651 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
7652 * dwarf2/frame.c: Rename from dwarf2-frame.c.
7653 * dwarf2/frame.h: Rename from dwarf2-frame.h.
7654 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
7655 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
7656 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
7657 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
7658 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
7659 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
7660 * dwarf2/loc.c: Rename from dwarf2loc.c.
7661 * dwarf2/loc.h: Rename from dwarf2loc.h.
7662 * dwarf2/read.c: Rename from dwarf2read.c.
7663 * dwarf2/read.h: Rename from dwarf2read.h.
7664 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
7665 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
7666 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
7667 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
7668 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
7669 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
7670 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
7671 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
7672 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
7673 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
7674 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
7675 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
7676 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
7677 Update.
7678 * Makefile.in (COMMON_SFILES): Update.
7679 (HFILES_NO_SRCDIR): Update.
7680
9e35d499
TT
76812020-02-08 Tom Tromey <tom@tromey.com>
7682
7683 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
7684 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
7685
1eba2311
TT
76862020-02-08 Tom Tromey <tom@tromey.com>
7687
7688 * dwarf2read.h (struct die_info): Don't declare.
7689
e41c2da2
TT
76902020-02-08 Tom Tromey <tom@tromey.com>
7691
7692 * dwarf2read.h (die_info_ptr): Remove typedef.
7693
4fc6c0d5
TT
76942020-02-08 Tom Tromey <tom@tromey.com>
7695
7696 * dwarf2read.c (read_call_site_scope)
7697 (handle_data_member_location, dwarf2_add_member_fn)
7698 (mark_common_block_symbol_computed, read_common_block)
7699 (attr_to_dynamic_prop, partial_die_info::read)
7700 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
7701 (dwarf2_symbol_mark_computed, set_die_type): Update.
7702 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
7703 method.
7704 (attr_form_is_block): Don't declare.
7705 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
7706
cd6c91b4
TT
77072020-02-08 Tom Tromey <tom@tromey.com>
7708
7709 * dwarf2read.c (dwarf2_find_base_address, )
7710 (read_call_site_scope, rust_containing_type)
7711 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
7712 (handle_data_member_location, dwarf2_add_member_fn)
7713 (get_alignment, read_structure_type, process_structure_scope)
7714 (mark_common_block_symbol_computed, read_common_block)
7715 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
7716 (partial_die_info::read, read_attribute_value, new_symbol)
7717 (lookup_die_type, dwarf2_get_ref_die_offset)
7718 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
7719 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
7720 (dwarf2_symbol_mark_computed): Update.
7721 * dwarf2/attribute.h (struct attribute) <value_as_address,
7722 form_is_section_offset, form_is_constant, form_is_ref>: Declare
7723 methods.
7724 (value_as_address, attr_form_is_section_offset)
7725 (attr_form_is_constant, attr_form_is_ref): Don't declare.
7726 * dwarf2/attribute.c (attribute::value_as_address)
7727 (attribute::form_is_section_offset, attribute::form_is_constant)
7728 (attribute::form_is_ref): Now methods.
7729
162dce55
TT
77302020-02-08 Tom Tromey <tom@tromey.com>
7731
7732 * dwarf2read.c (struct attribute, DW_STRING)
7733 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
7734 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
7735 (attr_form_is_block, attr_form_is_section_offset)
7736 (attr_form_is_constant, attr_form_is_ref): Move.
7737 * dwarf2/attribute.h: New file.
7738 * dwarf2/attribute.c: New file, from dwarf2read.c.
7739 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
7740
3054dd54
TT
77412020-02-08 Tom Tromey <tom@tromey.com>
7742
7743 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
7744 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
7745 Move.
7746 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
7747 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
7748 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
7749 abbrev.c.
7750 * dwarf2/abbrev.h: New file.
7751 * dwarf2/abbrev.c: New file, from dwarf2read.c.
7752 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
7753
96b79293
TT
77542020-02-08 Tom Tromey <tom@tromey.com>
7755
7756 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
7757 (dwarf2_section_size, dwarf2_get_section_info)
7758 (create_signatured_type_table_from_debug_names)
7759 (create_addrmap_from_aranges, read_debug_names_from_section)
7760 (get_gdb_index_contents_from_section, read_comp_unit_head)
7761 (error_check_comp_unit_head, read_abbrev_offset)
7762 (create_debug_type_hash_table, init_cu_die_reader)
7763 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
7764 (read_comp_units_from_section, create_cus_hash_table)
7765 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
7766 (create_dwp_v2_section, dwarf2_rnglists_process)
7767 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
7768 (abbrev_table_read_table, read_indirect_string_at_offset_from)
7769 (read_indirect_string_from_dwz, read_addr_index_1)
7770 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
7771 (dwarf_decode_macro_bytes, dwarf_decode_macros)
7772 (fill_in_loclist_baton): Update.
7773 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
7774 get_containing_section, get_bfd_owner, get_bfd_section,
7775 get_file_name, get_id, get_flags, empty, read>: Declare methods.
7776 (dwarf2_read_section, get_section_name, get_section_file_name)
7777 (get_containing_section, get_section_bfd_owner)
7778 (get_section_bfd_section, get_section_name, get_section_file_name)
7779 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
7780 declare.
7781 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
7782 (dwarf2_section_info::get_bfd_owner)
7783 (dwarf2_section_info::get_bfd_section)
7784 (dwarf2_section_info::get_name)
7785 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
7786 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
7787 (dwarf2_section_info::read): Now methods.
7788 * dwarf-index-write.c (class debug_names): Update.
7789
2c86cff9
TT
77902020-02-08 Tom Tromey <tom@tromey.com>
7791
7792 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
7793 Move to dwarf2/section.h.
7794 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
7795 (get_section_bfd_section, get_section_name)
7796 (get_section_file_name, get_section_id, get_section_flags)
7797 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
7798 dwarf2/section.c.
7799 * dwarf2/section.h: New file.
7800 * dwarf2/section.c: New file, from dwarf2read.c.
7801 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
7802
f4382c45
TT
78032020-02-08 Tom Tromey <tom@tromey.com>
7804
7805 * dwarf2read.h (read_unsigned_leb128): Don't declare.
7806 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
7807 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
7808 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
7809 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
7810 * dwarf2/leb.h: New file, from dwarf2read.c.
7811 * dwarf2/leb.c: New file, from dwarf2read.c.
7812 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
7813 Remove.
7814 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
7815 (COMMON_SFILES): Add dwarf2/leb.c.
7816
01840b7a
JB
78172020-02-08 Joel Brobecker <brobecker@adacore.com>
7818
7819 GDB 9.1 released.
7820
dfcb27e4
IB
78212020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
7822
7823 PR gdb/25190:
aac66a4c
SM
7824 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
7825 * gdb/remote.c (remote_console_output): Update.
7826 * gdb/ui-file.c (fputs_unfiltered): Rename to...
7827 (ui_file_puts): ...this.
7828 * gdb/ui-file.h (ui_file_puts): Add declaration.
7829 * gdb/utils.c (emit_style_escape): Update.
7830 (flush_wrap_buffer): Update.
7831 (fputs_maybe_filtered): Update.
7832 (fputs_unfiltered): Add function.
dfcb27e4 7833
faa17681
IB
78342020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
7835
aac66a4c
SM
7836 * gdb/event-loop.c (gdb_wait_for_event): Update.
7837 * gdb/printcmd.c (printf_command): Update.
7838 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
7839 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
7840 (gdb_os_flush_stderr): Update.
7841 * gdb/remote.c (remote_console_output): Update.
7842 * gdb/ui-file.c (gdb_flush): Rename to...
7843 (ui_file_flush): ...this.
7844 (stderr_file::write): Update.
7845 (stderr_file::puts): Update.
7846 * gdb/ui-file.h (gdb_flush): Rename to...
7847 (ui_file_flush): ...this.
7848 * gdb/utils.c (gdb_flush): Add function.
7849 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 7850
5abbbe1d
TT
78512020-02-07 Tom Tromey <tromey@adacore.com>
7852
7853 PR breakpoints/24915:
7854 * source.c (find_and_open_source): Do not check basenames_may_differ.
7855
919adfe8
TT
78562020-02-07 Tom Tromey <tom@tromey.com>
7857
7858 * README: Update gdbserver documentation.
7859 * gdbserver: Move to top level.
7860 * configure.tgt (build_gdbserver): Remove.
7861 * configure.ac: Remove --enable-gdbserver.
7862 * configure: Rebuild.
7863 * Makefile.in (distclean): Don't mention gdbserver.
7864
1d5d29e7
SV
78652020-02-06 Shahab Vahedi <shahab@synopsys.com>
7866
7867 * source-cache.c (source_cache::ensure): Surround
7868 get_plain_source_lines with a try/catch.
7869 (source_cache::get_line_charpos): Get rid of try/catch
7870 and only check for the return value of "ensure".
7871 * tui/tui-source.c (tui_source_window::set_contents):
7872 Simplify "nlines" calculation.
7873
6eb1129c
SV
78742020-02-06 Shahab Vahedi <shahab@synopsys.com>
7875
7876 * MAINTAINERS (Write After Approval): Add myself.
7877
c6a42d11
CB
78782020-02-05 Christian Biesinger <cbiesinger@google.com>
7879
7880 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
7881 function call.
7882
c8ecdda6
CB
78832020-02-05 Christian Biesinger <cbiesinger@google.com>
7884
7885 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
7886
f6480e70
MR
78872020-02-05 Maciej W. Rozycki <macro@wdc.com>
7888
7889 * nat/riscv-linux-tdesc.h: New file.
7890 * nat/riscv-linux-tdesc.c: New file, taking code from...
7891 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
7892 ... here.
7893 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
7894 NATDEPFILES.
7895
dcc9fbc6
AB
78962020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
7897
7898 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
7899 we don't set the fake simulator ptid to the null_ptid.
7900
719546c4
SM
79012020-02-03 Simon Marchi <simon.marchi@efficios.com>
7902
7903 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
7904 * gdbthread.h (class thread_info) <resumed>: Likewise.
7905 * infrun.c (resume_1): Likewise.
7906 (proceed): Likewise.
7907 (infrun_thread_stop_requested): Likewise.
7908 (stop_all_threads): Likewise.
7909 (handle_inferior_event): Likewise.
7910 (restart_threads): Likewise.
7911 (finish_step_over): Likewise.
7912 (keep_going_stepped_thread): Likewise.
7913 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
7914 (linux_handle_extended_wait): Likewise.
7915 * record-btrace.c (get_thread_current_frame_id): Likewise.
7916 * record-full.c (record_full_wait_1): Likewise.
7917 * remote.c (remote_target::process_initial_stop_replies): Likewise.
7918 * target.c (target_resume): Likewise.
7919 * thread.c (set_running_thread): Likewise.
7920
e409c542
AKS
79212020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7922
7923 * f-valprint.c (f77_print_array_1): Changed datatype of index
7924 variable to LONGEST from int to enable it to contain bound
7925 values correctly.
7926
ee98c0da
MR
79272020-02-03 Maciej W. Rozycki <macro@wdc.com>
7928
7929 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
7930 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
7931 offsets according to FLEN determined.
7932 (riscv_linux_nat_target::read_description): Determine FLEN
7933 dynamically.
7934 (riscv_linux_nat_target::fetch_registers): Size regset buffer
7935 according to FLEN determined.
7936 (riscv_linux_nat_target::store_registers): Likewise.
7937
aa66aac4
SV
79382020-02-01 Shahab Vahedi <shahab@synopsys.com>
7939
7940 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7941 when reg->group is empty and reggroup is not.
7942
fd9faca8
TT
79432020-01-31 Tom Tromey <tromey@adacore.com>
7944
7945 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
7946 Call beneath target's mourn_inferior after unpushing.
7947
42330a68
AB
79482020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
7949
7950 PR tui/9765
7951 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
7952 have enough lines to fill the screen, still return the lowest
7953 address we found.
7954
7a27a45b
AB
79552020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
7956
7957 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
7958 '-', '<', and '>' commands.
7959
c47f70e2
PA
79602020-01-29 Pedro Alves <palves@redhat.com>
7961 Sergio Durigan Junior <sergiodj@redhat.com>
7962
7963 * infcmd.c (construct_inferior_arguments): Assert that
7964 'argc' is greater than 0.
7965
5133a315
LM
79662020-01-29 Luis Machado <luis.machado@linaro.org>
7967
7968 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
7969 (BRK_INSN_MASK): Define to 0xd4200000.
7970 (aarch64_program_breakpoint_here_p): New function.
7971 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
7972 * arch-utils.c (default_program_breakpoint_here_p): Moved from
7973 breakpoint.c.
7974 * arch-utils.h (default_program_breakpoint_here_p): Moved from
7975 breakpoint.h
7976 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
7977 call gdbarch_program_breakpoint_here_p.
7978 (program_breakpoint_here): Moved to arch-utils.c, renamed to
7979 default_program_breakpoint_here_p, changed return type to bool and
7980 simplified.
7981 * breakpoint.h (program_breakpoint_here): Moved prototype to
7982 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
7983 return type to bool.
7984 * gdbarch.c: Regenerate.
7985 * gdbarch.h: Regenerate.
7986 * gdbarch.sh (program_breakpoint_here_p): New method.
7987 * infrun.c (handle_signal_stop): Call
7988 gdbarch_program_breakpoint_here_p.
7989
168f8c6b
TT
79902020-01-26 Tom Tromey <tom@tromey.com>
7991
7992 * ctfread.c (struct ctf_fp_info): Reindent.
7993 (_initialize_ctfread): Remove.
7994
128a391f
TT
79952020-01-26 Tom Tromey <tom@tromey.com>
7996
7997 * psymtab.c (partial_map_expand_apply)
7998 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
7999 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
8000 (psym_print_stats, psym_expand_symtabs_for_function)
8001 (psym_map_symbol_filenames, psym_map_matching_symbols)
8002 (psym_expand_symtabs_matching)
8003 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
8004 (maintenance_check_psymtabs): Use new methods.
8005 * psympriv.h (struct partial_symtab) <readin_p,
8006 get_compunit_symtab>: New methods.
8007 <readin, compunit_symtab>: Remove members.
8008 (struct standard_psymtab): New.
8009 (struct legacy_psymtab): Derive from standard_psymtab.
8010 * dwarf2read.h (struct dwarf2_psymtab): Derive from
8011 standard_psymtab.
8012 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
8013
0494dbec
TT
80142020-01-26 Tom Tromey <tom@tromey.com>
8015
8016 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
8017 read_dependencies. Add assert.
8018 * psymtab.c (partial_symtab::read_dependencies): New method.
8019 * psympriv.h (struct partial_symtab) <read_dependencies>: New
8020 method.
8021 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
8022 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
8023 read_dependencies.
8024 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
8025 Add assert.
8026
8566b89b
TT
80272020-01-26 Tom Tromey <tom@tromey.com>
8028
8029 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
8030 Call expand_psymtab.
8031 (xcoff_read_symtab): Call expand_psymtab.
8032 (xcoff_start_psymtab, xcoff_end_psymtab): Set
8033 legacy_expand_psymtab.
8034 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
8035 method.
8036 (struct legacy_psymtab) <expand_psymtab>: Implement.
8037 <legacy_expand_psymtab>: New member.
8038 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
8039 (parse_partial_symbols): Set legacy_expand_psymtab.
8040 (psymtab_to_symtab_1): Change argument order. Call
8041 expand_psymtab.
8042 (new_psymtab): Set legacy_expand_psymtab.
8043 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
8044 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
8045 expand_psymtab.
8046 (dwarf2_psymtab::expand_psymtab): Rename from
8047 psymtab_to_symtab_1. Call expand_psymtab.
8048 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
8049 (dbx_end_psymtab): Likewise.
8050 (dbx_psymtab_to_symtab_1): Change argument order. Call
8051 expand_psymtab.
8052 (dbx_read_symtab): Call expand_psymtab.
8053 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
8054 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
8055 (ctf_psymtab::read_symtab): Call expand_psymtab.
8056
077cbab2
TT
80572020-01-26 Tom Tromey <tom@tromey.com>
8058
8059 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
8060 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
8061 messages.
8062 * mdebugread.c (mdebug_read_symtab): Remove prints.
8063 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
8064 assert.
8065 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
8066
891813be
TT
80672020-01-26 Tom Tromey <tom@tromey.com>
8068
8069 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
8070 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
8071 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
8072 legacy_symtab.
8073 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
8074 * psymtab.c (psymtab_to_symtab): Call method.
8075 (dump_psymtab): Update.
8076 * psympriv.h (struct partial_symtab): Add virtual destructor.
8077 <read_symtab>: New method.
8078 (struct legacy_symtab): New.
8079 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
8080 (struct pst_map) <pst>: Now a legacy_psymtab.
8081 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
8082 (new_psymtab): Use legacy_psymtab.
8083 * dwarf2read.h (struct dwarf2_psymtab): New.
8084 (struct dwarf2_per_cu_data) <psymtab>: Use it.
8085 * dwarf2read.c (dwarf2_create_include_psymtab)
8086 (dwarf2_build_include_psymtabs, create_type_unit_group)
8087 (create_partial_symtab, process_psymtab_comp_unit_reader)
8088 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
8089 (set_partial_user): Use dwarf2_psymtab.
8090 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
8091 (psymtab_to_symtab_1, process_full_comp_unit)
8092 (process_full_type_unit, dwarf2_ranges_read)
8093 (dwarf2_get_pc_bounds, psymtab_include_file_name)
8094 (dwarf_decode_lines): Use dwarf2_psymtab.
8095 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
8096 (add_address_entry_worker, write_one_signatured_type)
8097 (recursively_count_psymbols, recursively_write_psymbols)
8098 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
8099 (write_debug_names): Likewise.
8100 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
8101 <pst>: Now a legacy_psymtab.
8102 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
8103 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
8104 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
8105 * ctfread.c (struct ctf_psymtab): New.
8106 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
8107 ctf_psymtab.
8108 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
8109 (create_partial_symtab): Return a ctf_psymtab.
8110 (scan_partial_symbols): Update.
8111
c3693a1d
TT
81122020-01-26 Tom Tromey <tom@tromey.com>
8113
8114 * xcoffread.c (xcoff_start_psymtab): Use new.
8115 * psymtab.c (partial_symtab::partial_symtab): New constructor,
8116 renamed from start_psymtab_common.
8117 * psympriv.h (struct partial_symtab): Add new constructor.
8118 (start_psymtab_common): Don't declare.
8119 * mdebugread.c (parse_partial_symbols): Use new.
8120 * dwarf2read.c (create_partial_symtab): Use new.
8121 * dbxread.c (start_psymtab): Use new.
8122 * ctfread.c (create_partial_symtab): Use new.
8123
32caafd0
TT
81242020-01-26 Tom Tromey <tom@tromey.com>
8125
8126 * xcoffread.c (xcoff_end_psymtab): Use new.
8127 * psymtab.c (start_psymtab_common): Use new.
8128 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
8129 Update.
8130 * psympriv.h (struct partial_symtab): Add parameters to
8131 constructor. Don't inline.
8132 (allocate_psymtab): Don't declare.
8133 * mdebugread.c (new_psymtab): Use new.
8134 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
8135 * dbxread.c (dbx_end_psymtab): Use new.
8136
abaa2f23
TT
81372020-01-26 Tom Tromey <tom@tromey.com>
8138
8139 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
8140 allocate_psymtab. Update documentation.
8141 * psymtab.c (psymtab_storage::install_psymtab): Rename from
8142 allocate_psymtab. Do not use new.
8143 (allocate_psymtab): Use new. Update.
8144
6d94535f
TT
81452020-01-26 Tom Tromey <tom@tromey.com>
8146
8147 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8148 * psymtab.c (psym_print_stats): Update.
8149 * psympriv.h (struct partial_symtab) <readin,
8150 psymtabs_addrmap_supported, anonymous>: Now bool.
8151 * mdebugread.c (psymtab_to_symtab_1): Update.
8152 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
8153 (build_type_psymtabs_reader, psymtab_to_symtab_1)
8154 (process_full_comp_unit, process_full_type_unit): Update.
8155 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8156 * ctfread.c (psymtab_to_symtab): Update.
8157
6f17252b
TT
81582020-01-26 Tom Tromey <tom@tromey.com>
8159
8160 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
8161 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
8162 * psymtab.c (psymtab_storage): Delete psymtabs.
8163 (psymtab_storage::allocate_psymtab): Use new.
8164 (psymtab_storage::discard_psymtab): Use delete.
8165 * psympriv.h (struct partial_symtab): Add constructor and
8166 initializers.
8167
f6f1cebc
TT
81682020-01-26 Tom Tromey <tom@tromey.com>
8169
8170 * machoread.c: Do not include psympriv.h.
8171
e47e48f6
PW
81722020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8173
8174 * NEWS: Mention the new option and the set/show commands.
8175
a2fedca9
PW
81762020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8177
8178 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
8179 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
8180 (validate_exec_file): New variables, enums, functions.
8181 (exec_file_locate_attach, print_section_info): Style the filenames.
8182 (_initialize_exec): Install show_exec_file_mismatch_command and
8183 set_exec_file_mismatch_command.
8184 * gdbcore.h (validate_exec_file): Declare.
8185 * infcmd.c (attach_command): Call validate_exec_file.
8186 * remote.c ( remote_target::remote_add_inferior): Likewise.
8187
7ffa82e1
AB
81882020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8189
8190 * frame.c (find_frame_sal): Move call to get_next_frame into more
8191 inner scope.
8192 * inline-frame.c (inilne_state) <inline_state>: Update argument
8193 types.
8194 (inilne_state) <skipped_symbol>: Rename to...
8195 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
8196 (skip_inline_frames): Build vector of skipped symbols and use this
8197 to reate the inline_state.
8198 (inline_skipped_symbol): Add a comment and some assertions, fetch
8199 skipped symbol from the list.
8200
3d92a3e3
AB
82012020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8202
8203 * buildsym.c (lte_is_less_than): Delete.
8204 (buildsym_compunit::end_symtab_with_blockvector): Create local
8205 lambda function to sort line table entries, and use
8206 std::stable_sort instead of std::sort.
8207 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
8208 markers when looking for a previous line.
8209
94a72be7
AB
82102020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8211
8212 * dwarf2read.c (lnp_state_machine::record_line): Include
8213 end_sequence parameter in debug print out. Record the line if we
8214 are at an end_sequence marker even if it's not the start of a
8215 statement.
8216 * symmisc.c (maintenance_print_one_line_table): Print end of
8217 sequence markers with 'END' not '0'.
8218
53af73bf
PA
82192020-01-24 Pedro Alves <palves@redhat.com>
8220
8221 PR gdb/25410
8222 * thread.c (scoped_restore_current_thread::restore): Use
8223 switch_to_inferior_no_thread.
8224 * exec.c: Include "progspace-and-thread.h".
8225 (add_target_sections, remove_target_sections):
8226 scoped_restore_current_pspace_and_thread instead of
8227 scoped_restore_current_thread.
8228 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
8229 and aspace to the inferior before calling clone_program_space.
8230 Remove stale comment.
8231
3050c6f4
CB
82322020-01-24 Christian Biesinger <cbiesinger@google.com>
8233
8234 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
8235 (arm_netbsd_nat_target::fetch_registers): ...this.
8236 (arm_nbsd_nat_target::store_registers): Rename to...
8237 (arm_netbsd_nat_target::store_registers): ...this.
8238
73685c7e
CB
82392020-01-24 Christian Biesinger <cbiesinger@google.com>
8240
8241 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8242 register_t.
8243
89203d40
CB
82442020-01-24 Christian Biesinger <cbiesinger@google.com>
8245
8246 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
8247 Update comment.
8248 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
8249 Likewise.
8250 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
8251 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
8252 the correct replacement (iterate_over_regset_sections).
8253 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
8254 Update comment.
8255
1ba1ac88
AB
82562020-01-24 Graham Markall <graham.markall@embecosm.com>
8257
8258 PR gdb/23718
8259 * gdb/python/python.c (execute_gdb_command): Call
8260 async_enable_stdin in catch block.
8261
f3364a6d
AB
82622020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8263
8264 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
8265 SWITCH_THRU_ALL_UIS.
8266
733d0a67
AB
82672020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8268
8269 PR tui/9765
8270 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
8271 comment, add extra parameter, and update to store previous symbol
8272 when appropriate.
8273 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
8274 add extra parameter.
8275 * tui/tui-disasm.c (tui_disassemble): Update header comment,
8276 remove unneeded parameter, add try/catch around gdb_print_insn,
8277 rewrite to add items to asm_lines vector.
8278 (tui_find_backward_disassembly_start_address): New function.
8279 (tui_find_disassembly_address): Updated throughout.
8280 (tui_disasm_window::set_contents): Update for changes to
8281 tui_disassemble.
8282 (tui_disasm_window::do_scroll_vertical): No need to adjust the
8283 number of lines to scroll.
8284
b3b3bada
SM
82852020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
8286
8287 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
8288 (SECT_OFF_DATA): Likewise.
8289 (SECT_OFF_RODATA): Likewise.
8290 (SECT_OFF_TEXT): Likewise.
8291 (SECT_OFF_BSS): Likewise.
8292 (struct objfile) <text_section_offset, data_section_offset>: New
8293 methods.
8294 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
8295 objfile::text_section_offset.
8296 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
8297 * coffread.c (coff_symtab_read): Likewise.
8298 (enter_linenos): Likewise.
8299 (process_coff_symbol): Likewise.
8300 * ctfread.c (get_objfile_text_range): Likewise.
8301 * dtrace-probe.c (dtrace_probe::get_relocated_address):
8302 Use objfile::data_section_offset.
8303 * dwarf2-frame.c (execute_cfa_program): Use
8304 objfile::text_section_offset.
8305 (dwarf2_frame_find_fde): Likewise.
8306 * dwarf2read.c (create_addrmap_from_index): Likewise.
8307 (create_addrmap_from_aranges): Likewise.
8308 (dw2_find_pc_sect_compunit_symtab): Likewise.
8309 (process_psymtab_comp_unit_reader): Likewise.
8310 (add_partial_symbol): Likewise.
8311 (add_partial_subprogram): Likewise.
8312 (process_full_comp_unit): Likewise.
8313 (read_file_scope): Likewise.
8314 (read_func_scope): Likewise.
8315 (read_lexical_block_scope): Likewise.
8316 (read_call_site_scope): Likewise.
8317 (dwarf2_rnglists_process): Likewise.
8318 (dwarf2_ranges_process): Likewise.
8319 (dwarf2_ranges_read): Likewise.
8320 (dwarf_decode_lines_1): Likewise.
8321 (new_symbol): Likewise.
8322 (dwarf2_fetch_die_loc_sect_off): Likewise.
8323 (dwarf2_per_cu_text_offset): Likewise.
8324 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
8325 * hppa-tdep.c (read_unwind_info): Likewise.
8326 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
8327 * psympriv.h (struct partial_symtab): Likewise.
8328 * psymtab.c (find_pc_sect_psymtab): Likewise.
8329 * solib-svr4.c (enable_break): Likewise.
8330 * stap-probe.c (relocate_address): Use
8331 objfile::data_section_offset.
8332 * xcoffread.c (enter_line_range): Use
8333 objfile::text_section_offset.
8334 (read_xcoff_symtab): Likewise.
8335
ab53f382
SM
83362020-01-23 Simon Marchi <simon.marchi@efficios.com>
8337
8338 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
8339 declaration to narrower scopes.
8340
e7eee665
SM
83412020-01-23 Simon Marchi <simon.marchi@efficios.com>
8342
8343 * darwin-nat.h (struct darwin_exception_msg, enum
8344 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
8345 Move up.
8346 (class darwin_nat_target) <wait_1, check_new_threads,
8347 decode_exception_message, decode_message, stop_inferior,
8348 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
8349 * darwin-nat.c (darwin_check_new_threads): Rename to...
8350 (darwin_nat_target::check_new_threads): ... this.
8351 (darwin_suspend_inferior_it): Remove.
8352 (darwin_decode_exception_message): Rename to...
8353 (darwin_nat_target::decode_exception_message): ... this.
8354 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
8355 (darwin_decode_message): Rename to...
8356 (darwin_nat_target::decode_message): ... this.
8357 (cancel_breakpoint): Rename to...
8358 (darwin_nat_target::cancel_breakpoint): ... this.
8359 (darwin_wait): Rename to...
8360 (darwin_nat_target::wait_1): ... this. Use range-based for loop
8361 instead of iterate_over_inferiors.
8362 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
8363 (darwin_stop_inferior): Rename to...
8364 (darwin_nat_target::stop_inferior): ... this.
8365 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
8366 (darwin_init_thread_list): Rename to...
8367 (darwin_nat_target::init_thread_list): ... this.
8368 (darwin_ptrace_him): Rename to...
8369 (darwin_nat_target::ptrace_him): ... this.
8370 (darwin_nat_target::create_inferior): Pass lambda function to
8371 fork_inferior.
8372 (darwin_nat_target::detach): Call stop_inferior instead of
8373 darwin_stop_inferior.
8374 * fork-inferior.h (fork_inferior): Change init_trace_fun
8375 parameter to gdb::function_view.
8376 * fork-inferior.c (fork_inferior): Likewise.
8377
c162ed3e
HD
83782020-01-23 Hannes Domani <ssbssa@yahoo.de>
8379
8380 * i386-cygwin-tdep.c (core_process_module_section): Update.
8381 * windows-nat.c (struct lm_info_windows): Add text_offset.
8382 (windows_xfer_shared_libraries): Update.
8383 * windows-tdep.c (windows_xfer_shared_library):
8384 Add text_offset_cached argument.
8385 * windows-tdep.h (windows_xfer_shared_library): Update.
8386
a1237872
SM
83872020-01-21 Simon Marchi <simon.marchi@efficios.com>
8388
8389 * gdbarch.sh: Add declaration for _initialize_gdbarch.
8390
b3ee6dd9
SM
83912020-01-21 Simon Marchi <simon.marchi@efficios.com>
8392
8393 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
8394 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
8395 replace with range-based for.
8396 (gdbsim_interrupt_inferior): Remove.
8397 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
8398 with a range-based for. Inline code from
8399 gdbsim_interrupt_inferior.
8400
f9fac3c8
SM
84012020-01-21 Simon Marchi <simon.marchi@efficios.com>
8402
8403 * infrun.c (proceed): Fix indentation.
8404
f6474de9
TT
84052020-01-21 Tom Tromey <tromey@adacore.com>
8406
8407 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
8408 * python/python.c (python_extension_ops): Update.
8409 (gdbpy_colorize): New function.
8410 * python/lib/gdb/__init__.py (colorize): New function.
8411 * extension.h (ext_lang_colorize): Declare.
8412 * extension.c (ext_lang_colorize): New function.
8413 * extension-priv.h (struct extension_language_ops) <colorize>: New
8414 member.
8415 * cli/cli-style.c (_initialize_cli_style): Update help text.
8416
f0c702d4
LM
84172020-01-21 Luis Machado <luis.machado@linaro.org>
8418
8419 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
8420 <cond>: Change type to bool.
8421 (aarch64_displaced_step_b_cond): Update cond to use bool type.
8422 (aarch64_displaced_step_cb): Likewise.
8423 (aarch64_displaced_step_tb): Likewise.
8424
1ab139e5
LM
84252020-01-21 Luis Machado <luis.machado@linaro.org>
8426
8427 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
8428 output.
8429
0c271889
LM
84302020-01-21 Luis Machado <luis.machado@linaro.org>
8431
8432 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
8433 <pc_adjust>: Adjust the documentation.
8434 (aarch64_displaced_step_fixup): Check if PC really moved before
8435 adjusting it.
8436
4d89c1c7
TT
84372020-01-19 Tom Tromey <tom@tromey.com>
8438
8439 * disasm.c (~gdb_disassembler): New destructor.
8440 (gdb_buffered_insn_length): Call disassemble_free_target.
8441 * disasm.h (class gdb_disassembler): Declare destructor. Use
8442 DISABLE_COPY_AND_ASSIGN.
8443
c0ab21c2
TT
84442020-01-19 Tom Tromey <tom@tromey.com>
8445
8446 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
8447 (die_reader_func_ftype): Remove.
8448 (cutu_reader): New class.
8449 (dw2_get_file_names_reader): Remove "data" parameter.
8450 (dw2_get_file_names): Use cutu_reader.
8451 (create_debug_type_hash_table): Update.
8452 (read_cutu_die_from_dwo): Update comment.
8453 (lookup_dwo_unit): Add dwo_name parameter.
8454 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
8455 die_reader_func_ftype and data parameters.
8456 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
8457 Remove die_reader_func_ftype and data parameters.
8458 (~cutu_reader): New; from init_cutu_and_read_dies.
8459 (cutu_reader::cutu_reader): Rename from
8460 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
8461 and data parameters.
8462 (init_cutu_and_read_dies_simple): Remove.
8463 (struct process_psymtab_comp_unit_data): Remove.
8464 (process_psymtab_comp_unit_reader): Remove data parameter; add
8465 want_partial_unit and pretend_language parameters.
8466 (process_psymtab_comp_unit): Use cutu_reader.
8467 (build_type_psymtabs_reader): Remove data parameter.
8468 (build_type_psymtabs_1): Use cutu_reader.
8469 (process_skeletonless_type_unit): Likewise.
8470 (load_partial_comp_unit_reader): Remove.
8471 (load_partial_comp_unit): Use cutu_reader.
8472 (load_full_comp_unit_reader): Remove.
8473 (load_full_comp_unit): Use cutu_reader.
8474 (struct create_dwo_cu_data): Remove.
8475 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
8476 dwo_unit parameters.
8477 (create_cus_hash_table): Use cutu_reader.
8478 (struct dwarf2_read_addr_index_data): Remove.
8479 (dwarf2_read_addr_index_reader): Remove.
8480 (dwarf2_read_addr_index): Use cutu_reader.
8481 (read_signatured_type_reader): Remove.
8482 (read_signatured_type): Use cutu_reader.
8483
45bbae5c
TT
84842020-01-19 Tom Tromey <tom@tromey.com>
8485
8486 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
8487 * tui/tui-wingeneral.h (class tui_suppress_output): New.
8488 (tui_wrefresh): Declare.
8489 * tui/tui-wingeneral.c (suppress_output): New global.
8490 (tui_suppress_output, ~tui_suppress_output): New constructor and
8491 destructor.
8492 (tui_wrefresh): New function.
8493 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
8494 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
8495 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
8496 method.
8497 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
8498 tui_wrefresh.
8499 (tui_data_window::no_refresh): New method.
8500 (tui_data_item_window::refresh_window): Call tui_wrefresh.
8501 (tui_reg_command): Use tui_suppress_output
8502 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
8503 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
8504 method.
8505 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
8506
4f13c1c0
TT
85072020-01-19 Tom Tromey <tom@tromey.com>
8508
8509 * tui/tui-winsource.c (tui_update_source_windows_with_line):
8510 Handle case where symtab is null.
8511
fa47e446
SM
85122020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
8513
8514 * linux-fork.c (one_fork_p): Simplify.
8515
26f42329
SM
85162020-01-17 Simon Marchi <simon.marchi@efficios.com>
8517
8518 * top.c (struct qt_args): Remove.
8519 (kill_or_detach): Change return type to void, replace `void *`
8520 parameter with a proper one.
8521 (print_inferior_quit_action): Likewise.
8522 (quit_confirm): Use range-based for loop to iterate over inferiors.
8523 (quit_force): Likewise.
8524
a9ac81b1
SM
85252020-01-17 Simon Marchi <simon.marchi@efficios.com>
8526
8527 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
8528 `void *` parameter with proper parameters.
8529 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
8530 (print_one_inferior): Change return type to void, replace `void *`
8531 parameter with proper parameters.
8532 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
8533 inferiors.
8534 (get_other_inferior): Remove.
8535 (mi_cmd_remove_inferior): Use range-based loop to iterate over
8536 inferiors.
8537
788eca49
SM
85382020-01-17 Simon Marchi <simon.marchi@efficios.com>
8539
8540 * mi/mi-interp.c (report_initial_inferior): Remove.
8541 (mi_interp::init): Use range-based for to iterate over inferiors.
8542
d9bc85b6
SM
85432020-01-17 Simon Marchi <simon.marchi@efficios.com>
8544
8545 * python/py-inferior.c (build_inferior_list): Remove.
8546 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
8547
40c94099
CB
85482020-01-16 Christian Biesinger <cbiesinger@google.com>
8549
8550 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
8551 (btrace_stitch_trace): Likewise.
8552 * charset.c (intermediate_encoding): Likewise (vaild).
8553 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
8554 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
8555 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
8556
e0cdfe3c
HD
85572020-01-16 Hannes Domani <ssbssa@yahoo.de>
8558
8559 * windows-tdep.c (windows_get_tlb_type):
8560 Add rtl_user_process_parameters type.
8561
790f1718 85622020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 8563 Norbert Lange <nolange79@gmail.com>
790f1718
PA
8564
8565 PR build/24805
8566 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
8567 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
8568 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
8569 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
8570 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
8571 (ps_plog): Redeclare exported functions with default visibility.
8572
3112ed97
NA
85732020-01-16 Nitika Achra <Nitika.Achra@amd.com>
8574
8575 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
8576 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
8577
8dc3273e
SM
85782020-01-15 Simon Marchi <simon.marchi@efficios.com>
8579
8580 * infcmd.c (post_create_inferior): Use get_thread_regcache
8581 instead of get_current_regcache.
8582
ff47f4f0
TT
85832020-01-14 Tom Tromey <tom@tromey.com>
8584
8585 PR symtab/12535:
8586 * python/python.c (gdbpy_decode_line): Treat empty string the same
8587 as no argument.
8588
975f45b7
TT
85892020-01-14 Tom Tromey <tom@tromey.com>
8590
8591 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
8592
25e57356
TT
85932020-01-14 Tom Tromey <tom@tromey.com>
8594
8595 * nat/linux-btrace.c: Don't include <config.h>.
8596 * nat/linux-ptrace.c: Don't include <config.h>.
8597 * nat/x86-linux-dregs.c: Don't include <config.h>.
8598
05ea2a05
TT
85992020-01-14 Tom Tromey <tom@tromey.com>
8600
8601 * configure: Rebuild.
8602 * configure.ac: Move many checks to ../gdbsupport/common.m4.
8603
01027315
TT
86042020-01-14 Tom Tromey <tom@tromey.com>
8605
8606 * nat/x86-linux-dregs.c: Include configh.h.
8607 * nat/linux-ptrace.c: Include configh.h.
8608 * nat/linux-btrace.c: Include configh.h.
8609 * defs.h: Include config.h, bfd.h.
8610 * configure.ac: Don't source common.host.
8611 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
8612 * configure: Rebuild.
8613 * acinclude.m4: Update path.
8614 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
8615 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
8616 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
8617 (CLIBS): Add LIBSUPPORT.
8618 (CDEPS): Likewise.
8619 (COMMON_SFILES): Remove gdbsupport files.
8620 (HFILES_NO_SRCDIR): Likewise.
8621 (stamp-version): Update path to create-version.sh.
8622 (ALLDEPFILES): Remove gdbsupport files.
8623
b2ceabe8
TT
86242020-01-14 Tom Tromey <tom@tromey.com>
8625
8626 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
8627 USE_WIN32API when needed.
8628 * configure.ac (USE_WIN32API): Don't define.
8629 (WIN32LIBS): Use WIN32APILIBS.
8630 * configure: Rebuild.
8631
25c51f71
TT
86322020-01-14 Tom Tromey <tom@tromey.com>
8633
8634 * configure: Rebuild.
8635 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
8636
717c684d
BE
86372020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
8638
8639 * skip.c (skip_function_command): Make skip w/o arguments use the
8640 name of the inlined function if pc is inside any inlined function.
8641
7da6a5b9
LM
86422020-01-14 Luis Machado <luis.machado@linaro.org>
8643
8644 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
8645 * infrun.c (resume_1): Likewise.
8646 (handle_inferior_event): Remove stale comment.
8647 * linux-nat.c (linux_nat_target::resume): Update comments.
8648 (save_stop_reason): Likewise.
8649 (linux_nat_filter_event): Likewise.
8650 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
8651
44e4c775
AB
86522020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
8653
8654 * elfread.c (record_minimal_symbol): Set section index to 0 for
8655 non-allocatable sections.
8656
18a8505e
AT
8657
86582020-01-13 Ali Tamur <tamur@google.com>
8659
8660 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
8661 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
8662 to gdb::optional. Update comments.
8663 (dwo_file): Update comments.
8664 (read_attribute): Update API to take an additional out parameter,
8665 need_reprocess. This is used to mark attributes that need other
8666 attributes (e.g. str_offsets_base) for correct computation which may not
8667 have been read yet.
8668 (read_attribute_reprocess): New function declaration.
8669 (read_addr_index): Likewise.
8670 (read_dwo_str_index): Likewise.
8671 (read_stub_str_index): Likewise.
8672 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
8673 (lookup_addr_base): New function definition.
8674 (lookup_ranges_base): Likewise.
8675 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
8676 lookup_ranges_base.
8677 (init_cutu_and_read_dies): Update comments.
8678 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
8679 unit. This is used to inherit parent's str_offsets_base and addr_base.
8680 Update comments.
8681 (init_cutu_and_read_dies_simple): Reflect API changes.
8682 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
8683 (create_cus_hash_table): Change API to take parent compile unit.
8684 Reflect API changes.
8685 (open_and_init_dwo_file): Reflect API changes.
8686 (dwarf2_get_pc_bounds): Update comments.
8687 (dwarf2_record_block_ranges): Likewise.
8688 (read_full_die_1): Change implementation to reprocess attributes that
8689 need str_offsets_base and addr_base.
8690 (partial_die_info::read): Likewise.
8691 (read_attribute_reprocess): New function definition.
8692 (read_attribute_value): Change API to take an additional out parameter,
8693 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
8694 when a non-dwo compile unit has index based attributes.
8695 (read_attribute): Reflect API changes.
8696 (read_addr_index_1): Reflect API changes. Update comments.
8697 (dwarf2_read_addr_index_data): Reflect API changes.
8698 (dwarf2_read_addr_index): Likewise.
8699 (read_str_index): Change API and implementation. This becomes a helper
8700 to be used by the new string index related methods. Update error
8701 message and comments.
8702 (read_dwo_str_index): New function definition.
8703 (read_stub_str_index): Likewise.
8704 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
8705 * symfile.h (dwarf2_debug_sections): Likewise.
8706 * xcoffread.c (dwarf2_debug_sections): Likewise.
8707
0cac9354
SM
87082020-01-13 Simon Marchi <simon.marchi@efficios.com>
8709
8710 * gdbcore.h (struct core_fns) <core_read_registers>: Change
8711 core_reg_sect type to gdb_byte *.
8712 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
8713 * cris-tdep.c (fetch_core_registers): Likewise.
8714 * corelow.c (core_target::get_core_register_section): Change
8715 type of `contents` to gdb::byte_vector.
8716
9a6d629c
AB
87172020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
8718
8719 * tui/tui-wingeneral.c (box_win): Position the title in the center
8720 of the border.
8721
d8b2f9e3
SM
87222020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
8723
8724 * corelow.c (core_target::get_core_register_section): Use
8725 std::vector instead of alloca.
8726
bb564c58
SM
87272020-01-13 Simon Marchi <simon.marchi@efficios.com>
8728
8729 * warning.m4: Add -Wmissing-declarations to build_warnings.
8730 * configure: Re-generate.
8731
6b366111
SM
87322020-01-13 Simon Marchi <simon.marchi@efficios.com>
8733
8734 * python/python.c (init__gdb_module): Add declaration.
8735
6c265988
SM
87362020-01-13 Simon Marchi <simon.marchi@efficios.com>
8737
8738 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
8739 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
8740 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
8741 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
8742 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
8743 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
8744 * ada-exp.y (_initialize_ada_exp): Add declaration.
8745 * ada-lang.c (_initialize_ada_language): Add declaration.
8746 * ada-tasks.c (_initialize_tasks): Add declaration.
8747 * agent.c (_initialize_agent): Add declaration.
8748 * aix-thread.c (_initialize_aix_thread): Add declaration.
8749 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
8750 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
8751 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
8752 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
8753 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
8754 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
8755 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
8756 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
8757 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
8758 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
8759 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
8760 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
8761 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
8762 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
8763 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
8764 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
8765 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
8766 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
8767 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
8768 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
8769 * annotate.c (_initialize_annotate): Add declaration.
8770 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
8771 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
8772 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
8773 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
8774 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
8775 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
8776 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
8777 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
8778 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
8779 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
8780 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
8781 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
8782 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
8783 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
8784 * auto-load.c (_initialize_auto_load): Add declaration.
8785 * auxv.c (_initialize_auxv): Add declaration.
8786 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
8787 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
8788 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
8789 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
8790 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
8791 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
8792 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
8793 * breakpoint.c (_initialize_breakpoint): Add declaration.
8794 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
8795 * btrace.c (_initialize_btrace): Add declaration.
8796 * charset.c (_initialize_charset): Add declaration.
8797 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
8798 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
8799 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
8800 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
8801 * cli/cli-script.c (_initialize_cli_script): Add declaration.
8802 * cli/cli-style.c (_initialize_cli_style): Add declaration.
8803 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
8804 * coffread.c (_initialize_coffread): Add declaration.
8805 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
8806 * compile/compile.c (_initialize_compile): Add declaration.
8807 * complaints.c (_initialize_complaints): Add declaration.
8808 * completer.c (_initialize_completer): Add declaration.
8809 * copying.c (_initialize_copying): Add declaration.
8810 * corefile.c (_initialize_core): Add declaration.
8811 * corelow.c (_initialize_corelow): Add declaration.
8812 * cp-abi.c (_initialize_cp_abi): Add declaration.
8813 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
8814 * cp-support.c (_initialize_cp_support): Add declaration.
8815 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
8816 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
8817 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
8818 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
8819 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
8820 * ctfread.c (_initialize_ctfread): Add declaration.
8821 * d-lang.c (_initialize_d_language): Add declaration.
8822 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
8823 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
8824 * dbxread.c (_initialize_dbxread): Add declaration.
8825 * dcache.c (_initialize_dcache): Add declaration.
8826 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
8827 * disasm.c (_initialize_disasm): Add declaration.
8828 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
8829 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
8830 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
8831 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
8832 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
8833 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
8834 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
8835 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
8836 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
8837 * elfread.c (_initialize_elfread): Add declaration.
8838 * exec.c (_initialize_exec): Add declaration.
8839 * extension.c (_initialize_extension): Add declaration.
8840 * f-lang.c (_initialize_f_language): Add declaration.
8841 * f-valprint.c (_initialize_f_valprint): Add declaration.
8842 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
8843 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
8844 * filesystem.c (_initialize_filesystem): Add declaration.
8845 * findcmd.c (_initialize_mem_search): Add declaration.
8846 * findvar.c (_initialize_findvar): Add declaration.
8847 * fork-child.c (_initialize_fork_child): Add declaration.
8848 * frame-base.c (_initialize_frame_base): Add declaration.
8849 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
8850 * frame.c (_initialize_frame): Add declaration.
8851 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
8852 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
8853 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
8854 * gcore.c (_initialize_gcore): Add declaration.
8855 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
8856 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
8857 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
8858 * gdbarch.c (_initialize_gdbarch): Add declaration.
8859 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
8860 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
8861 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
8862 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
8863 * go-lang.c (_initialize_go_language): Add declaration.
8864 * go32-nat.c (_initialize_go32_nat): Add declaration.
8865 * guile/guile.c (_initialize_guile): Add declaration.
8866 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
8867 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
8868 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
8869 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
8870 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
8871 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
8872 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
8873 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
8874 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
8875 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
8876 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
8877 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
8878 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
8879 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
8880 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
8881 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
8882 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
8883 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
8884 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
8885 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
8886 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
8887 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
8888 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
8889 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
8890 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
8891 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
8892 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
8893 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
8894 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
8895 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
8896 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
8897 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
8898 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
8899 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
8900 * infcall.c (_initialize_infcall): Add declaration.
8901 * infcmd.c (_initialize_infcmd): Add declaration.
8902 * inflow.c (_initialize_inflow): Add declaration.
8903 * infrun.c (_initialize_infrun): Add declaration.
8904 * interps.c (_initialize_interpreter): Add declaration.
8905 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
8906 * jit.c (_initialize_jit): Add declaration.
8907 * language.c (_initialize_language): Add declaration.
8908 * linux-fork.c (_initialize_linux_fork): Add declaration.
8909 * linux-nat.c (_initialize_linux_nat): Add declaration.
8910 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
8911 * linux-thread-db.c (_initialize_thread_db): Add declaration.
8912 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
8913 * m2-lang.c (_initialize_m2_language): Add declaration.
8914 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
8915 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
8916 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
8917 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
8918 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
8919 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
8920 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
8921 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
8922 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
8923 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
8924 * machoread.c (_initialize_machoread): Add declaration.
8925 * macrocmd.c (_initialize_macrocmd): Add declaration.
8926 * macroscope.c (_initialize_macroscope): Add declaration.
8927 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
8928 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
8929 * maint.c (_initialize_maint_cmds): Add declaration.
8930 * mdebugread.c (_initialize_mdebugread): Add declaration.
8931 * memattr.c (_initialize_mem): Add declaration.
8932 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
8933 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
8934 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
8935 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
8936 * mi/mi-main.c (_initialize_mi_main): Add declaration.
8937 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
8938 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
8939 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
8940 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
8941 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
8942 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
8943 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
8944 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
8945 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
8946 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
8947 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
8948 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
8949 * mipsread.c (_initialize_mipsread): Add declaration.
8950 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
8951 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
8952 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
8953 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
8954 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
8955 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
8956 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
8957 * nto-procfs.c (_initialize_procfs): Add declaration.
8958 * objc-lang.c (_initialize_objc_language): Add declaration.
8959 * observable.c (_initialize_observer): Add declaration.
8960 * opencl-lang.c (_initialize_opencl_language): Add declaration.
8961 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
8962 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
8963 * osabi.c (_initialize_gdb_osabi): Add declaration.
8964 * osdata.c (_initialize_osdata): Add declaration.
8965 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
8966 * parse.c (_initialize_parse): Add declaration.
8967 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
8968 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
8969 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
8970 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
8971 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
8972 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
8973 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
8974 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
8975 * printcmd.c (_initialize_printcmd): Add declaration.
8976 * probe.c (_initialize_probe): Add declaration.
8977 * proc-api.c (_initialize_proc_api): Add declaration.
8978 * proc-events.c (_initialize_proc_events): Add declaration.
8979 * proc-service.c (_initialize_proc_service): Add declaration.
8980 * procfs.c (_initialize_procfs): Add declaration.
8981 * producer.c (_initialize_producer): Add declaration.
8982 * psymtab.c (_initialize_psymtab): Add declaration.
8983 * python/python.c (_initialize_python): Add declaration.
8984 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
8985 * record-btrace.c (_initialize_record_btrace): Add declaration.
8986 * record-full.c (_initialize_record_full): Add declaration.
8987 * record.c (_initialize_record): Add declaration.
8988 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
8989 * regcache.c (_initialize_regcache): Add declaration.
8990 * reggroups.c (_initialize_reggroup): Add declaration.
8991 * remote-notif.c (_initialize_notif): Add declaration.
8992 * remote-sim.c (_initialize_remote_sim): Add declaration.
8993 * remote.c (_initialize_remote): Add declaration.
8994 * reverse.c (_initialize_reverse): Add declaration.
8995 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
8996 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
8997 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
8998 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
8999 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
9000 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
9001 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
9002 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
9003 Add declaration.
9004 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
9005 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
9006 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
9007 * rust-exp.y (_initialize_rust_exp): Add declaration.
9008 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
9009 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
9010 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
9011 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
9012 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
9013 * score-tdep.c (_initialize_score_tdep): Add declaration.
9014 * ser-go32.c (_initialize_ser_dos): Add declaration.
9015 * ser-mingw.c (_initialize_ser_windows): Add declaration.
9016 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
9017 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
9018 * ser-uds.c (_initialize_ser_socket): Add declaration.
9019 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
9020 * serial.c (_initialize_serial): Add declaration.
9021 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
9022 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
9023 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
9024 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
9025 * skip.c (_initialize_step_skip): Add declaration.
9026 * sol-thread.c (_initialize_sol_thread): Add declaration.
9027 * solib-aix.c (_initialize_solib_aix): Add declaration.
9028 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
9029 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
9030 * solib-frv.c (_initialize_frv_solib): Add declaration.
9031 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
9032 * solib-target.c (_initialize_solib_target): Add declaration.
9033 * solib.c (_initialize_solib): Add declaration.
9034 * source-cache.c (_initialize_source_cache): Add declaration.
9035 * source.c (_initialize_source): Add declaration.
9036 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
9037 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
9038 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
9039 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
9040 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
9041 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
9042 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
9043 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
9044 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
9045 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
9046 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
9047 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
9048 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
9049 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
9050 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
9051 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
9052 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
9053 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
9054 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
9055 * stabsread.c (_initialize_stabsread): Add declaration.
9056 * stack.c (_initialize_stack): Add declaration.
9057 * stap-probe.c (_initialize_stap_probe): Add declaration.
9058 * std-regs.c (_initialize_frame_reg): Add declaration.
9059 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
9060 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
9061 * symfile.c (_initialize_symfile): Add declaration.
9062 * symmisc.c (_initialize_symmisc): Add declaration.
9063 * symtab.c (_initialize_symtab): Add declaration.
9064 * target.c (_initialize_target): Add declaration.
9065 * target-connection.c (_initialize_target_connection): Add
9066 declaration.
9067 * target-dcache.c (_initialize_target_dcache): Add declaration.
9068 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
9069 * thread.c (_initialize_thread): Add declaration.
9070 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
9071 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
9072 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
9073 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
9074 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
9075 * tracectf.c (_initialize_ctf): Add declaration.
9076 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
9077 * tracefile.c (_initialize_tracefile): Add declaration.
9078 * tracepoint.c (_initialize_tracepoint): Add declaration.
9079 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
9080 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
9081 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
9082 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
9083 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
9084 * tui/tui-win.c (_initialize_tui_win): Add declaration.
9085 * tui/tui.c (_initialize_tui): Add declaration.
9086 * typeprint.c (_initialize_typeprint): Add declaration.
9087 * ui-style.c (_initialize_ui_style): Add declaration.
9088 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
9089 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
9090 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
9091 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
9092 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
9093 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
9094 * unittests/filtered_iterator-selftests.c
9095 (_initialize_filtered_iterator_selftests): Add declaration.
9096 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
9097 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
9098 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
9099 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
9100 * unittests/main-thread-selftests.c
9101 (_initialize_main_thread_selftests): Add declaration.
9102 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
9103 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
9104 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
9105 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
9106 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
9107 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
9108 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
9109 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
9110 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
9111 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
9112 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
9113 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
9114 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
9115 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
9116 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
9117 declaration.
9118 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
9119 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
9120 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
9121 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
9122 * user-regs.c (_initialize_user_regs): Add declaration.
9123 * utils.c (_initialize_utils): Add declaration.
9124 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
9125 * valops.c (_initialize_valops): Add declaration.
9126 * valprint.c (_initialize_valprint): Add declaration.
9127 * value.c (_initialize_values): Add declaration.
9128 * varobj.c (_initialize_varobj): Add declaration.
9129 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
9130 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
9131 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
9132 * windows-nat.c (_initialize_windows_nat): Add declaration.
9133 (_initialize_check_for_gdb_ini): Add declaration.
9134 (_initialize_loadable): Add declaration.
9135 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
9136 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
9137 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
9138 * xcoffread.c (_initialize_xcoffread): Add declaration.
9139 * xml-support.c (_initialize_xml_support): Add declaration.
9140 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
9141 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
9142 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
9143 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
9144
e2de1eec
SM
91452020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9146
9147 * regformats/regdat.sh: Generate declaration for init function.
9148
e0037b4c
SM
91492020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
9150
9151 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
9152 up.
9153 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
9154 close_one_inferior>: New methods.
9155 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
9156 pass down target to find_inferior_pid.
9157 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
9158 Pass down target to find_inferior_ptid.
9159 (gdbsim_target::create_inferior): Pass down target to
9160 add_thread_silent.
9161 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
9162 target down to find_inferior_ptid and switch_to_thread.
9163 (gdbsim_target::close): Update to call close_one_inferior.
9164 (struct resume_data): Remove.
9165 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
9166 directly, rather than through a void pointer.
9167 (gdbsim_target::resume): Update to call resume_one_inferior.
9168
58920b5b
SM
91692020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
9170
9171 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
9172
4ec89149
PA
91732020-01-12 Pedro Alves <palves@redhat.com>
9174
9175 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
9176 directly for the current inferior instead of
9177 discard_all_inferiors.
9178 (discard_all_inferiors): Delete.
9179
7c392d1d
TT
91802020-01-11 Tom Tromey <tom@tromey.com>
9181
9182 * tui/tui-wingeneral.c (box_win): Check cli_styling.
9183 * tui/tui-winsource.c (tui_source_window_base::refill): Use
9184 deprecated_safe_get_selected_frame.
9185
d9ebdab7
TBA
91862020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9187
9188 * inferior.c (print_inferior): Switch inferior before printing it.
9189
f3c469b9
PA
91902020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
9191 Pedro Alves <palves@redhat.com>
9192
9193 * progspace-and-thread.c (switch_to_program_space_and_thread):
9194 Assert there's an inferior for PSPACE. Use
9195 switch_to_inferior_no_thread to switch the inferior too.
9196 * progspace.c (program_space::~program_space): Call
9197 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
9198 (program_space::free_all_objfiles): Don't call clear_symtab_users
9199 here.
9200 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
9201
65c574f6
PA
92022020-01-10 Pedro Alves <palves@redhat.com>
9203
9204 * NEWS: Mention multi-target debugging, "info connections", and
9205 "add-inferior -no-connection".
9206
2f4fcf00
PA
92072020-01-10 Pedro Alves <palves@redhat.com>
9208
9209 * infrun.c: Include "target-connection.h".
9210 (check_multi_target_resumption): New.
9211 (proceed): Call it.
9212 * target-connection.c (make_target_connection_string): Make
9213 extern.
9214 * target-connection.h (make_target_connection_string): Declare.
9215
121b3efd
PA
92162020-01-10 Pedro Alves <palves@redhat.com>
9217
9218 * Makefile.in (COMMON_SFILES): Add target-connection.c.
9219 * inferior.c (uiout_field_connection): New function.
9220 (print_inferior): Add new "connection-id" column.
9221 (add_inferior_command): Show connection number/string of added
9222 inferior.
9223 * process-stratum-target.h
9224 (process_stratum_target::connection_string): New virtual method.
9225 (process_stratum_target::connection_number): New field.
9226 * remote.c (remote_target::connection_string): New override.
9227 * target-connection.c: New file.
9228 * target-connection.h: New file.
9229 * target.c (decref_target): Remove process_stratum targets from
9230 the connection list.
9231 (target_stack::push): Add process_stratum targets to the
9232 connection list.
9233
4f837581
PA
92342020-01-10 Pedro Alves <palves@redhat.com>
9235
9236 Revert:
9237 2016-04-12 Pedro Alves <palves@redhat.com>
9238 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
9239 Remove references to name.
9240 * serial.h (struct serial) <name>: Delete.
9241
f4ec508e
PA
92422020-01-10 Pedro Alves <palves@redhat.com>
9243
9244 * gdbarch-selftests.c (register_to_value_test): Remove "target
9245 already pushed" check.
9246
5b6d1e4f
PA
92472020-01-10 Pedro Alves <palves@redhat.com>
9248 John Baldwin <jhb@FreeBSD.org>
9249
9250 * aarch64-linux-nat.c
9251 (aarch64_linux_nat_target::thread_architecture): Adjust.
9252 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
9253 (task_command_1): Likewise.
9254 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
9255 (aix_thread_target::wait, aix_thread_target::fetch_registers)
9256 (aix_thread_target::store_registers)
9257 (aix_thread_target::thread_alive): Adjust.
9258 * amd64-fbsd-tdep.c: Include "inferior.h".
9259 (amd64fbsd_get_thread_local_address): Pass down target.
9260 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
9261 thread's gdbarch instead of target_gdbarch.
9262 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
9263 get_last_target_status.
9264 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
9265 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
9266 inferiors.
9267 (update_inserted_breakpoint_locations): Skip if inferiors with no
9268 execution.
9269 (update_global_location_list): When handling moribund locations,
9270 find representative inferior for location's pspace, and use thread
9271 count of its process_stratum target.
9272 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
9273 * bsd-uthread.c (bsd_uthread_target::wait): Use
9274 as_process_stratum_target and adjust thread_change_ptid and
9275 add_thread calls.
9276 (bsd_uthread_target::update_thread_list): Use
9277 as_process_stratum_target and adjust find_thread_ptid,
9278 thread_change_ptid and add_thread calls.
9279 * btrace.c (maint_btrace_packet_history_cmd): Adjust
9280 find_thread_ptid call.
9281 * corelow.c (add_to_thread_list): Adjust add_thread call.
9282 (core_target_open): Adjust add_thread_silent and thread_count
9283 calls.
9284 (core_target::pid_to_str): Adjust find_inferior_ptid call.
9285 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
9286 * event-top.c (async_disconnect): Pop targets from all inferiors.
9287 * exec.c (add_target_sections): Push exec target on all inferiors
9288 sharing the program space.
9289 (remove_target_sections): Remove the exec target from all
9290 inferiors sharing the program space.
9291 (exec_on_vfork): New.
9292 * exec.h (exec_on_vfork): Declare.
9293 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
9294 Pass it down.
9295 (fbsd_nat_target::update_thread_list): Adjust.
9296 (fbsd_nat_target::resume): Adjust.
9297 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
9298 down.
9299 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
9300 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
9301 get_thread_arch_regcache call.
9302 * fork-child.c (gdb_startup_inferior): Pass target down to
9303 startup_inferior and set_executing.
9304 * gdbthread.h (struct process_stratum_target): Forward declare.
9305 (add_thread, add_thread_silent, add_thread_with_info)
9306 (in_thread_list): Add process_stratum_target parameter.
9307 (find_thread_ptid(inferior*, ptid_t)): New overload.
9308 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
9309 parameter.
9310 (all_threads()): Delete overload.
9311 (all_threads, all_non_exited_threads): Add process_stratum_target
9312 parameter.
9313 (all_threads_safe): Use brace initialization.
9314 (thread_count): Add process_stratum_target parameter.
9315 (set_resumed, set_running, set_stop_requested, set_executing)
9316 (threads_are_executing, finish_thread_state): Add
9317 process_stratum_target parameter.
9318 (switch_to_thread): Use is_current_thread.
9319 * i386-fbsd-tdep.c: Include "inferior.h".
9320 (i386fbsd_get_thread_local_address): Pass down target.
9321 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
9322 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
9323 have_inferiors check.
9324 * inf-ptrace.c (inf_ptrace_target::create_inferior)
9325 (inf_ptrace_target::attach): Adjust.
9326 * infcall.c (run_inferior_call): Adjust.
9327 * infcmd.c (run_command_1): Pass target to
9328 scoped_finish_thread_state.
9329 (proceed_thread_callback): Skip inferiors with no execution.
9330 (continue_command): Rename 'all_threads' local to avoid hiding
9331 'all_threads' function. Adjust get_last_target_status call.
9332 (prepare_one_step): Adjust set_running call.
9333 (signal_command): Use user_visible_resume_target. Compare thread
9334 pointers instead of inferior_ptid.
9335 (info_program_command): Adjust to pass down target.
9336 (attach_command): Mark target's 'thread_executing' flag.
9337 (stop_current_target_threads_ns): New, factored out from ...
9338 (interrupt_target_1): ... this. Switch inferior before making
9339 target calls.
9340 * inferior-iter.h
9341 (struct all_inferiors_iterator, struct all_inferiors_range)
9342 (struct all_inferiors_safe_range)
9343 (struct all_non_exited_inferiors_range): Filter on
9344 process_stratum_target too. Remove explicit.
9345 * inferior.c (inferior::inferior): Push dummy target on target
9346 stack.
9347 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
9348 Add process_stratum_target parameter, and pass it down.
9349 (have_live_inferiors): Adjust.
9350 (switch_to_inferior_and_push_target): New.
9351 (add_inferior_command, clone_inferior_command): Handle
9352 "-no-connection" parameter. Use
9353 switch_to_inferior_and_push_target.
9354 (_initialize_inferior): Mention "-no-connection" option in
9355 the help of "add-inferior" and "clone-inferior" commands.
9356 * inferior.h: Include "process-stratum-target.h".
9357 (interrupt_target_1): Use bool.
9358 (struct inferior) <push_target, unpush_target, target_is_pushed,
9359 find_target_beneath, top_target, process_target, target_at,
9360 m_stack>: New.
9361 (discard_all_inferiors): Delete.
9362 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
9363 (all_inferiors, all_non_exited_inferiors): Add
9364 process_stratum_target parameter.
9365 * infrun.c: Include "gdb_select.h" and <unordered_map>.
9366 (target_last_proc_target): New global.
9367 (follow_fork_inferior): Push target on new inferior. Pass target
9368 to add_thread_silent. Call exec_on_vfork. Handle target's
9369 reference count.
9370 (follow_fork): Adjust get_last_target_status call. Also consider
9371 target.
9372 (follow_exec): Push target on new inferior.
9373 (struct execution_control_state) <target>: New field.
9374 (user_visible_resume_target): New.
9375 (do_target_resume): Call target_async.
9376 (resume_1): Set target's threads_executing flag. Consider resume
9377 target.
9378 (commit_resume_all_targets): New.
9379 (proceed): Also consider resume target. Skip threads of inferiors
9380 with no execution. Commit resumtion in all targets.
9381 (start_remote): Pass current inferior to wait_for_inferior.
9382 (infrun_thread_stop_requested): Consider target as well. Pass
9383 thread_info pointer to clear_inline_frame_state instead of ptid.
9384 (infrun_thread_thread_exit): Consider target as well.
9385 (random_pending_event_thread): New inferior parameter. Use it.
9386 (do_target_wait): Rename to ...
9387 (do_target_wait_1): ... this. Add inferior parameter, and pass it
9388 down.
9389 (threads_are_resumed_pending_p, do_target_wait): New.
9390 (prepare_for_detach): Adjust calls.
9391 (wait_for_inferior): New inferior parameter. Handle it. Use
9392 do_target_wait_1 instead of do_target_wait.
9393 (fetch_inferior_event): Adjust. Switch to representative
9394 inferior. Pass target down.
9395 (set_last_target_status): Add process_stratum_target parameter.
9396 Save target in global.
9397 (get_last_target_status): Add process_stratum_target parameter and
9398 handle it.
9399 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
9400 (context_switch): Check inferior_ptid == null_ptid before calling
9401 inferior_thread().
9402 (get_inferior_stop_soon): Pass down target.
9403 (wait_one): Rename to ...
9404 (poll_one_curr_target): ... this.
9405 (struct wait_one_event): New.
9406 (wait_one): New.
9407 (stop_all_threads): Adjust.
9408 (handle_no_resumed, handle_inferior_event): Adjust to consider the
9409 event's target.
9410 (switch_back_to_stepped_thread): Also consider target.
9411 (print_stop_event): Update.
9412 (normal_stop): Update. Also consider the resume target.
9413 * infrun.h (wait_for_inferior): Remove declaration.
9414 (user_visible_resume_target): New declaration.
9415 (get_last_target_status, set_last_target_status): New
9416 process_stratum_target parameter.
9417 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
9418 process_stratum_target parameter, and use it.
9419 (clear_inline_frame_state (thread_info*)): New.
9420 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
9421 process_stratum_target parameter.
9422 (clear_inline_frame_state (thread_info*)): Declare.
9423 * linux-fork.c (delete_checkpoint_command): Pass target down to
9424 find_thread_ptid.
9425 (checkpoint_command): Adjust.
9426 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
9427 instead of just tweaking inferior_ptid.
9428 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
9429 (exit_lwp): Pass target down to find_thread_ptid.
9430 (attach_proc_task_lwp_callback): Pass target down to
9431 add_thread/set_running/set_executing.
9432 (linux_nat_target::attach): Pass target down to
9433 thread_change_ptid.
9434 (get_detach_signal): Pass target down to find_thread_ptid.
9435 Consider last target status's target.
9436 (linux_resume_one_lwp_throw, resume_lwp)
9437 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
9438 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
9439 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
9440 (linux_nat_target::async_wait_fd): New.
9441 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
9442 target down.
9443 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
9444 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
9445 * linux-thread-db.c (struct thread_db_info::process_target): New
9446 field.
9447 (add_thread_db_info): Save target.
9448 (get_thread_db_info): New process_stratum_target parameter. Also
9449 match target.
9450 (delete_thread_db_info): New process_stratum_target parameter.
9451 Also match target.
9452 (thread_from_lwp): Adjust to pass down target.
9453 (thread_db_notice_clone): Pass down target.
9454 (check_thread_db_callback): Pass down target.
9455 (try_thread_db_load_1): Always push the thread_db target.
9456 (try_thread_db_load, record_thread): Pass target down.
9457 (thread_db_target::detach): Pass target down. Always unpush the
9458 thread_db target.
9459 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
9460 target down. Always unpush the thread_db target.
9461 (find_new_threads_callback, thread_db_find_new_threads_2)
9462 (thread_db_target::update_thread_list): Pass target down.
9463 (thread_db_target::pid_to_str): Pass current inferior down.
9464 (thread_db_target::get_thread_local_address): Pass target down.
9465 (thread_db_target::resume, maintenance_check_libthread_db): Pass
9466 target down.
9467 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
9468 * procfs.c (procfs_target::procfs_init_inferior): Declare.
9469 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
9470 (procfs_init_inferior): Rename to ...
9471 (procfs_target::procfs_init_inferior): ... this and adjust.
9472 (procfs_target::create_inferior, procfs_notice_thread)
9473 (procfs_do_thread_registers): Adjust.
9474 * ppc-fbsd-tdep.c: Include "inferior.h".
9475 (ppcfbsd_get_thread_local_address): Pass down target.
9476 * proc-service.c (ps_xfer_memory): Switch current inferior and
9477 program space as well.
9478 (get_ps_regcache): Pass target down.
9479 * process-stratum-target.c
9480 (process_stratum_target::thread_address_space)
9481 (process_stratum_target::thread_architecture): Pass target down.
9482 * process-stratum-target.h
9483 (process_stratum_target::threads_executing): New field.
9484 (as_process_stratum_target): New.
9485 * ravenscar-thread.c
9486 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
9487 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
9488 down.
9489 * record-btrace.c (record_btrace_target::info_record): Adjust.
9490 (record_btrace_target::record_method)
9491 (record_btrace_target::record_is_replaying)
9492 (record_btrace_target::fetch_registers)
9493 (get_thread_current_frame_id, record_btrace_target::resume)
9494 (record_btrace_target::wait, record_btrace_target::stop): Pass
9495 target down.
9496 * record-full.c (record_full_wait_1): Switch to event thread.
9497 Pass target down.
9498 * regcache.c (regcache::regcache)
9499 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
9500 process_stratum_target parameter and handle it.
9501 (current_thread_target): New global.
9502 (get_thread_regcache): Add process_stratum_target parameter and
9503 handle it. Switch inferior before calling target method.
9504 (get_thread_regcache): Pass target down.
9505 (get_thread_regcache_for_ptid): Pass target down.
9506 (registers_changed_ptid): Add process_stratum_target parameter and
9507 handle it.
9508 (registers_changed_thread, registers_changed): Pass target down.
9509 (test_get_thread_arch_aspace_regcache): New.
9510 (current_regcache_test): Define a couple local test_target_ops
9511 instances and use them for testing.
9512 (readwrite_regcache): Pass process_stratum_target parameter.
9513 (cooked_read_test, cooked_write_test): Pass mock_target down.
9514 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
9515 (get_thread_arch_aspace_regcache): Add process_stratum_target
9516 parameter.
9517 (regcache::target): New method.
9518 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
9519 (regcache::registers_changed_ptid): Add process_stratum_target
9520 parameter.
9521 (regcache::m_target): New field.
9522 (registers_changed_ptid): Add process_stratum_target parameter.
9523 * remote.c (remote_state::supports_vCont_probed): New field.
9524 (remote_target::async_wait_fd): New method.
9525 (remote_unpush_and_throw): Add remote_target parameter.
9526 (get_current_remote_target): Adjust.
9527 (remote_target::remote_add_inferior): Push target.
9528 (remote_target::remote_add_thread)
9529 (remote_target::remote_notice_new_inferior)
9530 (get_remote_thread_info): Pass target down.
9531 (remote_target::update_thread_list): Skip threads of inferiors
9532 bound to other targets. (remote_target::close): Don't discard
9533 inferiors. (remote_target::add_current_inferior_and_thread)
9534 (remote_target::process_initial_stop_replies)
9535 (remote_target::start_remote)
9536 (remote_target::remote_serial_quit_handler): Pass down target.
9537 (remote_target::remote_unpush_target): New remote_target
9538 parameter. Unpush the target from all inferiors.
9539 (remote_target::remote_unpush_and_throw): New remote_target
9540 parameter. Pass it down.
9541 (remote_target::open_1): Check whether the current inferior has
9542 execution instead of checking whether any inferior is live. Pass
9543 target down.
9544 (remote_target::remote_detach_1): Pass down target. Use
9545 remote_unpush_target.
9546 (extended_remote_target::attach): Pass down target.
9547 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
9548 (remote_target::append_resumption): Pass down target.
9549 (remote_target::append_pending_thread_resumptions)
9550 (remote_target::remote_resume_with_hc, remote_target::resume)
9551 (remote_target::commit_resume): Pass down target.
9552 (remote_target::remote_stop_ns): Check supports_vCont_probed.
9553 (remote_target::interrupt_query)
9554 (remote_target::remove_new_fork_children)
9555 (remote_target::check_pending_events_prevent_wildcard_vcont)
9556 (remote_target::remote_parse_stop_reply)
9557 (remote_target::process_stop_reply): Pass down target.
9558 (first_remote_resumed_thread): New remote_target parameter. Pass
9559 it down.
9560 (remote_target::wait_as): Pass down target.
9561 (unpush_and_perror): New remote_target parameter. Pass it down.
9562 (remote_target::readchar, remote_target::remote_serial_write)
9563 (remote_target::getpkt_or_notif_sane_1)
9564 (remote_target::kill_new_fork_children, remote_target::kill): Pass
9565 down target.
9566 (remote_target::mourn_inferior): Pass down target. Use
9567 remote_unpush_target.
9568 (remote_target::core_of_thread)
9569 (remote_target::remote_btrace_maybe_reopen): Pass down target.
9570 (remote_target::pid_to_exec_file)
9571 (remote_target::thread_handle_to_thread_info): Pass down target.
9572 (remote_target::async_wait_fd): New.
9573 * riscv-fbsd-tdep.c: Include "inferior.h".
9574 (riscv_fbsd_get_thread_local_address): Pass down target.
9575 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
9576 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
9577 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
9578 Adjust.
9579 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
9580 * solib-svr4.c (enable_break): Pass down target.
9581 * spu-multiarch.c (parse_spufs_run): Pass down target.
9582 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
9583 * target-delegates.c: Regenerate.
9584 * target.c (g_target_stack): Delete.
9585 (current_top_target): Return the current inferior's top target.
9586 (target_has_execution_1): Refer to the passed-in inferior's top
9587 target.
9588 (target_supports_terminal_ours): Check whether the initial
9589 inferior was already created.
9590 (decref_target): New.
9591 (target_stack::push): Incref/decref the target.
9592 (push_target, push_target, unpush_target): Adjust.
9593 (target_stack::unpush): Defref target.
9594 (target_is_pushed): Return bool. Adjust to refer to the current
9595 inferior's target stack.
9596 (dispose_inferior): Delete, and inline parts ...
9597 (target_preopen): ... here. Only dispose of the current inferior.
9598 (target_detach): Hold strong target reference while detaching.
9599 Pass target down.
9600 (target_thread_name): Add assertion.
9601 (target_resume): Pass down target.
9602 (target_ops::beneath, find_target_at): Adjust to refer to the
9603 current inferior's target stack.
9604 (get_dummy_target): New.
9605 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
9606 has a thread running.
9607 (initialize_targets): Rename to ...
9608 (_initialize_target): ... this.
9609 * target.h: Include "gdbsupport/refcounted-object.h".
9610 (struct target_ops): Inherit refcounted_object.
9611 (target_ops::shortname, target_ops::longname): Make const.
9612 (target_ops::async_wait_fd): New method.
9613 (decref_target): Declare.
9614 (struct target_ops_ref_policy): New.
9615 (target_ops_ref): New typedef.
9616 (get_dummy_target): Declare function.
9617 (target_is_pushed): Return bool.
9618 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
9619 (all_matching_threads_iterator::all_matching_threads_iterator):
9620 Handle filter target.
9621 * thread-iter.h (struct all_matching_threads_iterator, struct
9622 all_matching_threads_range, class all_non_exited_threads_range):
9623 Filter by target too. Remove explicit.
9624 * thread.c (threads_executing): Delete.
9625 (inferior_thread): Pass down current inferior.
9626 (clear_thread_inferior_resources): Pass down thread pointer
9627 instead of ptid_t.
9628 (add_thread_silent, add_thread_with_info, add_thread): Add
9629 process_stratum_target parameter. Use it for thread and inferior
9630 searches.
9631 (is_current_thread): New.
9632 (thread_info::deletable): Use it.
9633 (find_thread_ptid, thread_count, in_thread_list)
9634 (thread_change_ptid, set_resumed, set_running): New
9635 process_stratum_target parameter. Pass it down.
9636 (set_executing): New process_stratum_target parameter. Pass it
9637 down. Adjust reference to 'threads_executing'.
9638 (threads_are_executing): New process_stratum_target parameter.
9639 Adjust reference to 'threads_executing'.
9640 (set_stop_requested, finish_thread_state): New
9641 process_stratum_target parameter. Pass it down.
9642 (switch_to_thread): Also match inferior.
9643 (switch_to_thread): New process_stratum_target parameter. Pass it
9644 down.
9645 (update_threads_executing): Reimplement.
9646 * top.c (quit_force): Pop targets from all inferior.
9647 (gdb_init): Don't call initialize_targets.
9648 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
9649 Declare.
9650 (windows_add_thread, windows_delete_thread): Adjust.
9651 (get_windows_debug_event): Rename to ...
9652 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
9653 * tracefile-tfile.c (tfile_target_open): Pass down target.
9654 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
9655 Forward declare.
9656 (switch_to_thread): Add process_stratum_target parameter.
9657 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
9658 parameter. Use it.
9659 (mi_on_resume): Pass target down.
9660 * nat/fork-inferior.c (startup_inferior): Add
9661 process_stratum_target parameter. Pass it down.
9662 * nat/fork-inferior.h (startup_inferior): Add
9663 process_stratum_target parameter.
9664 * python/py-threadevent.c (py_get_event_thread): Pass target down.
9665
75c6c844
PA
96662020-01-10 Pedro Alves <palves@redhat.com>
9667
9668 * remote.c (remote_target::start_remote): Don't set inferior_ptid
9669 directly. Instead find the first thread in the thread list and
9670 use switch_to_thread.
9671
78f2c40a
PA
96722020-01-10 Pedro Alves <palves@redhat.com>
9673
9674 * remote.c (remote_target::remote_add_inferior): Don't bind a
9675 process to the current inferior if the current inferior is already
9676 bound to a process.
9677
e7af6c70
TBA
96782020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9679 Pedro Alves <palves@redhat.com>
9680
9681 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
9682 If no process is specified, return null_ptid instead of
9683 inferior_ptid.
9684 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
9685 TARGET_WAITKIND_SIGNALLED with no pid.
9686
31ba933e
PA
96872020-01-10 Pedro Alves <palves@redhat.com>
9688
9689 * remote.c (first_remote_resumed_thread): New.
9690 (remote_target::wait_as): Use it as default event_ptid instead of
9691 inferior_ptid.
9692
735fc2ca
PA
96932020-01-10 Pedro Alves <palves@redhat.com>
9694
9695 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
9696
c17e02e1
PA
96972020-01-10 Pedro Alves <palves@redhat.com>
9698
9699 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
9700 not -1.
9701
ab1ddbcf
PA
97022020-01-10 Pedro Alves <palves@redhat.com>
9703
9704 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
9705 ptid to get_last_target_status.
9706 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
9707 ptid to get_last_target_status.
9708 * infcmd.c (continue_command): Don't pass a target_waitstatus to
9709 get_last_target_status.
9710 (info_program_command): Don't pass a target_waitstatus to
9711 get_last_target_status.
9712 * infrun.c (init_wait_for_inferior): Use
9713 nullify_last_target_wait_ptid.
9714 (get_last_target_status): Handle nullptr arguments.
9715 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
9716 (print_stop_event): Don't pass a ptid to get_last_target_status.
9717 (normal_stop): Don't pass a ptid to get_last_target_status.
9718 * infrun.h (get_last_target_status, set_last_target_status): Move
9719 comments here and update.
9720 (nullify_last_target_wait_ptid): Declare.
9721 * linux-fork.c (fork_load_infrun_state): Remove local extern
9722 declaration of nullify_last_target_wait_ptid.
9723 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
9724 to get_last_target_status.
9725
f3f8ece4
PA
97262020-01-10 Pedro Alves <palves@redhat.com>
9727
9728 * gdbthread.h (scoped_restore_current_thread)
9729 <dont_restore, restore, m_dont_restore>: Declare.
9730 * thread.c (thread_alive): Add assertion. Return bool.
9731 (switch_to_thread_if_alive): New.
9732 (prune_threads): Switch inferior/thread.
9733 (print_thread_info_1): Switch thread before calling target methods.
9734 (scoped_restore_current_thread::restore): New, factored out from
9735 ...
9736 (scoped_restore_current_thread::~scoped_restore_current_thread):
9737 ... this.
9738 (scoped_restore_current_thread::scoped_restore_current_thread):
9739 Add assertion.
9740 (thread_apply_all_command, thread_select): Use
9741 switch_to_thread_if_alive.
9742 * infrun.c (proceed, restart_threads, handle_signal_stop)
9743 (switch_back_to_stepped_thread): Switch current thread before
9744 calling target methods.
9745
db2d40f7
PA
97462020-01-10 Pedro Alves <palves@redhat.com>
9747
9748 * inferior.c (switch_to_inferior_no_thread): New function,
9749 factored out from ...
9750 (inferior_command): ... here.
9751 * inferior.h (switch_to_inferior_no_thread): Declare.
9752 * mi/mi-main.c (run_one_inferior): Use
9753 switch_to_inferior_no_thread.
9754
bd420a2d
PA
97552020-01-10 Pedro Alves <palves@redhat.com>
9756
9757 * infcmd.c (kill_command): Remove dead code.
9758
ddf5db90
PA
97592020-01-10 Pedro Alves <palves@redhat.com>
9760
9761 * remote.c (remote_target::mourn_inferior): No longer check
9762 whether the target is running.
9763
5018ce90
PA
97642020-01-10 Pedro Alves <palves@redhat.com>
9765
9766 * corelow.c (core_target::has_execution): Change parameter type to
9767 inferior pointer.
9768 * inferior.c (number_of_live_inferiors): Use
9769 inferior::has_execution instead of target_has_execution_1.
9770 * inferior.h (inferior::has_execution): New.
9771 * linux-thread-db.c (thread_db_target::update_thread_list): Use
9772 inferior::has_execution instead of target_has_execution_1.
9773 * process-stratum-target.c
9774 (process_stratum_target::has_execution): Change parameter type to
9775 inferior pointer. Check the inferior's PID instead of
9776 inferior_ptid.
9777 * process-stratum-target.h
9778 (process_stratum_target::has_execution): Change parameter type to
9779 inferior pointer.
9780 * record-full.c (record_full_core_target::has_execution): Change
9781 parameter type to inferior pointer.
9782 * target.c (target_has_execution_1): Change parameter type to
9783 inferior pointer.
9784 (target_has_execution_current): Adjust.
9785 * target.h (target_ops::has_execution): Change parameter type to
9786 inferior pointer.
9787 (target_has_execution_1): Change parameter type to inferior
9788 pointer. Change return type to bool.
9789 * tracefile.h (tracefile_target::has_execution): Change parameter
9790 type to inferior pointer.
9791
74375d18
PA
97922020-01-10 Pedro Alves <palves@redhat.com>
9793
9794 * exceptions.c (print_flush): Remove current_top_target() check.
9795
acdf84a6
PA
97962020-01-10 Pedro Alves <palves@redhat.com>
9797
9798 * remote.c (show_remote_exec_file): Show the current inferior's
9799 exec-file instead of the command variable's value.
9800
ec506636
PA
98012020-01-10 Pedro Alves <palves@redhat.com>
9802
9803 * record-full.c (record_full_resume_ptid): New global.
9804 (record_full_target::resume): Set it.
9805 (record_full_wait_1): Use record_full_resume_ptid instead of
9806 inferior_ptid.
9807
873657b9
PA
98082020-01-10 Pedro Alves <palves@redhat.com>
9809
9810 * gdbthread.h (scoped_restore_current_thread)
9811 <dont_restore, restore, m_dont_restore>: Declare.
9812 * thread.c (thread_alive): Add assertion. Return bool.
9813 (switch_to_thread_if_alive): New.
9814 (prune_threads): Switch inferior/thread.
9815 (print_thread_info_1): Switch thread before calling target methods.
9816 (scoped_restore_current_thread::restore): New, factored out from
9817 ...
9818 (scoped_restore_current_thread::~scoped_restore_current_thread):
9819 ... this.
9820 (scoped_restore_current_thread::scoped_restore_current_thread):
9821 Add assertion.
9822 (thread_apply_all_command, thread_select): Use
9823 switch_to_thread_if_alive.
9824
7f0ae84c
GB
98252020-01-10 George Barrett <bob@bob131.so>
9826
9827 * stap-probe.c (stap_modify_semaphore): Don't check for null
9828 semaphores.
9829 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
9830 for null semaphores.
9831
f5a7c406
AB
98322020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
9833
9834 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
9835 all source windows, and maintain horizontal scroll status while
9836 doing so.
9837
9ae6bf64
TT
98382020-01-09 Tom Tromey <tom@tromey.com>
9839
9840 PR tui/18932:
9841 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
9842 update_source_window, not print_source_lines.
9843
b2efe70c
AB
98442020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
9845
9846 * tui/tui.c (tui_enable): Register tui hooks after calling
9847 tui_display_main.
9848
5f23a082
CB
98492020-01-09 Christian Biesinger <cbiesinger@google.com>
9850
9851 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
9852
3061113b
SM
98532020-01-08 Simon Marchi <simon.marchi@efficios.com>
9854
9855 * thread.c (print_thread_info_1): Fix indentation.
9856
57d75002
CB
98572020-01-09 Christian Biesinger <cbiesinger@google.com>
9858
9859 * symtab.c (general_symbol_info::compute_and_set_names): Move the
9860 unique_xmalloc_ptr outside the if to always free the demangled name.
9861
6a053cb1
TT
98622020-01-08 Tom Tromey <tromey@adacore.com>
9863
9864 * xcoffread.c (enter_line_range, read_xcoff_symtab)
9865 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
9866 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
9867 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
9868 Remove.
9869 (section_offsets): New typedef.
9870 * symtab.c (fixup_section, get_msymbol_address): Update.
9871 * symmisc.c (dump_msymbols): Update.
9872 * symfile.h (relative_addr_info_to_section_offsets)
9873 (symfile_map_offsets_to_segments): Update.
9874 * symfile.c (build_section_addr_info_from_objfile)
9875 (init_objfile_sect_indices): Update.
9876 (struct place_section_arg): Change type of "offsets".
9877 (place_section): Update.
9878 (relative_addr_info_to_section_offsets): Change type of
9879 "section_offsets". Remove "num_sections" parameter.
9880 (default_symfile_offsets, syms_from_objfile_1)
9881 (set_objfile_default_section_offset): Update.
9882 (reread_symbols): No need to preserve section offsets by hand.
9883 (symfile_map_offsets_to_segments): Change type of "offsets".
9884 * stap-probe.c (relocate_address): Update.
9885 * stabsread.h (process_one_symbol): Update.
9886 * solib-target.c (struct lm_info_target) <offsets>: Change type.
9887 (solib_target_relocate_section_addresses): Update.
9888 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
9889 Update.
9890 * solib-frv.c (frv_relocate_main_executable): Update.
9891 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
9892 * solib-aix.c (solib_aix_get_section_offsets): Change return
9893 type.
9894 (solib_aix_solib_create_inferior_hook): Update.
9895 * remote.c (remote_target::get_offsets): Update.
9896 * psymtab.c (find_pc_sect_psymtab): Update.
9897 * psympriv.h (struct partial_symbol) <address, text_low,
9898 text_high>: Update.
9899 * objfiles.h (obj_section_offset): Update.
9900 (struct objfile) <section_offsets>: Change type.
9901 <num_sections>: Remove.
9902 (objfile_relocate): Update.
9903 * objfiles.c (entry_point_address_query): Update
9904 (relocate_one_symbol): Change type of "section_offsets".
9905 (objfile_relocate1, objfile_relocate1): Change type of
9906 "new_offsets".
9907 (objfile_rebase1): Update.
9908 * mipsread.c (mipscoff_symfile_read): Update.
9909 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
9910 parameter.
9911 * mdebugread.c (parse_symbol): Change type of "section_offsets".
9912 (parse_external, psymtab_to_symtab_1): Update.
9913 * machoread.c (macho_symfile_offsets): Update.
9914 * ia64-tdep.c (ia64_find_unwind_table): Update.
9915 * hppa-tdep.c (read_unwind_info): Update.
9916 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
9917 * dwarf2read.c (create_addrmap_from_index)
9918 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9919 (process_psymtab_comp_unit_reader, add_partial_symbol)
9920 (add_partial_subprogram, process_full_comp_unit)
9921 (read_file_scope, read_func_scope, read_lexical_block_scope)
9922 (read_call_site_scope, dwarf2_rnglists_process)
9923 (dwarf2_ranges_process, dwarf2_ranges_read)
9924 (dwarf_decode_lines_1, var_decode_location, new_symbol)
9925 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
9926 Update.
9927 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
9928 Update.
9929 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
9930 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
9931 (process_one_symbol): Change type of "section_offsets".
9932 * ctfread.c (get_objfile_text_range): Update.
9933 * coffread.c (coff_symtab_read, enter_linenos)
9934 (process_coff_symbol): Update.
9935 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9936 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
9937
456e800a
TT
99382020-01-08 Tom Tromey <tromey@adacore.com>
9939
9940 * dwarf2read.c (parse_macro_definition): Use std::string.
9941 (parse_macro_definition): Likewise.
9942
6dfa2fc2
TT
99432020-01-08 Tom Tromey <tromey@adacore.com>
9944
9945 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
9946 (ATTR_ALLOC_CHUNK): Remove.
9947
421d1616
TT
99482020-01-08 Tom Tromey <tromey@adacore.com>
9949
9950 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
9951
43816ebc
TT
99522020-01-08 Tom Tromey <tromey@adacore.com>
9953
9954 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
9955 (dwarf2_compute_name, open_dwo_file): Likewise.
9956 (process_enumeration_scope): Use std::vector.
9957 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
9958 (partial_die_info::fixup, dwarf2_start_subfile)
9959 (guess_full_die_structure_name, dwarf2_name): Likewise.
9960 (determine_prefix): Update.
9961 (guess_full_die_structure_name): Make return type const.
9962 (partial_die_full_name): Return unique_xmalloc_ptr.
9963 (DW_FIELD_ALLOC_CHUNK): Remove.
9964
4212d509
TT
99652020-01-07 Tom Tromey <tromey@adacore.com>
9966
9967 PR build/24937:
9968 * stap-probe.c (class stap_static_probe_ops): Add constructor.
9969
06a6207a
JT
99702020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
9971
9972 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
9973
153d79c4
AB
99742020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
9975
9976 * stack.c (print_frame_info): Move disassemble_next_line code
9977 inside source_print block.
9978
66182876
EZ
99792020-01-06 Eli Zaretskii <eliz@gnu.org>
9980
9981 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
9982 gdb/signals.h, as we are now using native signal symbols.
9983
cbfa8581
SV
99842020-01-06 Shahab Vahedi <shahab@synopsys.com>
9985
9986 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
9987 overflow by an early check of content vs threshold.
aac66a4c 9988 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
9989 Likewise.
9990
3f602821
EZ
99912020-01-06 Eli Zaretskii <eliz@gnu.org>
9992
9993 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
9994
a08c904d
JT
99952020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
9996
9997 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
9998 export table if no section contains it's RVA.
9999
89a65580
EZ
100002020-01-06 Eli Zaretskii <eliz@gnu.org>
10001
10002 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
10003
8b7fcda2
HD
100042020-01-06 Hannes Domani <ssbssa@yahoo.de>
10005
10006 * source.c (print_source_lines_base): Set last_line_listed.
10007
a61b4f69
SV
100082020-01-06 Shahab Vahedi <shahab@synopsys.com>
10009
10010 * tui/tui-disasm.c: Remove trailing spaces.
10011
559e7e50
EZ
100122020-01-06 Eli Zaretskii <eliz@gnu.org>
10013 Pedro Alves <palves@redhat.com>
10014
10015 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
10016 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
10017 (windows_gdb_signal_to_target): New function, uses the above
10018 enumeration to convert GDB internal signal codes to equivalent
10019 Windows codes.
10020 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
10021 * windows-nat.c: Include "gdb_wait.h".
10022 (get_windows_debug_event): Extract the fatal exception from the
10023 exit status and convert to the equivalent Posix signal number.
10024 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
10025 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
10026 * gdbsupport/gdb_wait.c: New file, implements
10027 windows_status_to_termsig.
10028 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
10029 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
10030
f2302a34
AB
100312020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
10032
10033 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
10034 show_layout.
10035
6a5206eb
LM
100362020-01-05 Luis Machado <luis.machado@linaro.org>
10037
10038 * aarch64-linux-nat.c
10039 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
10040 and bfd_mach_aarch64.
10041
6ec1d75e
PW
100422020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10043
10044 * ui-file.c (stdio_file::can_emit_style_escape)
10045 (tee_file::can_emit_style_escape): Ensure style is used also on
10046 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
10047 to gdb_stdout.
10048 * main.c (set_gdb_data_directory): Use file style to output the
10049 warning that the given pathname is not a directory.
10050 * top.c (show_history_filename, gdb_safe_append_history)
10051 (show_gdb_datadir): Use file style.
10052
44f81a76
HD
100532020-01-03 Hannes Domani <ssbssa@yahoo.de>
10054
10055 * solib-target.c (struct lm_info_target):
10056 Change offsets to be a unique_xmalloc_ptr.
10057 (solib_target_relocate_section_addresses): Update.
10058
25057eb0
HD
100592020-01-03 Hannes Domani <ssbssa@yahoo.de>
10060
10061 * windows-nat.c (windows_clear_solib): Free so_list linked list.
10062
6e2118f5
BE
100632020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
10064
10065 * MAINTAINERS (Write After Approval): Add myself.
10066
8133c7dc
LM
100672020-01-02 Luis Machado <luis.machado@linaro.org>
10068
10069 * proc-service.c (get_ps_regcache): Remove reference to obsolete
10070 Cell BE architecture.
10071 * target.h (struct target_ops) <thread_architecture>: Likewise.
10072
48189bec
HD
100732020-01-01 Hannes Domani <ssbssa@yahoo.de>
10074
10075 * Makefile.in: Use INSTALL_PROGRAM_ENV.
10076
ead1063b
HD
100772020-01-01 Hannes Domani <ssbssa@yahoo.de>
10078
10079 * MAINTAINERS (Write After Approval): Add myself.
10080
e5d78223
JB
100812020-01-01 Joel Brobecker <brobecker@adacore.com>
10082
10083 * gdbarch.sh: Update copyright year range of generated files.
10084
b811d2c2
JB
100852020-01-01 Joel Brobecker <brobecker@adacore.com>
10086
10087 Update copyright year range in all GDB files.
10088
5f4def5c
JB
100892020-01-01 Joel Brobecker <brobecker@adacore.com>
10090
10091 * copyright.py: Convert to Python 3.
10092
51fd4002
JB
100932020-01-01 Joel Brobecker <brobecker@adacore.com>
10094
10095 * copyright.py: Adapt after move of gnulib directory from gdb
10096 directory to toplevel directory.
10097
5fb651f2
JB
100982020-01-01 Joel Brobecker <brobecker@adacore.com>
10099
10100 * copyright.py (main): Exit if run from the wrong directory.
10101
5dd8bf88
JB
101022020-01-01 Joel Brobecker <brobecker@adacore.com>
10103
10104 * top.c (print_gdb_version): Change copyright year to 2020.
10105
9f71dacb 101062020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 10107
9f71dacb 10108 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 10109
9f71dacb 10110For older changes see ChangeLog-2019.
c906108c
SS
10111\f
10112Local Variables:
10113mode: change-log
10114left-margin: 8
10115fill-column: 74
10116version-control: never
57da7796 10117coding: utf-8
c906108c 10118End:
This page took 3.222997 seconds and 4 git commands to generate.