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