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