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