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