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