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