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