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