Introduce ada_value_print_inner
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-03-13 Tom Tromey <tom@tromey.com>
2
3 * ada-valprint.c (ada_value_print_inner): New function.
4 * ada-lang.h (ada_value_print_inner): Declare.
5 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
6
7 2020-03-13 Tom Tromey <tom@tromey.com>
8
9 * f-valprint.c (f_value_print_innner): New function.
10 * f-lang.h (f_value_print_innner): Declare.
11 * f-lang.c (f_language_defn): Use f_value_print_innner.
12
13 2020-03-13 Tom Tromey <tom@tromey.com>
14
15 * p-valprint.c (pascal_value_print_inner): New function.
16 * p-lang.h (pascal_value_print_inner): Declare.
17 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
18
19 2020-03-13 Tom Tromey <tom@tromey.com>
20
21 * m2-valprint.c (m2_value_print_inner): New function.
22 * m2-lang.h (m2_value_print_inner): Declare.
23 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
24
25 2020-03-13 Tom Tromey <tom@tromey.com>
26
27 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
28 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
29 * c-valprint.c (c_value_print_inner): New function.
30 * c-lang.h (c_value_print_inner): Declare.
31 * c-lang.c (c_language_defn, cplus_language_defn)
32 (asm_language_defn, minimal_language_defn): Use
33 c_value_print_inner.
34
35 2020-03-13 Tom Tromey <tom@tromey.com>
36
37 * p-valprint.c (pascal_object_print_value_fields): Now static.
38 * p-lang.h (pascal_object_print_value_fields): Don't declare.
39
40 2020-03-13 Tom Tromey <tom@tromey.com>
41
42 * c-valprint.c (c_val_print_array): Simplify.
43
44 2020-03-13 Tom Tromey <tom@tromey.com>
45
46 * valprint.c (value_print_array_elements): New function.
47 * valprint.h (value_print_array_elements): Declare.
48
49 2020-03-13 Tom Tromey <tom@tromey.com>
50
51 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
52 * mips-tdep.c (mips_print_register): Use
53 value_print_scalar_formatted.
54
55 2020-03-13 Tom Tromey <tom@tromey.com>
56
57 * valprint.h (value_print_scalar_formatted): Declare.
58 * valprint.c (value_print_scalar_formatted): New function.
59
60 2020-03-13 Tom Tromey <tom@tromey.com>
61
62 * valprint.h (generic_value_print): Declare.
63 * valprint.c (generic_value_print): New function.
64
65 2020-03-13 Tom Tromey <tom@tromey.com>
66
67 * valprint.c (do_val_print): Call la_value_print_inner, if
68 available.
69 * rust-lang.c (rust_language_defn): Update.
70 * p-lang.c (pascal_language_defn): Update.
71 * opencl-lang.c (opencl_language_defn): Update.
72 * objc-lang.c (objc_language_defn): Update.
73 * m2-lang.c (m2_language_defn): Update.
74 * language.h (struct language_defn) <la_value_print_inner>: New
75 member.
76 * language.c (unknown_language_defn, auto_language_defn): Update.
77 * go-lang.c (go_language_defn): Update.
78 * f-lang.c (f_language_defn): Update.
79 * d-lang.c (d_language_defn): Update.
80 * c-lang.c (c_language_defn, cplus_language_defn)
81 (asm_language_defn, minimal_language_defn): Update.
82 * ada-lang.c (ada_language_defn): Update.
83
84 2020-03-13 Tom Tromey <tom@tromey.com>
85
86 * c-valprint.c (c_value_print): Use common_val_print.
87
88 2020-03-13 Tom Tromey <tom@tromey.com>
89
90 * cp-valprint.c (cp_print_static_field): Use common_val_print.
91
92 2020-03-13 Tom Tromey <tom@tromey.com>
93
94 * f-valprint.c (f77_print_array_1, f_val_print): Use
95 common_val_print.
96
97 2020-03-13 Tom Tromey <tom@tromey.com>
98
99 * riscv-tdep.c (riscv_print_one_register_info): Use
100 common_val_print.
101
102 2020-03-13 Tom Tromey <tom@tromey.com>
103
104 * mi/mi-main.c (output_register): Use common_val_print.
105
106 2020-03-13 Tom Tromey <tom@tromey.com>
107
108 * infcmd.c (default_print_one_register_info): Use
109 common_val_print.
110
111 2020-03-13 Tom Tromey <tom@tromey.com>
112
113 * valprint.h (common_val_print_checked): Declare.
114 * valprint.c (common_val_print_checked): New function.
115 * stack.c (print_frame_arg): Use common_val_print_checked.
116
117 2020-03-13 Tom Tromey <tom@tromey.com>
118
119 * valprint.c (do_val_print): New function, from val_print.
120 (val_print): Use do_val_print.
121 (common_val_print): Use do_val_print.
122
123 2020-03-13 Tom Tromey <tom@tromey.com>
124
125 * valprint.c (value_print): Use scoped_value_mark.
126
127 2020-03-13 Tom de Vries <tdevries@suse.de>
128
129 PR symtab/25646
130 * psymtab.c (partial_symtab::partial_symtab): Don't set
131 globals_offset and statics_offset. Push element onto
132 current_global_psymbols and current_static_psymbols stacks.
133 (concat): New function.
134 (end_psymtab_common): Set globals_offset and statics_offset. Pop
135 element from current_global_psymbols and current_static_psymbols
136 stacks. Concat popped elements to global_psymbols and
137 static_symbols.
138 (add_psymbol_to_list): Use current_global_psymbols and
139 current_static_psymbols stacks.
140 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
141 current_static_psymbols fields.
142
143 2020-03-12 Christian Biesinger <cbiesinger@google.com>
144
145 * corelow.c (sniff_core_bfd): Remove.
146 (class core_target) <m_core_vec>: Remove.
147 (core_target::core_target): Update.
148 (core_file_fns): Remove.
149 (deprecated_add_core_fns): Remove.
150 (default_core_sniffer): Remove.
151 (sniff_core_bfd): Remove.
152 (default_check_format): Remove.
153 (gdb_check_format): Remove.
154 (core_target_open): Update.
155 (core_target::get_core_register_section): Update.
156 (get_core_registers_cb): Update.
157 (core_target::fetch_registers): Update.
158 * gdbcore.h (struct core_fns): Remove.
159 (deprecated_add_core_fns): Remove.
160 (default_core_sniffer): Remove.
161 (default_check_format): Remove.
162
163 2020-03-12 Tom Tromey <tom@tromey.com>
164
165 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
166 CORE_ADDR.
167 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
168
169 2020-03-12 Tom Tromey <tom@tromey.com>
170
171 * remote.c (remote_target::download_tracepoint)
172 (remote_target::enable_tracepoint)
173 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
174 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
175 sprintf_vma.
176
177 2020-03-12 Tom Tromey <tom@tromey.com>
178
179 * symfile-mem.c: Update CORE_ADDR size assert.
180
181 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
182
183 * selftest.m4: Move to gdbsupport/.
184 * acinclude.m4: Update path to selftest.m4.
185
186 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
187
188 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
189 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
190 gdbarch-selfselftests.c and selftest-arch.c.
191 (SUBDIR_UNITTESTS_OBS): Rename to...
192 (SELFTESTS_OBS): ... this.
193 (COMMON_SFILES): Remove disasm-selftests.c and
194 gdbarch-selftests.c.
195 * configure.ac: Don't add selftest-arch.{c,o} to
196 CONFIG_{SRCS,OBS}.
197 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
198 preprocessor conditions.
199
200 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
201
202 * configure.ac: Don't source bfd/development.sh.
203 * selftest.m4: Modify comment.
204 * configure: Re-generate.
205
206 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
207
208 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
209 not "true" or "false".
210 * configure: Re-generate.
211
212 2020-03-12 Christian Biesinger <cbiesinger@google.com>
213
214 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
215 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
216 renamed to arm_nbsd_supply_gregset.
217 (fetch_register): Update to call arm_nbsd_supply_gregset.
218 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
219 (arm_netbsd_nat_target::fetch_registers): Update.
220 (fetch_elfcore_registers): Removed.
221 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
222 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
223 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
224 not require NetBSD system headers.
225 (arm_nbsd_regset): New struct.
226 (arm_nbsd_iterate_over_regset_sections): New function.
227 (arm_netbsd_init_abi_common): Updated to call
228 set_gdbarch_iterate_over_regset_sections.
229 * arm-nbsd-tdep.h: New file.
230
231 2020-03-11 Kevin Buettner <kevinb@redhat.com>
232
233 * symtab.c (find_pc_sect_line): Add check which prevents infinite
234 recursion.
235
236 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
237
238 * configure: Re-generate.
239
240 2020-03-11 Tom Tromey <tromey@adacore.com>
241
242 * ada-typeprint.c (print_choices): Fix comment.
243
244 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
245
246 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
247 previous item in the list, when the list has no items.
248
249 2020-03-11 Tom de Vries <tdevries@suse.de>
250
251 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
252 PROP_LOCLIST handling code.
253
254 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
255
256 * buildsym-legacy.c (record_line): Pass extra parameter to
257 record_line.
258 * buildsym.c (buildsym_compunit::record_line): Take an extra
259 parameter, reduce duplication in the line table, and record the
260 is_stmt flag in the line table.
261 * buildsym.h (buildsym_compunit::record_line): Add extra
262 parameter.
263 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
264 non-statement lines.
265 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
266 this to the symtab builder.
267 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
268 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
269 through to dwarf_record_line_1.
270 * infrun.c (process_event_stop_test): When stepping, don't stop at
271 a non-statement instruction, and only refresh the step info when
272 we land in the middle of a line's range. Also add an extra
273 comment.
274 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
275 field.
276 * record-btrace.c (btrace_find_line_range): Only record lines
277 marked as is-statement.
278 * stack.c (frame_show_address): Show the frame address if we are
279 in a non-statement sal.
280 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
281 (maintenance_print_one_line_table): Print a header for the is_stmt
282 column, and include is_stmt information in the output.
283 * symtab.c (find_pc_sect_line): Find lines marked as statements in
284 preference to non-statements.
285 (find_pcs_for_symtab_line): Prefer is-statement entries.
286 (find_line_common): Likewise.
287 * symtab.h (struct linetable_entry): Add is_stmt field.
288 (struct symtab_and_line): Likewise.
289 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
290 arranging the line table.
291
292 2020-03-07 Tom de Vries <tdevries@suse.de>
293
294 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
295 DIE.
296
297 2020-03-07 Tom Tromey <tom@tromey.com>
298
299 * valops.c (value_literal_complex): Remove obsolete comment.
300 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
301 comment.
302
303 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
304
305 * infrun.h: Forward-declare thread_info.
306 (set_step_info): Add thread_info parameter, add doc.
307 * infrun.c (set_step_info): Add thread_info parameter, move doc
308 to header.
309 * infrun.c (process_event_stop_test): Pass thread to
310 set_step_info call.
311 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
312 set_step_info.
313 (prepare_one_step): Add thread_info parameter, pass it to
314 set_step_frame and prepare_one_step (recursive) call.
315 (step_1): Pass thread to prepare_one_step call.
316 (step_command_fsm::should_stop): Pass thread to
317 prepare_one_step.
318 (until_next_fsm): Pass thread to set_step_frame call.
319 (finish_command): Pass thread to set_step_info call.
320
321 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
322
323 * windows-tdep.c (windows_solib_create_inferior_hook):
324 Check if inferior is running.
325
326 2020-03-06 Tom de Vries <tdevries@suse.de>
327
328 * NEWS: Fix "the the".
329 * ctfread.c: Same.
330
331 2020-03-06 Tom de Vries <tdevries@suse.de>
332
333 * psymtab.c (psymtab_to_symtab): Don't print "done.".
334
335 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
336
337 * .dir-locals.el: Add a comment referencing the other copies of
338 this file.
339
340 2020-03-05 John Baldwin <jhb@FreeBSD.org>
341
342 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
343 psargs.
344
345 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
346
347 * .gitattributes: New file.
348
349 2020-03-04 Tom Tromey <tom@tromey.com>
350
351 * symmisc.c (print_symbol_bcache_statistics)
352 (print_objfile_statistics): Update.
353 * symfile.c (allocate_symtab): Use intern.
354 * psymtab.c (partial_symtab::partial_symtab): Use intern.
355 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
356 macro_cache>: Remove.
357 <string_cache>: New member.
358 (struct objfile) <intern>: New methods.
359 * elfread.c (elf_symtab_read): Use intern.
360 * dwarf2/read.c (fixup_go_packaging): Intern package name.
361 (dwarf2_compute_name, dwarf2_physname)
362 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
363 names.
364 (guess_partial_die_structure_name): Update.
365 (partial_die_info::fixup): Intern name.
366 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
367 name.
368 (dwarf2_name): Intern name. Update.
369 * buildsym.c (buildsym_compunit::get_macro_table): Use
370 string_cache.
371
372 2020-03-04 Tom Tromey <tom@tromey.com>
373
374 * jit.c (bfd_open_from_target_memory): Make "target" const.
375 * corefile.c (gnutarget): Now const.
376 * gdbcore.h (gnutarget): Now const.
377
378 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
379
380 * NEWS: Mention support for WOW64 processes.
381 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
382 (amd64_windows_segment_register_p): Remove static.
383 (_initialize_amd64_windows_nat): Update.
384 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
385 * i386-windows-nat.c (context_offset): Update.
386 (i386_mappings): Rename and remove static.
387 (i386_windows_segment_register_p): Remove static.
388 (_initialize_i386_windows_nat): Update.
389 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
390 (STATUS_WX86_SINGLE_STEP): New macro.
391 (EnumProcessModulesEx): New macro.
392 (Wow64SuspendThread): New macro.
393 (Wow64GetThreadContext): New macro.
394 (Wow64SetThreadContext): New macro.
395 (Wow64GetThreadSelectorEntry): New macro.
396 (windows_set_context_register_offsets): Add static.
397 (windows_set_segment_register_p): Likewise.
398 (windows_add_thread): Adapt for WOW64 processes.
399 (windows_fetch_one_register): Likewise.
400 (windows_nat_target::fetch_registers): Likewise.
401 (windows_store_one_register): Likewise.
402 (display_selector): Likewise.
403 (display_selectors): Likewise.
404 (handle_exception): Likewise.
405 (windows_continue): Likewise.
406 (windows_nat_target::resume): Likewise.
407 (windows_add_all_dlls): Likewise.
408 (do_initial_windows_stuff): Likewise.
409 (windows_nat_target::attach): Likewise.
410 (windows_get_exec_module_filename): Likewise.
411 (windows_nat_target::create_inferior): Likewise.
412 (windows_xfer_siginfo): Likewise.
413 (_initialize_loadable): Initialize Wow64SuspendThread,
414 Wow64GetThreadContext, Wow64SetThreadContext,
415 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
416 * windows-nat.h (windows_set_context_register_offsets):
417 Remove declaration.
418 (windows_set_segment_register_p): Likewise.
419 (i386_windows_segment_register_p): Add declaration.
420 (amd64_windows_segment_register_p): Likewise.
421
422 2020-03-04 Luis Machado <luis.machado@linaro.org>
423
424 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
425 in "info registers" for AArch64/ARM.
426
427 The change caused "info registers" to not print GPR's.
428
429 gdb/ChangeLog:
430
431 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
432
433 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
434 when reg->group is empty and reggroup is not.
435
436 2020-03-03 Tom Tromey <tromey@adacore.com>
437
438 * dwarf2/frame.c (struct dwarf2_frame_cache)
439 <checked_tailcall_bottom, entry_cfa_sp_offset,
440 entry_cfa_sp_offset_p>: Remove members.
441 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
442 (dwarf2_frame_prev_register): Don't call
443 dwarf2_tailcall_sniffer_first.
444 (dwarf2_append_unwinders): Don't append tailcall unwinder.
445 * frame-unwind.c (add_unwinder): New fuction.
446 (frame_unwind_init): Use it. Add tailcall unwinder.
447
448 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
449 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
450
451 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
452 value should be printed as true.
453
454 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
455
456 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
457 (windows_init_abi): Set and use windows_so_ops.
458
459 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
460
461 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
462 when verifying if dealing with a convenience variable.
463
464 2020-03-03 Luis Machado <luis.machado@linaro.org>
465
466 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
467
468 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
469
470 * infrun.c (gdbarch_supports_displaced_stepping): New.
471 (use_displaced_stepping): Break up conditions in smaller pieces.
472 Use gdbarch_supports_displaced_stepping.
473 (displaced_step_prepare_throw): Use
474 gdbarch_supports_displaced_stepping.
475
476 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
477
478 * NEWS: Mention new behaviour of the history filename.
479 * top.c (write_history_p): Add comment.
480 (show_write_history_p): Add header comment, give a different
481 message when history writing is on, but the history filename is
482 empty.
483 (history_filename): Add comment.
484 (history_filename_empty): New function.
485 (show_history_filename): Add header comment, give a different
486 message when the filename is empty.
487 (init_history): Compare history_filename against nullptr, and only
488 read history if the filename is not empty.
489 (set_history_filename): Add header comment, and only make
490 non-empty filenames absolute.
491 (init_main): Make the filename argument to 'set history filename'
492 optional.
493
494 2020-03-02 Christian Biesinger <cbiesinger@google.com>
495
496 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
497 (arm_supply_vfpregset): ...this, and update to use VFP registers.
498 (fetch_fp_register): Update.
499 (fetch_fp_regs): Update.
500 (store_fp_register): Update.
501 (store_fp_regs): Update.
502 (arm_netbsd_nat_target::read_description): New function.
503 (fetch_elfcore_registers): Update.
504
505 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
506
507 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
508 general_thread if the stop reply is missing a thread-id.
509 (remote_target::process_stop_reply): Use the first non-exited
510 thread if the target didn't pass a thread-id.
511 * infrun.c (do_target_wait): Move call to
512 switch_to_inferior_no_thread to ....
513 (do_target_wait_1): ... here.
514
515 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
516
517 * debuginfod-support.c: Include defs.h first.
518
519 2020-02-28 Tom de Vries <tdevries@suse.de>
520
521 * symfile.c (set_initial_language): Use default language for lookup.
522
523 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
524
525 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
526 reader variable, pass `this` to read_cutu_die_from_dwo.
527
528 2020-02-27 Aaron Merey <amerey@redhat.com>
529
530 * source.c (open_source_file): Check for nullptr when computing
531 srcpath.
532
533 2020-02-27 Tom Tromey <tromey@adacore.com>
534
535 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
536 member.
537 (dwarf2_add_field): Don't update nfields.
538 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
539
540 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
541
542 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
543 abs.
544
545 2020-02-26 Tom Tromey <tom@tromey.com>
546
547 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
548 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
549 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
550 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
551 per_cu_data.
552
553 2020-02-26 Tom Tromey <tom@tromey.com>
554
555 * dwarf2/index-write.c (psym_index_map): Change type.
556 (add_address_entry_worker, write_one_signatured_type)
557 (recursively_count_psymbols, recursively_write_psymbols)
558 (class debug_names, psyms_seen_size, write_gdbindex)
559 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
560
561 2020-02-26 Aaron Merey <amerey@redhat.com>
562
563 * Makefile.in: Handle optional debuginfod support.
564 * NEWS: Update.
565 * README: Add --with-debuginfod summary.
566 * config.in: Regenerate.
567 * configure: Regenerate.
568 * configure.ac: Handle optional debuginfod support.
569 * debuginfod-support.c: debuginfod helper functions.
570 * debuginfod-support.h: Ditto.
571 * doc/gdb.texinfo: Add --with-debuginfod to configure options
572 summary.
573 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
574 when a dwz file cannot be found.
575 * elfread.c (elf_symfile_read): Query debuginfod servers when a
576 debuginfo file cannot be found.
577 * source.c (open_source_file): Query debuginfod servers when a
578 source file cannot be found.
579 * top.c (print_gdb_configuration): Include
580 --{with,without}-debuginfod in the output.
581
582 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
583
584 * thread.c (thr_try_catch_cmd): Print thread name.
585
586 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
587
588 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
589 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
590 dwarf2_fetch_die_type_sect_off): Move to...
591 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
592 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
593 dwarf2_fetch_die_type_sect_off): ... here.
594 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
595 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
596 dwarf2_fetch_die_type_sect_off): Move doc to header file.
597
598 2020-02-26 Tom de Vries <tdevries@suse.de>
599
600 PR gdb/25603
601 * symfile.c (set_initial_language): Exit-early if
602 language_mode == language_mode_manual.
603
604 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
605
606 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
607 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
608 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
609
610 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
611
612 * gdbtypes.c (create_array_type_with_stride): Handle negative
613 array strides.
614 * valarith.c (value_subscripted_rvalue): Likewise.
615
616 2020-02-25 Luis Machado <luis.machado@linaro.org>
617
618 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
619
620 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
621
622 * loc.h (dwarf2_get_die_type): Move to...
623 * read.h (dwarf2_get_die_type): ... here.
624 * read.c (dwarf2_get_die_type): Move doc to header.
625
626 2020-02-25 Joel Brobecker <brobecker@adacore.com>
627
628 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
629 'gnulib/Makefile.in' to the list.
630
631 2020-02-24 Tom Tromey <tom@tromey.com>
632
633 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
634 Remove.
635 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
636 XOBNEWVEC.
637
638 2020-02-24 Tom Tromey <tom@tromey.com>
639
640 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
641 New method.
642 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
643 (dw2_do_instantiate_symtab, dw2_get_file_names)
644 (build_type_psymtab_dependencies, load_full_type_unit): Update.
645
646 2020-02-24 Tom Tromey <tom@tromey.com>
647
648 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
649 make_scoped_restore.
650 (dwarf2_psymtab::read_symtab): Don't clear
651 reading_partial_symbols.
652
653 2020-02-24 Tom de Vries <tdevries@suse.de>
654
655 PR gdb/25592
656 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
657
658 2020-02-24 Tom de Vries <tdevries@suse.de>
659
660 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
661 commands layout next/prev/regs.
662
663 2020-02-22 Tom Tromey <tom@tromey.com>
664
665 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
666 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
667
668 2020-02-22 Tom Tromey <tom@tromey.com>
669
670 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
671
672 2020-02-22 Tom Tromey <tom@tromey.com>
673
674 * tui/tui-win.c (_initialize_tui_win): Add usage text.
675 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
676 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
677 * tui/tui.c (_initialize_tui): Add usage text.
678
679 2020-02-22 Tom Tromey <tom@tromey.com>
680
681 * tui/tui-win.c (tui_set_focus_command)
682 (tui_set_win_height_command): Use error_no_arg.
683 (_initialize_tui_win): Update help text.
684 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
685
686 2020-02-22 Tom Tromey <tom@tromey.com>
687
688 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
689 * tui/tui-disasm.h (struct tui_disasm_window)
690 <display_start_addr>: Declare.
691 * tui/tui-source.h (struct tui_source_window)
692 <display_start_addr>: Declare.
693 * tui/tui-winsource.h (struct tui_source_window_base)
694 <show_source_line, display_start_addr>: New methods.
695 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
696 Rename and move to protected section.
697 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
698 (tui_source_window_base::do_erase_source_content): Update.
699 (tui_source_window_base::show_source_line): Now a method.
700 (tui_source_window_base::show_source_content)
701 (tui_source_window_base::tui_source_window_base)
702 (tui_source_window_base::rerender)
703 (tui_source_window_base::refill)
704 (tui_source_window_base::do_scroll_horizontal)
705 (tui_source_window_base::set_is_exec_point_at)
706 (tui_source_window_base::update_breakpoint_info)
707 (tui_source_window_base::update_exec_info): Update.
708 * tui/tui-source.c (tui_source_window::set_contents)
709 (tui_source_window::showing_source_p)
710 (tui_source_window::do_scroll_vertical)
711 (tui_source_window::location_matches_p)
712 (tui_source_window::line_is_displayed): Update.
713 (tui_source_window::display_start_addr): New method.
714 * tui/tui-disasm.c (tui_disasm_window::set_contents)
715 (tui_disasm_window::do_scroll_vertical)
716 (tui_disasm_window::location_matches_p): Update.
717 (tui_disasm_window::display_start_addr): New method.
718
719 2020-02-22 Tom Tromey <tom@tromey.com>
720
721 * NEWS: Add entry for gdb.register_window_type.
722 * tui/tui-layout.h (window_factory): New typedef.
723 (tui_register_window): Declare.
724 * tui/tui-layout.c (saved_tui_windows): New global.
725 (tui_apply_current_layout): Use it.
726 (tui_register_window): New function.
727 * python/python.c (do_start_initialization): Call
728 gdbpy_initialize_tui.
729 (python_GdbMethods): Add "register_window_type" function.
730 * python/python-internal.h (gdbpy_register_tui_window)
731 (gdbpy_initialize_tui): Declare.
732 * python/py-tui.c: New file.
733 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
734
735 2020-02-22 Tom Tromey <tom@tromey.com>
736
737 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
738
739 2020-02-22 Tom Tromey <tom@tromey.com>
740
741 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
742 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
743 * tui/tui-data.c (tui_set_win_with_focus): Remove.
744 (tui_set_win_focus_to): Move from tui-win.c.
745
746 2020-02-22 Tom Tromey <tom@tromey.com>
747
748 * tui/tui-layout.c (make_standard_window, get_locator_window): New
749 functions.
750 (known_window_types): New global.
751 (tui_get_window_by_name): Reimplement.
752 (initialize_known_windows): New function.
753 (validate_window_name): Rewrite.
754 (_initialize_tui_layout): Call initialize_known_windows.
755
756 2020-02-22 Tom Tromey <tom@tromey.com>
757
758 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
759 Remove constants.
760 * tui/tui-winsource.h (struct tui_source_window_base)
761 <tui_source_window_base>: Remove parameter.
762 * tui/tui-winsource.c
763 (tui_source_window_base::tui_source_window_base): Remove
764 parameter.
765 (tui_source_window_base::refill): Update.
766 * tui/tui-stack.h (struct tui_locator_window)
767 <tui_locator_window>: Update.
768 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
769 Default the constructor.
770 * tui/tui-regs.h (struct tui_data_item_window)
771 <tui_data_item_window>: Default the constructor.
772 (struct tui_data_window) <tui_data_window>: Likewise.
773 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
774 Default the constructor.
775 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
776 Default the constructor.
777 <type>: Remove.
778 (struct tui_win_info) <tui_win_info>: Default the constructor.
779 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
780 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
781 Default the constructor.
782
783 2020-02-22 Tom Tromey <tom@tromey.com>
784
785 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
786 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
787 * tui/tui-win.c (tui_resize_all): Don't call
788 tui_delete_invisible_windows.
789 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
790 done.
791 (tui_set_layout): Update.
792 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
793 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
794 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
795
796 2020-02-22 Tom Tromey <tom@tromey.com>
797
798 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
799 correctly.
800
801 2020-02-22 Tom Tromey <tom@tromey.com>
802
803 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
804
805 2020-02-22 Tom Tromey <tom@tromey.com>
806
807 * tui/tui-winsource.h (struct tui_source_window_iterator)
808 <inner_iterator>: New etytypedef.
809 <tui_source_window_iterator>: Take "end" parameter.
810 <tui_source_window_iterator>: Take iterator.
811 <operator*, advance>: Update.
812 <m_iter>: Change type.
813 <m_end>: New field.
814 (struct tui_source_windows) <begin, end>: Update.
815 * tui/tui-layout.c (tui_windows): New global.
816 (tui_apply_current_layout): Clear tui_windows.
817 (tui_layout_window::apply): Update tui_windows.
818 * tui/tui-data.h (tui_windows): Declare.
819 (all_tui_windows): Now inline function.
820 (class tui_window_iterator, struct all_tui_windows): Remove.
821
822 2020-02-22 Tom Tromey <tom@tromey.com>
823
824 PR tui/17850:
825 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
826 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
827 "height" argument.
828 (class tui_layout_window) <get_sizes>: Likewise.
829 (class tui_layout_split) <tui_layout_split>: Add "vertical"
830 argument.
831 <get_sizes>: Add "height" argument.
832 <m_vertical>: New field.
833 * tui/tui-layout.c (tui_layout_split::clone): Update.
834 (tui_layout_split::get_sizes): Add "height" argument.
835 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
836 (tui_new_layout_command): Parse "-horizontal".
837 (_initialize_tui_layout): Update help string.
838 (tui_layout_split::specification): Add "-horizontal" when needed.
839 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
840 argument.
841 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
842 New methods.
843
844 2020-02-22 Tom Tromey <tom@tromey.com>
845
846 * tui/tui-layout.h (enum tui_adjust_result): New.
847 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
848 (class tui_layout_window) <adjust_size>: Return
849 tui_adjust_result. Rewrite.
850 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
851 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
852
853 2020-02-22 Tom Tromey <tom@tromey.com>
854
855 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
856 parameter and return types.
857 (class tui_layout_base) <specification>: Add "depth".
858 (class tui_layout_window) <specification>: Add "depth".
859 (class tui_layout_split) <specification>: Add "depth".
860 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
861 and return types.
862 (tui_new_layout_command): Parse sub-layouts.
863 (_initialize_tui_layout): Update help string.
864 (tui_layout_window::specification): Add "depth".
865 (add_layout_command): Update.
866
867 2020-02-22 Tom Tromey <tom@tromey.com>
868
869 * NEWS: Add "tui new-layout" item.
870 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
871 Add new-layout command to help text.
872 (validate_window_name): New function.
873 (tui_new_layout_command): New function.
874 (_initialize_tui_layout): Register "new-layout".
875 (tui_layout_window::specification): New method.
876 (tui_layout_window::specification): New method.
877 * tui/tui-layout.h (class tui_layout_base) <specification>: New
878 method.
879 (class tui_layout_window) <specification>: New method.
880 (class tui_layout_split) <specification>: New method.
881
882 2020-02-22 Tom Tromey <tom@tromey.com>
883
884 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
885 * tui/tui-win.c (window_name_completer): Update comment.
886 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
887 Declare method.
888 (class tui_layout_window) <replace_window>: Likewise.
889 (class tui_layout_split) <replace_window>: Likewise.
890 (tui_set_layout): Don't declare.
891 (tui_set_initial_layout): Declare function.
892 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
893 (asm_regs_layout): New globals.
894 (tui_current_layout, show_layout): Remove.
895 (tui_set_layout, tui_add_win_to_layout): Rewrite.
896 (find_layout, tui_apply_layout): New function.
897 (layout_completer): Remove.
898 (tui_next_layout): Reimplement.
899 (tui_next_layout_command): New function.
900 (tui_set_initial_layout, tui_prev_layout_command): New functions.
901 (tui_regs_layout): Reimplement.
902 (tui_regs_layout_command): New function.
903 (extract_display_start_addr): Rewrite.
904 (next_layout, prev_layout): Remove.
905 (tui_layout_window::replace_window): New method.
906 (tui_layout_split::replace_window): New method.
907 (destroy_layout): New function.
908 (layout_list): New global.
909 (add_layout_command): New function.
910 (initialize_layouts): Update.
911 (tui_layout_command): New function.
912 (_initialize_tui_layout): Install "layout" commands.
913 * tui/tui-data.h (enum tui_layout_type): Remove.
914 (tui_current_layout): Don't declare.
915
916 2020-02-22 Tom Tromey <tom@tromey.com>
917
918 * tui/tui-regs.c (tui_reg_layout): Remove.
919 (tui_reg_command): Use tui_regs_layout.
920 * tui/tui-layout.h (tui_reg_command): Declare.
921 * tui/tui-layout.c (tui_reg_command): New function.
922
923 2020-02-22 Tom Tromey <tom@tromey.com>
924
925 * tui/tui.c (tui_rl_delete_other_windows): Call
926 tui_remove_some_windows.
927 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
928 Declare method.
929 (class tui_layout_window) <remove_windows>: New method.
930 (class tui_layout_split) <remove_windows>: Declare.
931 (tui_remove_some_windows): Declare.
932 * tui/tui-layout.c (tui_remove_some_windows): New function.
933 (tui_layout_split::remove_windows): New method.
934
935 2020-02-22 Tom Tromey <tom@tromey.com>
936
937 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
938 * tui/tui-layout.h (tui_next_layout): Declare.
939 * tui/tui-layout.c (tui_next_layout): New function.
940
941 2020-02-22 Tom Tromey <tom@tromey.com>
942
943 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
944 correct coordinates.
945
946 2020-02-22 Tom Tromey <tom@tromey.com>
947
948 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
949 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
950 DATA_WIN case.
951
952 2020-02-22 Tom Tromey <tom@tromey.com>
953
954 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
955 TUI_DISASM_WIN, not tui_win_list.
956
957 2020-02-22 Tom Tromey <tom@tromey.com>
958
959 * valprint.c (generic_val_print_enum_1)
960 (val_print_type_code_flags): Style member names.
961 * rust-lang.c (val_print_struct, rust_print_enum)
962 (rust_print_struct_def, rust_internal_print_type): Style member
963 names.
964 * p-valprint.c (pascal_object_print_value_fields): Style member
965 names. Only call fprintf_symbol_filtered for static members.
966 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
967 * f-valprint.c (f_val_print): Style member names.
968 * f-typeprint.c (f_type_print_base): Style member names.
969 * cp-valprint.c (cp_print_value_fields): Style member names. Only
970 call fprintf_symbol_filtered for static members.
971 (cp_print_class_member): Style member names.
972 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
973 member names.
974 * ada-valprint.c (ada_print_scalar): Style enum names.
975 (ada_val_print_enum): Likewise.
976 * ada-typeprint.c (print_enum_type): Style enum names.
977
978 2020-02-21 Tom Tromey <tom@tromey.com>
979
980 * psympriv.h (struct partial_symtab): Update comment.
981
982 2020-02-21 Tom Tromey <tromey@adacore.com>
983
984 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
985 type is CORE_ADDR.
986
987 2020-02-21 Tom de Vries <tdevries@suse.de>
988
989 PR gdb/25534
990 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
991 if dependencies[i]->user != NULL.
992
993 2020-02-21 Ali Tamur <tamur@google.com>
994
995 * dwarf2/read.c (dwarf2_name): Add null check.
996
997 2020-02-20 Tom Tromey <tom@tromey.com>
998
999 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
1000 ">=", in binary search.
1001 (dwarf2_find_containing_comp_unit): New overload.
1002 (run_test): New self-test.
1003 (_initialize_dwarf2_read): Register new test.
1004
1005 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
1006
1007 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
1008 * riscv-tdep.h: Likewise.
1009 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
1010 rv32-only CSR.
1011 * features/riscv/64bit-csr.xml: Regenerated.
1012
1013 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
1014 Tom Tromey <tom@tromey.com>
1015
1016 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
1017 of 'fputc_unfiltered'.
1018 (putchar_unfiltered): Call 'fputc_unfiltered'.
1019 (fputc_unfiltered): Call 'fputs_unfiltered'.
1020
1021 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
1022
1023 * config.in: Regenerate.
1024 * configure: Regenerate.
1025 * configure.ac: Add --with-python-libdir option.
1026 * main.c: Use WITH_PYTHON_LIBDIR.
1027
1028 2020-02-19 Tom Tromey <tom@tromey.com>
1029
1030 * symtab.c (general_symbol_info::compute_and_set_names): Use
1031 obstack_strndup. Simplify call to symbol_set_demangled_name.
1032
1033 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
1034
1035 * dwarf2/read.c (allocate_signatured_type_table,
1036 allocate_dwo_unit_table, allocate_type_unit_groups_table,
1037 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
1038 Remove objfile parameter, update all callers.
1039
1040 2020-02-19 Doug Evans <dje@google.com>
1041
1042 PR rust/25535
1043 * rust-lang.c (rust_print_enum): Apply embedded_offset to
1044 rust_enum_variant calculation.
1045
1046 2020-02-19 Tom Tromey <tromey@adacore.com>
1047
1048 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
1049
1050 2020-02-19 Tom Tromey <tromey@adacore.com>
1051
1052 * ada-lang.c (cache_symbol): Use obstack_strdup.
1053
1054 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
1055
1056 * configure: Regenerate.
1057
1058 2020-02-19 Tom Tromey <tromey@adacore.com>
1059
1060 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
1061 NULL check.
1062
1063 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
1064
1065 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
1066
1067 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
1068
1069 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
1070 if GDBSERVER is not defined.
1071 (riscv_tdesc_cache): Likewise, also store const target_desc.
1072 (STATIC_IN_GDB): Define.
1073 (riscv_create_target_description): Update declaration with
1074 STATIC_IN_GDB.
1075 (riscv_lookup_target_description): New function, only define if
1076 GDBSERVER is not defined.
1077 * arch/riscv.h (riscv_create_target_description): Declare only
1078 when GDBSERVER is defined.
1079 (riscv_lookup_target_description): New declaration when GDBSERVER
1080 is not defined.
1081 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
1082 (riscv_linux_read_features): ...this, and return
1083 riscv_gdbarch_features instead of target_desc.
1084 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
1085 (riscv_linux_read_description): Rename to...
1086 (riscv_linux_read_features): ...this.
1087 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
1088 Update to use riscv_gdbarch_features and
1089 riscv_lookup_target_description.
1090 * riscv-tdep.c (riscv_find_default_target_description): Use
1091 riscv_lookup_target_description instead of
1092 riscv_create_target_description.
1093
1094 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
1095
1096 * valprint.c (generic_val_print_enum_1): When printing a flag
1097 enum with value 0 and there is no enumerator with value 0, print
1098 just "0" instead of "(unknown: 0x0)".
1099
1100 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
1101
1102 * valprint.c (generic_val_print_enum_1): Print unknown part of
1103 flag enum in hex.
1104
1105 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
1106
1107 * dwarf2/read.c (update_enumeration_type_from_children): Allow
1108 flag enums to contain duplicate enumerators.
1109 * valprint.c (generic_val_print_enum_1): Update comment.
1110
1111 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
1112
1113 * dwarf2/read.c: Include "count-one-bits.h".
1114 (update_enumeration_type_from_children): If an enumerator has
1115 multiple bits set, don't treat the enumeration as a "flag enum".
1116 * valprint.c (generic_val_print_enum_1): Assert that enumerators
1117 of flag enums have 0 or 1 bit set.
1118
1119 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
1120
1121 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
1122 conversion.
1123 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
1124 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
1125 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1126 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
1127 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
1128
1129 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
1130
1131 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
1132
1133 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
1134
1135 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
1136 displaced_step_closure_up.
1137 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
1138 (struct displaced_step_closure_up):
1139 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
1140 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
1141 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
1142 Likewise.
1143 * gdbarch.sh (displaced_step_copy_insn): Likewise.
1144 * gdbarch.c, gdbarch.h: Re-generate.
1145 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
1146 displaced_step_closure_up.
1147 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1148 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
1149 * infrun.h (displaced_step_closure_up): New type alias.
1150 (struct displaced_step_inferior_state) <step_closure>: Change
1151 type to displaced_step_closure_up.
1152 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
1153 displaced_step_closure_up.
1154 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
1155
1156 2020-02-14 Tom Tromey <tom@tromey.com>
1157
1158 * minidebug.c (gnu_debug_key): New global.
1159 (find_separate_debug_file_in_section): Use it.
1160
1161 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
1162
1163 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
1164 std::unique_ptr.
1165 * gdbarch.c: Re-generate.
1166 * gdbarch.h: Re-generate.
1167 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
1168 change.
1169 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
1170 type to std::unique_ptr.
1171 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
1172 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
1173 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
1174 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
1175 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
1176 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1177 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
1178 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
1179 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
1180
1181 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
1182
1183 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
1184 std::unique_ptr.
1185 (displaced_step_clear): Rename to...
1186 (displaced_step_reset): ... this. Just call displaced->reset ().
1187 (displaced_step_clear_cleanup): Rename to...
1188 (displaced_step_reset_cleanup): ... this.
1189 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
1190 (displaced_step_fixup): Likewise.
1191 (resume_1): Likewise.
1192 (handle_inferior_event): Restore child's memory before calling
1193 displaced_step_fixup on the parent.
1194 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
1195 to std::unique_ptr.
1196 <step_closure>: Change type to std::unique_ptr.
1197
1198 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
1199
1200 * arm-tdep.c: Include count-one-bits.h.
1201 (cleanup_block_store_pc): Use count_one_bits.
1202 (cleanup_block_load_pc): Use count_one_bits.
1203 (arm_copy_block_xfer): Use count_one_bits.
1204 (thumb2_copy_block_xfer): Use count_one_bits.
1205 (thumb_copy_pop_pc_16bit): Use count_one_bits.
1206 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
1207 (thumb_get_next_pcs_raw): Use count_one_bits.
1208 (arm_get_next_pcs_raw): Use count_one_bits_l.
1209 * arch/arm.c (bitcount): Remove.
1210 * arch/arm.h (bitcount): Remove.
1211
1212 2020-02-14 Tom Tromey <tromey@adacore.com>
1213
1214 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
1215 Update.
1216 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
1217 * dwarf2/loc.c (call_site_find_chain_1): Return
1218 unique_xmalloc_ptr.
1219 (call_site_find_chain): Likewise.
1220
1221 2020-02-14 Richard Biener <rguenther@suse.de>
1222
1223 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
1224 on expression with division operators.
1225
1226 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1227
1228 * MAINTAINERS (Write After Approval): Adding myself.
1229
1230 2020-02-12 Tom Tromey <tom@tromey.com>
1231
1232 * event-loop.c (event_data, gdb_event, event_handler_func):
1233 Remove.
1234
1235 2020-02-12 Tom Tromey <tom@tromey.com>
1236
1237 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
1238 (dwarf2_frame_objfile_data): Add comment.
1239 (find_comp_unit, set_comp_unit): New functions.
1240 (dwarf2_frame_find_fde): Use find_comp_unit.
1241 (dwarf2_build_frame_info): Use set_comp_unit.
1242
1243 2020-02-12 Tom Tromey <tom@tromey.com>
1244
1245 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
1246 (comp_unit): Don't initialize objfile.
1247 (execute_cfa_program): Add text_offset parameter.
1248 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
1249 (dwarf2_frame_cache): Update.
1250 (dwarf2_build_frame_info): Don't set "objfile" member.
1251
1252 2020-02-12 Tom Tromey <tom@tromey.com>
1253
1254 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
1255 (decode_frame_entry): Likewise.
1256 (dwarf2_build_frame_info): Update.
1257
1258 2020-02-12 Tom Tromey <tom@tromey.com>
1259
1260 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
1261 (decode_frame_entry_1): Use the comp_unit obstack.
1262
1263 2020-02-12 Tom Tromey <tom@tromey.com>
1264
1265 * dwarf2/frame.c (struct comp_unit): Add initializers and
1266 constructor.
1267 (dwarf2_frame_objfile_data): Store a comp_unit.
1268 (dwarf2_frame_find_fde): Update.
1269 (dwarf2_build_frame_info): Use "new".
1270
1271 2020-02-12 Tom Tromey <tom@tromey.com>
1272
1273 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
1274 (dwarf2_fde_table): Typedef for std::vector.
1275 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
1276 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
1277 (decode_frame_entry): Update.
1278 (dwarf2_build_frame_info): Use "new".
1279
1280 2020-02-12 Christian Biesinger <cbiesinger@google.com>
1281
1282 * arm-tdep.c (arm_gdbarch_init): Update.
1283 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
1284 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
1285 have_neon, is_m>: Change to bool.
1286
1287 2020-02-12 Christian Biesinger <cbiesinger@google.com>
1288
1289 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
1290
1291 2020-02-12 Tom Tromey <tom@tromey.com>
1292
1293 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
1294
1295 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
1296
1297 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
1298 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
1299
1300 2020-02-11 Tom Tromey <tom@tromey.com>
1301
1302 * psymtab.h: Update comment.
1303
1304 2020-02-11 Tom Tromey <tom@tromey.com>
1305
1306 * gdb_obstack.h (struct auto_obstack): Use
1307 DISABLE_COPY_AND_ASSIGN.
1308
1309 2020-02-11 Tom Tromey <tom@tromey.com>
1310
1311 * dwarf2/frame.h (struct objfile): Don't forward declare.
1312
1313 2020-02-11 Christian Biesinger <cbiesinger@google.com>
1314
1315 * cris-tdep.c (cris_supply_gregset): Change signature to match
1316 what struct regset expects.
1317 (cris_regset): New struct.
1318 (fetch_core_registers): Remove.
1319 (cris_iterate_over_regset_sections): New function.
1320 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
1321 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
1322
1323 2020-02-11 Christian Biesinger <cbiesinger@google.com>
1324
1325 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
1326 registers.
1327
1328 2020-02-11 Christian Biesinger <cbiesinger@google.com>
1329
1330 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
1331
1332 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
1333
1334 * configure: Re-generate.
1335
1336 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
1337
1338 * configure: Re-generate.
1339
1340 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
1341
1342 * acinclude: Update warning.m4 path.
1343 * warning.m4: Move to gdbsupport.
1344
1345 2020-02-11 Tom Tromey <tromey@adacore.com>
1346
1347 * remote.c (remote_console_output): Update.
1348 * printcmd.c (printf_command): Update.
1349 * event-loop.c (gdb_wait_for_event): Update.
1350 * linux-nat.c (sigchld_handler): Update.
1351 * remote-sim.c (gdb_os_write_stdout): Update.
1352 (gdb_os_flush_stdout): Update.
1353 (gdb_os_flush_stderr): Update.
1354 (gdb_os_write_stderr): Update.
1355 * exceptions.c (print_exception): Update.
1356 * remote-fileio.c (remote_fileio_func_read): Update.
1357 (remote_fileio_func_write): Update.
1358 * tui/tui.c (tui_enable): Update.
1359 * tui/tui-interp.c (tui_interp::init): Update.
1360 * utils.c (init_page_info): Update.
1361 (putchar_unfiltered, fputc_unfiltered): Update.
1362 (gdb_flush): Update.
1363 (emit_style_escape): Update.
1364 (flush_wrap_buffer, fputs_maybe_filtered): Update.
1365 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
1366 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
1367 (stderr_file::write): Update.
1368 (stderr_file::puts): Update.
1369 * ui-file.h (ui_file_isatty, ui_file_write)
1370 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
1371 (ui_file_puts): Don't declare.
1372
1373 2020-02-10 Tom de Vries <tdevries@suse.de>
1374
1375 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
1376 sentinel to char *.
1377
1378 2020-02-09 Tom de Vries <tdevries@suse.de>
1379
1380 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
1381 filename if it matches "<artificial>".
1382
1383 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
1384
1385 * windows-tdep.c (struct enum_value_name): New struct.
1386 (create_enum): New function.
1387 (windows_get_siginfo_type): Create and use enum types.
1388
1389 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
1390
1391 * NEWS: Mention $_siginfo support for Windows.
1392 * windows-nat.c (handle_exception): Set siginfo_er.
1393 (windows_nat_target::mourn_inferior): Reset siginfo_er.
1394 (windows_xfer_siginfo): New function.
1395 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
1396 * windows-tdep.c (struct windows_gdbarch_data): New struct.
1397 (init_windows_gdbarch_data): New function.
1398 (get_windows_gdbarch_data): New function.
1399 (windows_get_siginfo_type): New function.
1400 (windows_init_abi): Register windows_get_siginfo_type.
1401 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
1402
1403 2020-02-08 Tom Tromey <tom@tromey.com>
1404
1405 * dwarf2/read.c (class cutu_reader) <cutu_reader,
1406 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
1407 <keep>: Declare method.
1408 <m_keep>: Remove member.
1409 <~cutu_reader>: Remove.
1410 (cutu_reader::init_tu_and_read_dwo_dies): Update.
1411 (cutu_reader::cutu_reader): Update.
1412 (cutu_reader::keep): Rename from ~cutu_reader.
1413 (process_psymtab_comp_unit, build_type_psymtabs_1)
1414 (process_skeletonless_type_unit, load_partial_comp_unit)
1415 (load_full_comp_unit, dwarf2_read_addr_index)
1416 (read_signatured_type): Update.
1417
1418 2020-02-08 Tom Tromey <tom@tromey.com>
1419
1420 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
1421 "want_partial_unit" parameter.
1422 (process_psymtab_comp_unit): Change want_partial_unit to bool.
1423 Inline check for DW_TAG_partial_unit.
1424 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
1425
1426 2020-02-08 Tom Tromey <tom@tromey.com>
1427
1428 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
1429 read.c.
1430 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
1431 read.c.
1432
1433 2020-02-08 Tom Tromey <tom@tromey.com>
1434
1435 * dwarf2/read.c (read_address): Move to comp-unit.c.
1436 (dwarf2_rnglists_process, dwarf2_ranges_process)
1437 (read_attribute_value, dwarf_decode_lines_1)
1438 (var_decode_location, decode_locdesc): Update.
1439 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
1440 read.c. Remove "cu" parameter.
1441 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
1442 method.
1443
1444 2020-02-08 Tom Tromey <tom@tromey.com>
1445
1446 * dwarf2/read.c (read_attribute_value, read_indirect_string)
1447 (read_indirect_line_string): Update.
1448 * dwarf2/comp-unit.c (read_offset): Remove.
1449 (read_comp_unit_head): Update.
1450 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
1451 method.
1452 (read_offset): Don't declare.
1453
1454 2020-02-08 Tom Tromey <tom@tromey.com>
1455
1456 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
1457 * dwarf2/read.c (struct comp_unit_head): Move to
1458 dwarf2/comp-unit.h.
1459 (enum class rcuh_kind): Move to comp-unit.h.
1460 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
1461 (read_comp_unit_head, error_check_comp_unit_head)
1462 (read_and_check_comp_unit_head): Move to comp-unit.c.
1463 (read_offset, dwarf_unit_type_name): Likewise.
1464 (create_debug_type_hash_table, read_cutu_die_from_dwo)
1465 (cutu_reader::cutu_reader, read_call_site_scope)
1466 (find_partial_die, follow_die_offset): Update.
1467 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
1468
1469 2020-02-08 Tom Tromey <tom@tromey.com>
1470
1471 * dwarf2/read.c (read_offset_1): Move to leb.c.
1472 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
1473 (dwarf_decode_macro_bytes): Update.
1474 * dwarf2/leb.c (read_offset): Rename; move from read.c.
1475 * dwarf2/leb.h (read_offset): Declare.
1476
1477 2020-02-08 Tom Tromey <tom@tromey.com>
1478
1479 * dwarf2/read.c (dwarf2_section_size): Remove.
1480 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
1481 Update.
1482 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
1483
1484 2020-02-08 Tom Tromey <tom@tromey.com>
1485
1486 * dwarf2/read.c (read_initial_length): Move to leb.c.
1487 * dwarf2/leb.h (read_initial_length): Declare.
1488 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
1489 handle_nonstd parameter.
1490 * dwarf2/frame.c (read_initial_length): Remove.
1491 (decode_frame_entry_1): Update.
1492
1493 2020-02-08 Tom Tromey <tom@tromey.com>
1494
1495 * dwarf2/loc.c (dwarf2_find_location_expression)
1496 (dwarf_evaluate_loc_desc::get_tls_address)
1497 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
1498 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
1499 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
1500 (dwarf2_compile_property_to_c)
1501 (dwarf2_loc_desc_get_symbol_read_needs)
1502 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
1503 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
1504 (loclist_describe_location, loclist_tracepoint_var_ref)
1505 (loclist_generate_c_location): Update.
1506 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1507 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
1508 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
1509 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
1510 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
1511 (dwarf2_per_cu_data::addr_size)
1512 (dwarf2_per_cu_data::ref_addr_size)
1513 (dwarf2_per_cu_data::text_offset)
1514 (dwarf2_per_cu_data::addr_type): Now methods.
1515 (per_cu_header_read_in): Make per_cu "const".
1516 (dwarf2_version): Remove.
1517 (dwarf2_per_cu_data::int_type): Now a method.
1518 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
1519 (set_die_type, read_array_type, read_subrange_index_type)
1520 (read_tag_string_type, read_subrange_type): Update.
1521 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
1522 offset_size, ref_addr_size, text_offset, addr_type, version,
1523 objfile, int_type, addr_sized_int_type>: Declare methods.
1524
1525 2020-02-08 Tom Tromey <tom@tromey.com>
1526
1527 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
1528 Move earlier.
1529
1530 2020-02-08 Tom Tromey <tom@tromey.com>
1531
1532 * dwarf2/read.h (dwarf_line_debug): Declare.
1533 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
1534 * dwarf2/read.c: Move line_header code to new files.
1535 (dwarf_line_debug): No longer static.
1536 * dwarf2/line-header.c: New file.
1537 * dwarf2/line-header.h: New file.
1538
1539 2020-02-08 Tom Tromey <tom@tromey.com>
1540
1541 * dwarf2/read.c (struct line_header) <file_full_name,
1542 file_file_name>: Return unique_xmalloc_ptr.
1543 (line_header::file_file_name): Update.
1544 (line_header::file_full_name): Update.
1545 (dw2_get_file_names_reader): Update.
1546 (macro_start_file): Update.
1547
1548 2020-02-08 Tom Tromey <tom@tromey.com>
1549
1550 * dwarf2/read.c (struct line_header) <file_full_name,
1551 file_file_name>: Declare methods.
1552 (dw2_get_file_names_reader): Update.
1553 (file_file_name): Now a method.
1554 (file_full_name): Likewise.
1555 (macro_start_file): Update.
1556
1557 2020-02-08 Tom Tromey <tom@tromey.com>
1558
1559 * dwarf2/read.c (dwarf_always_disassemble)
1560 (show_dwarf_always_disassemble): Move to loc.c.
1561 (_initialize_dwarf2_read): Move "always-disassemble" registration
1562 to loc.c.
1563 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
1564 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
1565 static.
1566 (show_dwarf_always_disassemble): Move from read.c.
1567 (_initialize_dwarf2loc): Move always-disassemble from read.c.
1568
1569 2020-02-08 Tom Tromey <tom@tromey.com>
1570
1571 * dwarf2/read.c (~dwarf2_per_objfile): Update.
1572 (create_quick_file_names_table): Return htab_up.
1573 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
1574 Update.
1575 * dwarf2/read.h (struct dwarf2_per_objfile)
1576 <quick_file_names_table>: Now htab_up.
1577
1578 2020-02-08 Tom Tromey <tom@tromey.com>
1579
1580 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
1581
1582 2020-02-08 Tom Tromey <tom@tromey.com>
1583
1584 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
1585 Rewrite.
1586 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
1587 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
1588 (abbrev_table::abbrev_table): No longer inline.
1589 (ABBREV_HASH_SIZE): Remove.
1590 (abbrev_table::m_abbrevs): Now an htab_up.
1591
1592 2020-02-08 Tom Tromey <tom@tromey.com>
1593
1594 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
1595 (cutu_reader): Update.
1596 (build_type_psymtabs_1): Update.
1597 * dwarf2/abbrev.c (abbrev_table::read): Rename.
1598 (abbrev_table::alloc_abbrev): Update.
1599 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
1600 (abbrev_table::read): New static method, renamed from
1601 abbrev_table_read_table.
1602 (abbrev_table::alloc_abbrev)
1603 (abbrev_table::add_abbrev): Now private.
1604 (abbrev_table::abbrev_table): Now private.
1605 (abbrev_table::m_abbrev_obstack): Now private. Rename.
1606
1607 2020-02-08 Tom Tromey <tom@tromey.com>
1608
1609 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
1610 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
1611 htab_up.
1612
1613 2020-02-08 Tom Tromey <tom@tromey.com>
1614
1615 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
1616 htab_up.
1617 (lookup_dwo_unit_in_dwp): Update.
1618 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
1619 on obstack.
1620
1621 2020-02-08 Tom Tromey <tom@tromey.com>
1622
1623 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
1624 obstack.
1625
1626 2020-02-08 Tom Tromey <tom@tromey.com>
1627
1628 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
1629 line_header_hash.
1630 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
1631 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
1632 Change type to htab_up.
1633
1634 2020-02-08 Tom Tromey <tom@tromey.com>
1635
1636 * dwarf2/read.c (allocate_type_unit_groups_table): Return
1637 htab_up. Don't allocate on obstack.
1638 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
1639 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
1640 Change type to htab_up.
1641
1642 2020-02-08 Tom Tromey <tom@tromey.com>
1643
1644 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
1645 Change type to htab_up.
1646 * dwarf2/read.c (create_signatured_type_table_from_index)
1647 (create_signatured_type_table_from_debug_names)
1648 (create_all_type_units, add_type_unit)
1649 (lookup_dwo_signatured_type, lookup_signatured_type)
1650 (process_skeletonless_type_unit): Update.
1651 (create_debug_type_hash_table, create_debug_types_hash_table):
1652 Change type of types_htab.
1653 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
1654 htab_up. Don't allocate on obstack.
1655 (create_cus_hash_table): Change type of cus_htab parameter.
1656 (struct dwo_file) <cus, tus>: Now htab_up.
1657 (lookup_dwo_signatured_type, lookup_dwo_cutu)
1658 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
1659 (queue_and_load_all_dwo_tus): Update.
1660 * dwarf2/index-write.c (write_gdbindex): Update.
1661 (write_debug_names): Update.
1662
1663 2020-02-08 Tom Tromey <tom@tromey.com>
1664
1665 * dwarf2/read.h (struct dwarf2_queue_item): Move from
1666 dwarf2/read.c. Remove "next" member. Add constructor ntad
1667 destructor.
1668 (struct dwarf2_per_objfile) <queue>: New member.
1669 * dwarf2/read.c (struct dwarf2_queue_item): Move to
1670 dwarf2/read.h.
1671 (dwarf2_queue, dwarf2_queue_tail): Remove.
1672 (class dwarf2_queue_guard): Add parameter to constructor. Use
1673 DISABLE_COPY_AND_ASSIGN.
1674 <m_per_objfile>: New member.
1675 <~dwarf2_queue_guard>: Rewrite.
1676 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
1677 Update.
1678 (~dwarf2_queue_item): New.
1679
1680 2020-02-08 Tom Tromey <tom@tromey.com>
1681
1682 * dwarf2/read.c (struct die_info) <has_children>: New member.
1683 (dw2_get_file_names_reader): Remove has_children.
1684 (dw2_get_file_names): Update.
1685 (read_cutu_die_from_dwo): Remove has_children.
1686 (cutu_reader::init_tu_and_read_dwo_dies)
1687 (cutu_reader::cutu_reader): Update.
1688 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
1689 Remove has_children.
1690 (build_type_psymtabs_1, process_skeletonless_type_unit)
1691 (load_partial_comp_unit, load_full_comp_unit): Update.
1692 (create_dwo_cu_reader): Remove has_children.
1693 (create_cus_hash_table, read_die_and_children): Update.
1694 (read_full_die_1,read_full_die): Remove has_children.
1695 (read_signatured_type): Update.
1696 (class cutu_reader) <has_children>: Remove.
1697
1698 2020-02-08 Tom Tromey <tom@tromey.com>
1699
1700 * dwarf2/expr.c: Rename from dwarf2expr.c.
1701 * dwarf2/expr.h: Rename from dwarf2expr.h.
1702 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
1703 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
1704 * dwarf2/frame.c: Rename from dwarf2-frame.c.
1705 * dwarf2/frame.h: Rename from dwarf2-frame.h.
1706 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
1707 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
1708 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
1709 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
1710 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
1711 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
1712 * dwarf2/loc.c: Rename from dwarf2loc.c.
1713 * dwarf2/loc.h: Rename from dwarf2loc.h.
1714 * dwarf2/read.c: Rename from dwarf2read.c.
1715 * dwarf2/read.h: Rename from dwarf2read.h.
1716 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
1717 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
1718 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
1719 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
1720 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
1721 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
1722 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
1723 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
1724 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
1725 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
1726 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
1727 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
1728 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
1729 Update.
1730 * Makefile.in (COMMON_SFILES): Update.
1731 (HFILES_NO_SRCDIR): Update.
1732
1733 2020-02-08 Tom Tromey <tom@tromey.com>
1734
1735 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
1736 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
1737
1738 2020-02-08 Tom Tromey <tom@tromey.com>
1739
1740 * dwarf2read.h (struct die_info): Don't declare.
1741
1742 2020-02-08 Tom Tromey <tom@tromey.com>
1743
1744 * dwarf2read.h (die_info_ptr): Remove typedef.
1745
1746 2020-02-08 Tom Tromey <tom@tromey.com>
1747
1748 * dwarf2read.c (read_call_site_scope)
1749 (handle_data_member_location, dwarf2_add_member_fn)
1750 (mark_common_block_symbol_computed, read_common_block)
1751 (attr_to_dynamic_prop, partial_die_info::read)
1752 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
1753 (dwarf2_symbol_mark_computed, set_die_type): Update.
1754 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
1755 method.
1756 (attr_form_is_block): Don't declare.
1757 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
1758
1759 2020-02-08 Tom Tromey <tom@tromey.com>
1760
1761 * dwarf2read.c (dwarf2_find_base_address, )
1762 (read_call_site_scope, rust_containing_type)
1763 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
1764 (handle_data_member_location, dwarf2_add_member_fn)
1765 (get_alignment, read_structure_type, process_structure_scope)
1766 (mark_common_block_symbol_computed, read_common_block)
1767 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
1768 (partial_die_info::read, read_attribute_value, new_symbol)
1769 (lookup_die_type, dwarf2_get_ref_die_offset)
1770 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
1771 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
1772 (dwarf2_symbol_mark_computed): Update.
1773 * dwarf2/attribute.h (struct attribute) <value_as_address,
1774 form_is_section_offset, form_is_constant, form_is_ref>: Declare
1775 methods.
1776 (value_as_address, attr_form_is_section_offset)
1777 (attr_form_is_constant, attr_form_is_ref): Don't declare.
1778 * dwarf2/attribute.c (attribute::value_as_address)
1779 (attribute::form_is_section_offset, attribute::form_is_constant)
1780 (attribute::form_is_ref): Now methods.
1781
1782 2020-02-08 Tom Tromey <tom@tromey.com>
1783
1784 * dwarf2read.c (struct attribute, DW_STRING)
1785 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
1786 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
1787 (attr_form_is_block, attr_form_is_section_offset)
1788 (attr_form_is_constant, attr_form_is_ref): Move.
1789 * dwarf2/attribute.h: New file.
1790 * dwarf2/attribute.c: New file, from dwarf2read.c.
1791 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
1792
1793 2020-02-08 Tom Tromey <tom@tromey.com>
1794
1795 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
1796 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
1797 Move.
1798 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
1799 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
1800 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
1801 abbrev.c.
1802 * dwarf2/abbrev.h: New file.
1803 * dwarf2/abbrev.c: New file, from dwarf2read.c.
1804 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
1805
1806 2020-02-08 Tom Tromey <tom@tromey.com>
1807
1808 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
1809 (dwarf2_section_size, dwarf2_get_section_info)
1810 (create_signatured_type_table_from_debug_names)
1811 (create_addrmap_from_aranges, read_debug_names_from_section)
1812 (get_gdb_index_contents_from_section, read_comp_unit_head)
1813 (error_check_comp_unit_head, read_abbrev_offset)
1814 (create_debug_type_hash_table, init_cu_die_reader)
1815 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
1816 (read_comp_units_from_section, create_cus_hash_table)
1817 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
1818 (create_dwp_v2_section, dwarf2_rnglists_process)
1819 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
1820 (abbrev_table_read_table, read_indirect_string_at_offset_from)
1821 (read_indirect_string_from_dwz, read_addr_index_1)
1822 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
1823 (dwarf_decode_macro_bytes, dwarf_decode_macros)
1824 (fill_in_loclist_baton): Update.
1825 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
1826 get_containing_section, get_bfd_owner, get_bfd_section,
1827 get_file_name, get_id, get_flags, empty, read>: Declare methods.
1828 (dwarf2_read_section, get_section_name, get_section_file_name)
1829 (get_containing_section, get_section_bfd_owner)
1830 (get_section_bfd_section, get_section_name, get_section_file_name)
1831 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
1832 declare.
1833 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
1834 (dwarf2_section_info::get_bfd_owner)
1835 (dwarf2_section_info::get_bfd_section)
1836 (dwarf2_section_info::get_name)
1837 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
1838 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
1839 (dwarf2_section_info::read): Now methods.
1840 * dwarf-index-write.c (class debug_names): Update.
1841
1842 2020-02-08 Tom Tromey <tom@tromey.com>
1843
1844 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
1845 Move to dwarf2/section.h.
1846 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
1847 (get_section_bfd_section, get_section_name)
1848 (get_section_file_name, get_section_id, get_section_flags)
1849 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
1850 dwarf2/section.c.
1851 * dwarf2/section.h: New file.
1852 * dwarf2/section.c: New file, from dwarf2read.c.
1853 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
1854
1855 2020-02-08 Tom Tromey <tom@tromey.com>
1856
1857 * dwarf2read.h (read_unsigned_leb128): Don't declare.
1858 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
1859 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
1860 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
1861 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
1862 * dwarf2/leb.h: New file, from dwarf2read.c.
1863 * dwarf2/leb.c: New file, from dwarf2read.c.
1864 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
1865 Remove.
1866 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
1867 (COMMON_SFILES): Add dwarf2/leb.c.
1868
1869 2020-02-08 Joel Brobecker <brobecker@adacore.com>
1870
1871 GDB 9.1 released.
1872
1873 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
1874
1875 PR gdb/25190:
1876 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
1877 * gdb/remote.c (remote_console_output): Update.
1878 * gdb/ui-file.c (fputs_unfiltered): Rename to...
1879 (ui_file_puts): ...this.
1880 * gdb/ui-file.h (ui_file_puts): Add declaration.
1881 * gdb/utils.c (emit_style_escape): Update.
1882 (flush_wrap_buffer): Update.
1883 (fputs_maybe_filtered): Update.
1884 (fputs_unfiltered): Add function.
1885
1886 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
1887
1888 * gdb/event-loop.c (gdb_wait_for_event): Update.
1889 * gdb/printcmd.c (printf_command): Update.
1890 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
1891 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
1892 (gdb_os_flush_stderr): Update.
1893 * gdb/remote.c (remote_console_output): Update.
1894 * gdb/ui-file.c (gdb_flush): Rename to...
1895 (ui_file_flush): ...this.
1896 (stderr_file::write): Update.
1897 (stderr_file::puts): Update.
1898 * gdb/ui-file.h (gdb_flush): Rename to...
1899 (ui_file_flush): ...this.
1900 * gdb/utils.c (gdb_flush): Add function.
1901 * gdb/utils.h (gdb_flush): Add declaration.
1902
1903 2020-02-07 Tom Tromey <tromey@adacore.com>
1904
1905 PR breakpoints/24915:
1906 * source.c (find_and_open_source): Do not check basenames_may_differ.
1907
1908 2020-02-07 Tom Tromey <tom@tromey.com>
1909
1910 * README: Update gdbserver documentation.
1911 * gdbserver: Move to top level.
1912 * configure.tgt (build_gdbserver): Remove.
1913 * configure.ac: Remove --enable-gdbserver.
1914 * configure: Rebuild.
1915 * Makefile.in (distclean): Don't mention gdbserver.
1916
1917 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
1918
1919 * source-cache.c (source_cache::ensure): Surround
1920 get_plain_source_lines with a try/catch.
1921 (source_cache::get_line_charpos): Get rid of try/catch
1922 and only check for the return value of "ensure".
1923 * tui/tui-source.c (tui_source_window::set_contents):
1924 Simplify "nlines" calculation.
1925
1926 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
1927
1928 * MAINTAINERS (Write After Approval): Add myself.
1929
1930 2020-02-05 Christian Biesinger <cbiesinger@google.com>
1931
1932 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
1933 function call.
1934
1935 2020-02-05 Christian Biesinger <cbiesinger@google.com>
1936
1937 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
1938
1939 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
1940
1941 * nat/riscv-linux-tdesc.h: New file.
1942 * nat/riscv-linux-tdesc.c: New file, taking code from...
1943 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
1944 ... here.
1945 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
1946 NATDEPFILES.
1947
1948 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
1949
1950 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
1951 we don't set the fake simulator ptid to the null_ptid.
1952
1953 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
1954
1955 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
1956 * gdbthread.h (class thread_info) <resumed>: Likewise.
1957 * infrun.c (resume_1): Likewise.
1958 (proceed): Likewise.
1959 (infrun_thread_stop_requested): Likewise.
1960 (stop_all_threads): Likewise.
1961 (handle_inferior_event): Likewise.
1962 (restart_threads): Likewise.
1963 (finish_step_over): Likewise.
1964 (keep_going_stepped_thread): Likewise.
1965 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
1966 (linux_handle_extended_wait): Likewise.
1967 * record-btrace.c (get_thread_current_frame_id): Likewise.
1968 * record-full.c (record_full_wait_1): Likewise.
1969 * remote.c (remote_target::process_initial_stop_replies): Likewise.
1970 * target.c (target_resume): Likewise.
1971 * thread.c (set_running_thread): Likewise.
1972
1973 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1974
1975 * f-valprint.c (f77_print_array_1): Changed datatype of index
1976 variable to LONGEST from int to enable it to contain bound
1977 values correctly.
1978
1979 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
1980
1981 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
1982 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
1983 offsets according to FLEN determined.
1984 (riscv_linux_nat_target::read_description): Determine FLEN
1985 dynamically.
1986 (riscv_linux_nat_target::fetch_registers): Size regset buffer
1987 according to FLEN determined.
1988 (riscv_linux_nat_target::store_registers): Likewise.
1989
1990 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
1991
1992 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
1993 when reg->group is empty and reggroup is not.
1994
1995 2020-01-31 Tom Tromey <tromey@adacore.com>
1996
1997 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
1998 Call beneath target's mourn_inferior after unpushing.
1999
2000 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
2001
2002 PR tui/9765
2003 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
2004 have enough lines to fill the screen, still return the lowest
2005 address we found.
2006
2007 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
2008
2009 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
2010 '-', '<', and '>' commands.
2011
2012 2020-01-29 Pedro Alves <palves@redhat.com>
2013 Sergio Durigan Junior <sergiodj@redhat.com>
2014
2015 * infcmd.c (construct_inferior_arguments): Assert that
2016 'argc' is greater than 0.
2017
2018 2020-01-29 Luis Machado <luis.machado@linaro.org>
2019
2020 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
2021 (BRK_INSN_MASK): Define to 0xd4200000.
2022 (aarch64_program_breakpoint_here_p): New function.
2023 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
2024 * arch-utils.c (default_program_breakpoint_here_p): Moved from
2025 breakpoint.c.
2026 * arch-utils.h (default_program_breakpoint_here_p): Moved from
2027 breakpoint.h
2028 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
2029 call gdbarch_program_breakpoint_here_p.
2030 (program_breakpoint_here): Moved to arch-utils.c, renamed to
2031 default_program_breakpoint_here_p, changed return type to bool and
2032 simplified.
2033 * breakpoint.h (program_breakpoint_here): Moved prototype to
2034 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
2035 return type to bool.
2036 * gdbarch.c: Regenerate.
2037 * gdbarch.h: Regenerate.
2038 * gdbarch.sh (program_breakpoint_here_p): New method.
2039 * infrun.c (handle_signal_stop): Call
2040 gdbarch_program_breakpoint_here_p.
2041
2042 2020-01-26 Tom Tromey <tom@tromey.com>
2043
2044 * ctfread.c (struct ctf_fp_info): Reindent.
2045 (_initialize_ctfread): Remove.
2046
2047 2020-01-26 Tom Tromey <tom@tromey.com>
2048
2049 * psymtab.c (partial_map_expand_apply)
2050 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
2051 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
2052 (psym_print_stats, psym_expand_symtabs_for_function)
2053 (psym_map_symbol_filenames, psym_map_matching_symbols)
2054 (psym_expand_symtabs_matching)
2055 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
2056 (maintenance_check_psymtabs): Use new methods.
2057 * psympriv.h (struct partial_symtab) <readin_p,
2058 get_compunit_symtab>: New methods.
2059 <readin, compunit_symtab>: Remove members.
2060 (struct standard_psymtab): New.
2061 (struct legacy_psymtab): Derive from standard_psymtab.
2062 * dwarf2read.h (struct dwarf2_psymtab): Derive from
2063 standard_psymtab.
2064 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
2065
2066 2020-01-26 Tom Tromey <tom@tromey.com>
2067
2068 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
2069 read_dependencies. Add assert.
2070 * psymtab.c (partial_symtab::read_dependencies): New method.
2071 * psympriv.h (struct partial_symtab) <read_dependencies>: New
2072 method.
2073 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
2074 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
2075 read_dependencies.
2076 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
2077 Add assert.
2078
2079 2020-01-26 Tom Tromey <tom@tromey.com>
2080
2081 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
2082 Call expand_psymtab.
2083 (xcoff_read_symtab): Call expand_psymtab.
2084 (xcoff_start_psymtab, xcoff_end_psymtab): Set
2085 legacy_expand_psymtab.
2086 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
2087 method.
2088 (struct legacy_psymtab) <expand_psymtab>: Implement.
2089 <legacy_expand_psymtab>: New member.
2090 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
2091 (parse_partial_symbols): Set legacy_expand_psymtab.
2092 (psymtab_to_symtab_1): Change argument order. Call
2093 expand_psymtab.
2094 (new_psymtab): Set legacy_expand_psymtab.
2095 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
2096 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
2097 expand_psymtab.
2098 (dwarf2_psymtab::expand_psymtab): Rename from
2099 psymtab_to_symtab_1. Call expand_psymtab.
2100 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
2101 (dbx_end_psymtab): Likewise.
2102 (dbx_psymtab_to_symtab_1): Change argument order. Call
2103 expand_psymtab.
2104 (dbx_read_symtab): Call expand_psymtab.
2105 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
2106 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
2107 (ctf_psymtab::read_symtab): Call expand_psymtab.
2108
2109 2020-01-26 Tom Tromey <tom@tromey.com>
2110
2111 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
2112 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
2113 messages.
2114 * mdebugread.c (mdebug_read_symtab): Remove prints.
2115 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
2116 assert.
2117 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
2118
2119 2020-01-26 Tom Tromey <tom@tromey.com>
2120
2121 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
2122 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
2123 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
2124 legacy_symtab.
2125 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
2126 * psymtab.c (psymtab_to_symtab): Call method.
2127 (dump_psymtab): Update.
2128 * psympriv.h (struct partial_symtab): Add virtual destructor.
2129 <read_symtab>: New method.
2130 (struct legacy_symtab): New.
2131 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
2132 (struct pst_map) <pst>: Now a legacy_psymtab.
2133 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
2134 (new_psymtab): Use legacy_psymtab.
2135 * dwarf2read.h (struct dwarf2_psymtab): New.
2136 (struct dwarf2_per_cu_data) <psymtab>: Use it.
2137 * dwarf2read.c (dwarf2_create_include_psymtab)
2138 (dwarf2_build_include_psymtabs, create_type_unit_group)
2139 (create_partial_symtab, process_psymtab_comp_unit_reader)
2140 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
2141 (set_partial_user): Use dwarf2_psymtab.
2142 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
2143 (psymtab_to_symtab_1, process_full_comp_unit)
2144 (process_full_type_unit, dwarf2_ranges_read)
2145 (dwarf2_get_pc_bounds, psymtab_include_file_name)
2146 (dwarf_decode_lines): Use dwarf2_psymtab.
2147 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
2148 (add_address_entry_worker, write_one_signatured_type)
2149 (recursively_count_psymbols, recursively_write_psymbols)
2150 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
2151 (write_debug_names): Likewise.
2152 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
2153 <pst>: Now a legacy_psymtab.
2154 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
2155 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
2156 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
2157 * ctfread.c (struct ctf_psymtab): New.
2158 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
2159 ctf_psymtab.
2160 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
2161 (create_partial_symtab): Return a ctf_psymtab.
2162 (scan_partial_symbols): Update.
2163
2164 2020-01-26 Tom Tromey <tom@tromey.com>
2165
2166 * xcoffread.c (xcoff_start_psymtab): Use new.
2167 * psymtab.c (partial_symtab::partial_symtab): New constructor,
2168 renamed from start_psymtab_common.
2169 * psympriv.h (struct partial_symtab): Add new constructor.
2170 (start_psymtab_common): Don't declare.
2171 * mdebugread.c (parse_partial_symbols): Use new.
2172 * dwarf2read.c (create_partial_symtab): Use new.
2173 * dbxread.c (start_psymtab): Use new.
2174 * ctfread.c (create_partial_symtab): Use new.
2175
2176 2020-01-26 Tom Tromey <tom@tromey.com>
2177
2178 * xcoffread.c (xcoff_end_psymtab): Use new.
2179 * psymtab.c (start_psymtab_common): Use new.
2180 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
2181 Update.
2182 * psympriv.h (struct partial_symtab): Add parameters to
2183 constructor. Don't inline.
2184 (allocate_psymtab): Don't declare.
2185 * mdebugread.c (new_psymtab): Use new.
2186 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
2187 * dbxread.c (dbx_end_psymtab): Use new.
2188
2189 2020-01-26 Tom Tromey <tom@tromey.com>
2190
2191 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
2192 allocate_psymtab. Update documentation.
2193 * psymtab.c (psymtab_storage::install_psymtab): Rename from
2194 allocate_psymtab. Do not use new.
2195 (allocate_psymtab): Use new. Update.
2196
2197 2020-01-26 Tom Tromey <tom@tromey.com>
2198
2199 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
2200 * psymtab.c (psym_print_stats): Update.
2201 * psympriv.h (struct partial_symtab) <readin,
2202 psymtabs_addrmap_supported, anonymous>: Now bool.
2203 * mdebugread.c (psymtab_to_symtab_1): Update.
2204 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
2205 (build_type_psymtabs_reader, psymtab_to_symtab_1)
2206 (process_full_comp_unit, process_full_type_unit): Update.
2207 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
2208 * ctfread.c (psymtab_to_symtab): Update.
2209
2210 2020-01-26 Tom Tromey <tom@tromey.com>
2211
2212 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
2213 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
2214 * psymtab.c (psymtab_storage): Delete psymtabs.
2215 (psymtab_storage::allocate_psymtab): Use new.
2216 (psymtab_storage::discard_psymtab): Use delete.
2217 * psympriv.h (struct partial_symtab): Add constructor and
2218 initializers.
2219
2220 2020-01-26 Tom Tromey <tom@tromey.com>
2221
2222 * machoread.c: Do not include psympriv.h.
2223
2224 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2225
2226 * NEWS: Mention the new option and the set/show commands.
2227
2228 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2229
2230 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
2231 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
2232 (validate_exec_file): New variables, enums, functions.
2233 (exec_file_locate_attach, print_section_info): Style the filenames.
2234 (_initialize_exec): Install show_exec_file_mismatch_command and
2235 set_exec_file_mismatch_command.
2236 * gdbcore.h (validate_exec_file): Declare.
2237 * infcmd.c (attach_command): Call validate_exec_file.
2238 * remote.c ( remote_target::remote_add_inferior): Likewise.
2239
2240 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
2241
2242 * frame.c (find_frame_sal): Move call to get_next_frame into more
2243 inner scope.
2244 * inline-frame.c (inilne_state) <inline_state>: Update argument
2245 types.
2246 (inilne_state) <skipped_symbol>: Rename to...
2247 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
2248 (skip_inline_frames): Build vector of skipped symbols and use this
2249 to reate the inline_state.
2250 (inline_skipped_symbol): Add a comment and some assertions, fetch
2251 skipped symbol from the list.
2252
2253 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
2254
2255 * buildsym.c (lte_is_less_than): Delete.
2256 (buildsym_compunit::end_symtab_with_blockvector): Create local
2257 lambda function to sort line table entries, and use
2258 std::stable_sort instead of std::sort.
2259 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
2260 markers when looking for a previous line.
2261
2262 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
2263
2264 * dwarf2read.c (lnp_state_machine::record_line): Include
2265 end_sequence parameter in debug print out. Record the line if we
2266 are at an end_sequence marker even if it's not the start of a
2267 statement.
2268 * symmisc.c (maintenance_print_one_line_table): Print end of
2269 sequence markers with 'END' not '0'.
2270
2271 2020-01-24 Pedro Alves <palves@redhat.com>
2272
2273 PR gdb/25410
2274 * thread.c (scoped_restore_current_thread::restore): Use
2275 switch_to_inferior_no_thread.
2276 * exec.c: Include "progspace-and-thread.h".
2277 (add_target_sections, remove_target_sections):
2278 scoped_restore_current_pspace_and_thread instead of
2279 scoped_restore_current_thread.
2280 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
2281 and aspace to the inferior before calling clone_program_space.
2282 Remove stale comment.
2283
2284 2020-01-24 Christian Biesinger <cbiesinger@google.com>
2285
2286 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
2287 (arm_netbsd_nat_target::fetch_registers): ...this.
2288 (arm_nbsd_nat_target::store_registers): Rename to...
2289 (arm_netbsd_nat_target::store_registers): ...this.
2290
2291 2020-01-24 Christian Biesinger <cbiesinger@google.com>
2292
2293 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
2294 register_t.
2295
2296 2020-01-24 Christian Biesinger <cbiesinger@google.com>
2297
2298 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
2299 Update comment.
2300 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
2301 Likewise.
2302 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
2303 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
2304 the correct replacement (iterate_over_regset_sections).
2305 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
2306 Update comment.
2307
2308 2020-01-24 Graham Markall <graham.markall@embecosm.com>
2309
2310 PR gdb/23718
2311 * gdb/python/python.c (execute_gdb_command): Call
2312 async_enable_stdin in catch block.
2313
2314 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
2315
2316 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
2317 SWITCH_THRU_ALL_UIS.
2318
2319 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
2320
2321 PR tui/9765
2322 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
2323 comment, add extra parameter, and update to store previous symbol
2324 when appropriate.
2325 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
2326 add extra parameter.
2327 * tui/tui-disasm.c (tui_disassemble): Update header comment,
2328 remove unneeded parameter, add try/catch around gdb_print_insn,
2329 rewrite to add items to asm_lines vector.
2330 (tui_find_backward_disassembly_start_address): New function.
2331 (tui_find_disassembly_address): Updated throughout.
2332 (tui_disasm_window::set_contents): Update for changes to
2333 tui_disassemble.
2334 (tui_disasm_window::do_scroll_vertical): No need to adjust the
2335 number of lines to scroll.
2336
2337 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
2338
2339 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
2340 (SECT_OFF_DATA): Likewise.
2341 (SECT_OFF_RODATA): Likewise.
2342 (SECT_OFF_TEXT): Likewise.
2343 (SECT_OFF_BSS): Likewise.
2344 (struct objfile) <text_section_offset, data_section_offset>: New
2345 methods.
2346 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
2347 objfile::text_section_offset.
2348 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
2349 * coffread.c (coff_symtab_read): Likewise.
2350 (enter_linenos): Likewise.
2351 (process_coff_symbol): Likewise.
2352 * ctfread.c (get_objfile_text_range): Likewise.
2353 * dtrace-probe.c (dtrace_probe::get_relocated_address):
2354 Use objfile::data_section_offset.
2355 * dwarf2-frame.c (execute_cfa_program): Use
2356 objfile::text_section_offset.
2357 (dwarf2_frame_find_fde): Likewise.
2358 * dwarf2read.c (create_addrmap_from_index): Likewise.
2359 (create_addrmap_from_aranges): Likewise.
2360 (dw2_find_pc_sect_compunit_symtab): Likewise.
2361 (process_psymtab_comp_unit_reader): Likewise.
2362 (add_partial_symbol): Likewise.
2363 (add_partial_subprogram): Likewise.
2364 (process_full_comp_unit): Likewise.
2365 (read_file_scope): Likewise.
2366 (read_func_scope): Likewise.
2367 (read_lexical_block_scope): Likewise.
2368 (read_call_site_scope): Likewise.
2369 (dwarf2_rnglists_process): Likewise.
2370 (dwarf2_ranges_process): Likewise.
2371 (dwarf2_ranges_read): Likewise.
2372 (dwarf_decode_lines_1): Likewise.
2373 (new_symbol): Likewise.
2374 (dwarf2_fetch_die_loc_sect_off): Likewise.
2375 (dwarf2_per_cu_text_offset): Likewise.
2376 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
2377 * hppa-tdep.c (read_unwind_info): Likewise.
2378 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
2379 * psympriv.h (struct partial_symtab): Likewise.
2380 * psymtab.c (find_pc_sect_psymtab): Likewise.
2381 * solib-svr4.c (enable_break): Likewise.
2382 * stap-probe.c (relocate_address): Use
2383 objfile::data_section_offset.
2384 * xcoffread.c (enter_line_range): Use
2385 objfile::text_section_offset.
2386 (read_xcoff_symtab): Likewise.
2387
2388 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
2389
2390 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
2391 declaration to narrower scopes.
2392
2393 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
2394
2395 * darwin-nat.h (struct darwin_exception_msg, enum
2396 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
2397 Move up.
2398 (class darwin_nat_target) <wait_1, check_new_threads,
2399 decode_exception_message, decode_message, stop_inferior,
2400 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
2401 * darwin-nat.c (darwin_check_new_threads): Rename to...
2402 (darwin_nat_target::check_new_threads): ... this.
2403 (darwin_suspend_inferior_it): Remove.
2404 (darwin_decode_exception_message): Rename to...
2405 (darwin_nat_target::decode_exception_message): ... this.
2406 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
2407 (darwin_decode_message): Rename to...
2408 (darwin_nat_target::decode_message): ... this.
2409 (cancel_breakpoint): Rename to...
2410 (darwin_nat_target::cancel_breakpoint): ... this.
2411 (darwin_wait): Rename to...
2412 (darwin_nat_target::wait_1): ... this. Use range-based for loop
2413 instead of iterate_over_inferiors.
2414 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
2415 (darwin_stop_inferior): Rename to...
2416 (darwin_nat_target::stop_inferior): ... this.
2417 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
2418 (darwin_init_thread_list): Rename to...
2419 (darwin_nat_target::init_thread_list): ... this.
2420 (darwin_ptrace_him): Rename to...
2421 (darwin_nat_target::ptrace_him): ... this.
2422 (darwin_nat_target::create_inferior): Pass lambda function to
2423 fork_inferior.
2424 (darwin_nat_target::detach): Call stop_inferior instead of
2425 darwin_stop_inferior.
2426 * fork-inferior.h (fork_inferior): Change init_trace_fun
2427 parameter to gdb::function_view.
2428 * fork-inferior.c (fork_inferior): Likewise.
2429
2430 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
2431
2432 * i386-cygwin-tdep.c (core_process_module_section): Update.
2433 * windows-nat.c (struct lm_info_windows): Add text_offset.
2434 (windows_xfer_shared_libraries): Update.
2435 * windows-tdep.c (windows_xfer_shared_library):
2436 Add text_offset_cached argument.
2437 * windows-tdep.h (windows_xfer_shared_library): Update.
2438
2439 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
2440
2441 * gdbarch.sh: Add declaration for _initialize_gdbarch.
2442
2443 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
2444
2445 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
2446 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
2447 replace with range-based for.
2448 (gdbsim_interrupt_inferior): Remove.
2449 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
2450 with a range-based for. Inline code from
2451 gdbsim_interrupt_inferior.
2452
2453 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
2454
2455 * infrun.c (proceed): Fix indentation.
2456
2457 2020-01-21 Tom Tromey <tromey@adacore.com>
2458
2459 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
2460 * python/python.c (python_extension_ops): Update.
2461 (gdbpy_colorize): New function.
2462 * python/lib/gdb/__init__.py (colorize): New function.
2463 * extension.h (ext_lang_colorize): Declare.
2464 * extension.c (ext_lang_colorize): New function.
2465 * extension-priv.h (struct extension_language_ops) <colorize>: New
2466 member.
2467 * cli/cli-style.c (_initialize_cli_style): Update help text.
2468
2469 2020-01-21 Luis Machado <luis.machado@linaro.org>
2470
2471 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
2472 <cond>: Change type to bool.
2473 (aarch64_displaced_step_b_cond): Update cond to use bool type.
2474 (aarch64_displaced_step_cb): Likewise.
2475 (aarch64_displaced_step_tb): Likewise.
2476
2477 2020-01-21 Luis Machado <luis.machado@linaro.org>
2478
2479 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
2480 output.
2481
2482 2020-01-21 Luis Machado <luis.machado@linaro.org>
2483
2484 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
2485 <pc_adjust>: Adjust the documentation.
2486 (aarch64_displaced_step_fixup): Check if PC really moved before
2487 adjusting it.
2488
2489 2020-01-19 Tom Tromey <tom@tromey.com>
2490
2491 * disasm.c (~gdb_disassembler): New destructor.
2492 (gdb_buffered_insn_length): Call disassemble_free_target.
2493 * disasm.h (class gdb_disassembler): Declare destructor. Use
2494 DISABLE_COPY_AND_ASSIGN.
2495
2496 2020-01-19 Tom Tromey <tom@tromey.com>
2497
2498 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
2499 (die_reader_func_ftype): Remove.
2500 (cutu_reader): New class.
2501 (dw2_get_file_names_reader): Remove "data" parameter.
2502 (dw2_get_file_names): Use cutu_reader.
2503 (create_debug_type_hash_table): Update.
2504 (read_cutu_die_from_dwo): Update comment.
2505 (lookup_dwo_unit): Add dwo_name parameter.
2506 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
2507 die_reader_func_ftype and data parameters.
2508 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
2509 Remove die_reader_func_ftype and data parameters.
2510 (~cutu_reader): New; from init_cutu_and_read_dies.
2511 (cutu_reader::cutu_reader): Rename from
2512 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
2513 and data parameters.
2514 (init_cutu_and_read_dies_simple): Remove.
2515 (struct process_psymtab_comp_unit_data): Remove.
2516 (process_psymtab_comp_unit_reader): Remove data parameter; add
2517 want_partial_unit and pretend_language parameters.
2518 (process_psymtab_comp_unit): Use cutu_reader.
2519 (build_type_psymtabs_reader): Remove data parameter.
2520 (build_type_psymtabs_1): Use cutu_reader.
2521 (process_skeletonless_type_unit): Likewise.
2522 (load_partial_comp_unit_reader): Remove.
2523 (load_partial_comp_unit): Use cutu_reader.
2524 (load_full_comp_unit_reader): Remove.
2525 (load_full_comp_unit): Use cutu_reader.
2526 (struct create_dwo_cu_data): Remove.
2527 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
2528 dwo_unit parameters.
2529 (create_cus_hash_table): Use cutu_reader.
2530 (struct dwarf2_read_addr_index_data): Remove.
2531 (dwarf2_read_addr_index_reader): Remove.
2532 (dwarf2_read_addr_index): Use cutu_reader.
2533 (read_signatured_type_reader): Remove.
2534 (read_signatured_type): Use cutu_reader.
2535
2536 2020-01-19 Tom Tromey <tom@tromey.com>
2537
2538 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
2539 * tui/tui-wingeneral.h (class tui_suppress_output): New.
2540 (tui_wrefresh): Declare.
2541 * tui/tui-wingeneral.c (suppress_output): New global.
2542 (tui_suppress_output, ~tui_suppress_output): New constructor and
2543 destructor.
2544 (tui_wrefresh): New function.
2545 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
2546 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
2547 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
2548 method.
2549 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
2550 tui_wrefresh.
2551 (tui_data_window::no_refresh): New method.
2552 (tui_data_item_window::refresh_window): Call tui_wrefresh.
2553 (tui_reg_command): Use tui_suppress_output
2554 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
2555 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
2556 method.
2557 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
2558
2559 2020-01-19 Tom Tromey <tom@tromey.com>
2560
2561 * tui/tui-winsource.c (tui_update_source_windows_with_line):
2562 Handle case where symtab is null.
2563
2564 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
2565
2566 * linux-fork.c (one_fork_p): Simplify.
2567
2568 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
2569
2570 * top.c (struct qt_args): Remove.
2571 (kill_or_detach): Change return type to void, replace `void *`
2572 parameter with a proper one.
2573 (print_inferior_quit_action): Likewise.
2574 (quit_confirm): Use range-based for loop to iterate over inferiors.
2575 (quit_force): Likewise.
2576
2577 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
2578
2579 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
2580 `void *` parameter with proper parameters.
2581 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
2582 (print_one_inferior): Change return type to void, replace `void *`
2583 parameter with proper parameters.
2584 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
2585 inferiors.
2586 (get_other_inferior): Remove.
2587 (mi_cmd_remove_inferior): Use range-based loop to iterate over
2588 inferiors.
2589
2590 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
2591
2592 * mi/mi-interp.c (report_initial_inferior): Remove.
2593 (mi_interp::init): Use range-based for to iterate over inferiors.
2594
2595 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
2596
2597 * python/py-inferior.c (build_inferior_list): Remove.
2598 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
2599
2600 2020-01-16 Christian Biesinger <cbiesinger@google.com>
2601
2602 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
2603 (btrace_stitch_trace): Likewise.
2604 * charset.c (intermediate_encoding): Likewise (vaild).
2605 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
2606 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
2607 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
2608
2609 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
2610
2611 * windows-tdep.c (windows_get_tlb_type):
2612 Add rtl_user_process_parameters type.
2613
2614 2020-01-16 Pedro Alves <palves@redhat.com>
2615 Norbert Lange <nolange79@gmail.com>
2616
2617 PR build/24805
2618 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
2619 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
2620 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
2621 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
2622 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
2623 (ps_plog): Redeclare exported functions with default visibility.
2624
2625 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
2626
2627 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
2628 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
2629
2630 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
2631
2632 * infcmd.c (post_create_inferior): Use get_thread_regcache
2633 instead of get_current_regcache.
2634
2635 2020-01-14 Tom Tromey <tom@tromey.com>
2636
2637 PR symtab/12535:
2638 * python/python.c (gdbpy_decode_line): Treat empty string the same
2639 as no argument.
2640
2641 2020-01-14 Tom Tromey <tom@tromey.com>
2642
2643 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
2644
2645 2020-01-14 Tom Tromey <tom@tromey.com>
2646
2647 * nat/linux-btrace.c: Don't include <config.h>.
2648 * nat/linux-ptrace.c: Don't include <config.h>.
2649 * nat/x86-linux-dregs.c: Don't include <config.h>.
2650
2651 2020-01-14 Tom Tromey <tom@tromey.com>
2652
2653 * configure: Rebuild.
2654 * configure.ac: Move many checks to ../gdbsupport/common.m4.
2655
2656 2020-01-14 Tom Tromey <tom@tromey.com>
2657
2658 * nat/x86-linux-dregs.c: Include configh.h.
2659 * nat/linux-ptrace.c: Include configh.h.
2660 * nat/linux-btrace.c: Include configh.h.
2661 * defs.h: Include config.h, bfd.h.
2662 * configure.ac: Don't source common.host.
2663 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
2664 * configure: Rebuild.
2665 * acinclude.m4: Update path.
2666 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
2667 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
2668 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
2669 (CLIBS): Add LIBSUPPORT.
2670 (CDEPS): Likewise.
2671 (COMMON_SFILES): Remove gdbsupport files.
2672 (HFILES_NO_SRCDIR): Likewise.
2673 (stamp-version): Update path to create-version.sh.
2674 (ALLDEPFILES): Remove gdbsupport files.
2675
2676 2020-01-14 Tom Tromey <tom@tromey.com>
2677
2678 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
2679 USE_WIN32API when needed.
2680 * configure.ac (USE_WIN32API): Don't define.
2681 (WIN32LIBS): Use WIN32APILIBS.
2682 * configure: Rebuild.
2683
2684 2020-01-14 Tom Tromey <tom@tromey.com>
2685
2686 * configure: Rebuild.
2687 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
2688
2689 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
2690
2691 * skip.c (skip_function_command): Make skip w/o arguments use the
2692 name of the inlined function if pc is inside any inlined function.
2693
2694 2020-01-14 Luis Machado <luis.machado@linaro.org>
2695
2696 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
2697 * infrun.c (resume_1): Likewise.
2698 (handle_inferior_event): Remove stale comment.
2699 * linux-nat.c (linux_nat_target::resume): Update comments.
2700 (save_stop_reason): Likewise.
2701 (linux_nat_filter_event): Likewise.
2702 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
2703
2704 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
2705
2706 * elfread.c (record_minimal_symbol): Set section index to 0 for
2707 non-allocatable sections.
2708
2709
2710 2020-01-13 Ali Tamur <tamur@google.com>
2711
2712 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
2713 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
2714 to gdb::optional. Update comments.
2715 (dwo_file): Update comments.
2716 (read_attribute): Update API to take an additional out parameter,
2717 need_reprocess. This is used to mark attributes that need other
2718 attributes (e.g. str_offsets_base) for correct computation which may not
2719 have been read yet.
2720 (read_attribute_reprocess): New function declaration.
2721 (read_addr_index): Likewise.
2722 (read_dwo_str_index): Likewise.
2723 (read_stub_str_index): Likewise.
2724 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
2725 (lookup_addr_base): New function definition.
2726 (lookup_ranges_base): Likewise.
2727 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
2728 lookup_ranges_base.
2729 (init_cutu_and_read_dies): Update comments.
2730 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
2731 unit. This is used to inherit parent's str_offsets_base and addr_base.
2732 Update comments.
2733 (init_cutu_and_read_dies_simple): Reflect API changes.
2734 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
2735 (create_cus_hash_table): Change API to take parent compile unit.
2736 Reflect API changes.
2737 (open_and_init_dwo_file): Reflect API changes.
2738 (dwarf2_get_pc_bounds): Update comments.
2739 (dwarf2_record_block_ranges): Likewise.
2740 (read_full_die_1): Change implementation to reprocess attributes that
2741 need str_offsets_base and addr_base.
2742 (partial_die_info::read): Likewise.
2743 (read_attribute_reprocess): New function definition.
2744 (read_attribute_value): Change API to take an additional out parameter,
2745 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
2746 when a non-dwo compile unit has index based attributes.
2747 (read_attribute): Reflect API changes.
2748 (read_addr_index_1): Reflect API changes. Update comments.
2749 (dwarf2_read_addr_index_data): Reflect API changes.
2750 (dwarf2_read_addr_index): Likewise.
2751 (read_str_index): Change API and implementation. This becomes a helper
2752 to be used by the new string index related methods. Update error
2753 message and comments.
2754 (read_dwo_str_index): New function definition.
2755 (read_stub_str_index): Likewise.
2756 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
2757 * symfile.h (dwarf2_debug_sections): Likewise.
2758 * xcoffread.c (dwarf2_debug_sections): Likewise.
2759
2760 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2761
2762 * gdbcore.h (struct core_fns) <core_read_registers>: Change
2763 core_reg_sect type to gdb_byte *.
2764 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
2765 * cris-tdep.c (fetch_core_registers): Likewise.
2766 * corelow.c (core_target::get_core_register_section): Change
2767 type of `contents` to gdb::byte_vector.
2768
2769 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
2770
2771 * tui/tui-wingeneral.c (box_win): Position the title in the center
2772 of the border.
2773
2774 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2775
2776 * corelow.c (core_target::get_core_register_section): Use
2777 std::vector instead of alloca.
2778
2779 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2780
2781 * warning.m4: Add -Wmissing-declarations to build_warnings.
2782 * configure: Re-generate.
2783
2784 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2785
2786 * python/python.c (init__gdb_module): Add declaration.
2787
2788 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
2789
2790 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
2791 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
2792 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
2793 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
2794 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
2795 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
2796 * ada-exp.y (_initialize_ada_exp): Add declaration.
2797 * ada-lang.c (_initialize_ada_language): Add declaration.
2798 * ada-tasks.c (_initialize_tasks): Add declaration.
2799 * agent.c (_initialize_agent): Add declaration.
2800 * aix-thread.c (_initialize_aix_thread): Add declaration.
2801 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
2802 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
2803 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
2804 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
2805 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
2806 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
2807 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
2808 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
2809 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
2810 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
2811 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
2812 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
2813 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
2814 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
2815 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
2816 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
2817 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
2818 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
2819 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
2820 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
2821 * annotate.c (_initialize_annotate): Add declaration.
2822 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
2823 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
2824 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
2825 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
2826 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
2827 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
2828 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
2829 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
2830 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
2831 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
2832 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
2833 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
2834 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
2835 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
2836 * auto-load.c (_initialize_auto_load): Add declaration.
2837 * auxv.c (_initialize_auxv): Add declaration.
2838 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
2839 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
2840 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
2841 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
2842 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
2843 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
2844 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
2845 * breakpoint.c (_initialize_breakpoint): Add declaration.
2846 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
2847 * btrace.c (_initialize_btrace): Add declaration.
2848 * charset.c (_initialize_charset): Add declaration.
2849 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
2850 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
2851 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
2852 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
2853 * cli/cli-script.c (_initialize_cli_script): Add declaration.
2854 * cli/cli-style.c (_initialize_cli_style): Add declaration.
2855 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
2856 * coffread.c (_initialize_coffread): Add declaration.
2857 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
2858 * compile/compile.c (_initialize_compile): Add declaration.
2859 * complaints.c (_initialize_complaints): Add declaration.
2860 * completer.c (_initialize_completer): Add declaration.
2861 * copying.c (_initialize_copying): Add declaration.
2862 * corefile.c (_initialize_core): Add declaration.
2863 * corelow.c (_initialize_corelow): Add declaration.
2864 * cp-abi.c (_initialize_cp_abi): Add declaration.
2865 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
2866 * cp-support.c (_initialize_cp_support): Add declaration.
2867 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
2868 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
2869 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
2870 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
2871 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
2872 * ctfread.c (_initialize_ctfread): Add declaration.
2873 * d-lang.c (_initialize_d_language): Add declaration.
2874 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
2875 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
2876 * dbxread.c (_initialize_dbxread): Add declaration.
2877 * dcache.c (_initialize_dcache): Add declaration.
2878 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
2879 * disasm.c (_initialize_disasm): Add declaration.
2880 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
2881 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
2882 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
2883 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
2884 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
2885 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
2886 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
2887 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
2888 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
2889 * elfread.c (_initialize_elfread): Add declaration.
2890 * exec.c (_initialize_exec): Add declaration.
2891 * extension.c (_initialize_extension): Add declaration.
2892 * f-lang.c (_initialize_f_language): Add declaration.
2893 * f-valprint.c (_initialize_f_valprint): Add declaration.
2894 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
2895 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
2896 * filesystem.c (_initialize_filesystem): Add declaration.
2897 * findcmd.c (_initialize_mem_search): Add declaration.
2898 * findvar.c (_initialize_findvar): Add declaration.
2899 * fork-child.c (_initialize_fork_child): Add declaration.
2900 * frame-base.c (_initialize_frame_base): Add declaration.
2901 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
2902 * frame.c (_initialize_frame): Add declaration.
2903 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
2904 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
2905 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
2906 * gcore.c (_initialize_gcore): Add declaration.
2907 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
2908 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
2909 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
2910 * gdbarch.c (_initialize_gdbarch): Add declaration.
2911 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
2912 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
2913 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
2914 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
2915 * go-lang.c (_initialize_go_language): Add declaration.
2916 * go32-nat.c (_initialize_go32_nat): Add declaration.
2917 * guile/guile.c (_initialize_guile): Add declaration.
2918 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
2919 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
2920 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
2921 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
2922 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
2923 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
2924 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
2925 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
2926 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
2927 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
2928 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
2929 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
2930 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
2931 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
2932 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
2933 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
2934 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
2935 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
2936 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
2937 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
2938 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
2939 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
2940 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
2941 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
2942 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
2943 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
2944 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
2945 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
2946 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
2947 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
2948 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
2949 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
2950 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
2951 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
2952 * infcall.c (_initialize_infcall): Add declaration.
2953 * infcmd.c (_initialize_infcmd): Add declaration.
2954 * inflow.c (_initialize_inflow): Add declaration.
2955 * infrun.c (_initialize_infrun): Add declaration.
2956 * interps.c (_initialize_interpreter): Add declaration.
2957 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
2958 * jit.c (_initialize_jit): Add declaration.
2959 * language.c (_initialize_language): Add declaration.
2960 * linux-fork.c (_initialize_linux_fork): Add declaration.
2961 * linux-nat.c (_initialize_linux_nat): Add declaration.
2962 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
2963 * linux-thread-db.c (_initialize_thread_db): Add declaration.
2964 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
2965 * m2-lang.c (_initialize_m2_language): Add declaration.
2966 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
2967 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
2968 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
2969 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
2970 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
2971 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
2972 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
2973 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
2974 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
2975 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
2976 * machoread.c (_initialize_machoread): Add declaration.
2977 * macrocmd.c (_initialize_macrocmd): Add declaration.
2978 * macroscope.c (_initialize_macroscope): Add declaration.
2979 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
2980 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
2981 * maint.c (_initialize_maint_cmds): Add declaration.
2982 * mdebugread.c (_initialize_mdebugread): Add declaration.
2983 * memattr.c (_initialize_mem): Add declaration.
2984 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
2985 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
2986 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
2987 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
2988 * mi/mi-main.c (_initialize_mi_main): Add declaration.
2989 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
2990 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
2991 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
2992 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
2993 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
2994 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
2995 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
2996 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
2997 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
2998 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
2999 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
3000 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
3001 * mipsread.c (_initialize_mipsread): Add declaration.
3002 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
3003 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
3004 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
3005 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
3006 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
3007 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
3008 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
3009 * nto-procfs.c (_initialize_procfs): Add declaration.
3010 * objc-lang.c (_initialize_objc_language): Add declaration.
3011 * observable.c (_initialize_observer): Add declaration.
3012 * opencl-lang.c (_initialize_opencl_language): Add declaration.
3013 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
3014 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
3015 * osabi.c (_initialize_gdb_osabi): Add declaration.
3016 * osdata.c (_initialize_osdata): Add declaration.
3017 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3018 * parse.c (_initialize_parse): Add declaration.
3019 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
3020 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
3021 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
3022 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
3023 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
3024 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
3025 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
3026 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
3027 * printcmd.c (_initialize_printcmd): Add declaration.
3028 * probe.c (_initialize_probe): Add declaration.
3029 * proc-api.c (_initialize_proc_api): Add declaration.
3030 * proc-events.c (_initialize_proc_events): Add declaration.
3031 * proc-service.c (_initialize_proc_service): Add declaration.
3032 * procfs.c (_initialize_procfs): Add declaration.
3033 * producer.c (_initialize_producer): Add declaration.
3034 * psymtab.c (_initialize_psymtab): Add declaration.
3035 * python/python.c (_initialize_python): Add declaration.
3036 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
3037 * record-btrace.c (_initialize_record_btrace): Add declaration.
3038 * record-full.c (_initialize_record_full): Add declaration.
3039 * record.c (_initialize_record): Add declaration.
3040 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
3041 * regcache.c (_initialize_regcache): Add declaration.
3042 * reggroups.c (_initialize_reggroup): Add declaration.
3043 * remote-notif.c (_initialize_notif): Add declaration.
3044 * remote-sim.c (_initialize_remote_sim): Add declaration.
3045 * remote.c (_initialize_remote): Add declaration.
3046 * reverse.c (_initialize_reverse): Add declaration.
3047 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
3048 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
3049 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
3050 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
3051 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
3052 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
3053 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
3054 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
3055 Add declaration.
3056 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
3057 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
3058 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
3059 * rust-exp.y (_initialize_rust_exp): Add declaration.
3060 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
3061 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
3062 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
3063 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
3064 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
3065 * score-tdep.c (_initialize_score_tdep): Add declaration.
3066 * ser-go32.c (_initialize_ser_dos): Add declaration.
3067 * ser-mingw.c (_initialize_ser_windows): Add declaration.
3068 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
3069 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
3070 * ser-uds.c (_initialize_ser_socket): Add declaration.
3071 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
3072 * serial.c (_initialize_serial): Add declaration.
3073 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
3074 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
3075 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
3076 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
3077 * skip.c (_initialize_step_skip): Add declaration.
3078 * sol-thread.c (_initialize_sol_thread): Add declaration.
3079 * solib-aix.c (_initialize_solib_aix): Add declaration.
3080 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
3081 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
3082 * solib-frv.c (_initialize_frv_solib): Add declaration.
3083 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3084 * solib-target.c (_initialize_solib_target): Add declaration.
3085 * solib.c (_initialize_solib): Add declaration.
3086 * source-cache.c (_initialize_source_cache): Add declaration.
3087 * source.c (_initialize_source): Add declaration.
3088 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
3089 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
3090 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
3091 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
3092 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
3093 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
3094 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
3095 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
3096 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
3097 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
3098 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
3099 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
3100 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
3101 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
3102 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
3103 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
3104 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
3105 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
3106 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
3107 * stabsread.c (_initialize_stabsread): Add declaration.
3108 * stack.c (_initialize_stack): Add declaration.
3109 * stap-probe.c (_initialize_stap_probe): Add declaration.
3110 * std-regs.c (_initialize_frame_reg): Add declaration.
3111 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
3112 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
3113 * symfile.c (_initialize_symfile): Add declaration.
3114 * symmisc.c (_initialize_symmisc): Add declaration.
3115 * symtab.c (_initialize_symtab): Add declaration.
3116 * target.c (_initialize_target): Add declaration.
3117 * target-connection.c (_initialize_target_connection): Add
3118 declaration.
3119 * target-dcache.c (_initialize_target_dcache): Add declaration.
3120 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
3121 * thread.c (_initialize_thread): Add declaration.
3122 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
3123 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
3124 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
3125 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
3126 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
3127 * tracectf.c (_initialize_ctf): Add declaration.
3128 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
3129 * tracefile.c (_initialize_tracefile): Add declaration.
3130 * tracepoint.c (_initialize_tracepoint): Add declaration.
3131 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
3132 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
3133 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
3134 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
3135 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
3136 * tui/tui-win.c (_initialize_tui_win): Add declaration.
3137 * tui/tui.c (_initialize_tui): Add declaration.
3138 * typeprint.c (_initialize_typeprint): Add declaration.
3139 * ui-style.c (_initialize_ui_style): Add declaration.
3140 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
3141 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
3142 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
3143 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
3144 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
3145 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
3146 * unittests/filtered_iterator-selftests.c
3147 (_initialize_filtered_iterator_selftests): Add declaration.
3148 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
3149 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
3150 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
3151 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
3152 * unittests/main-thread-selftests.c
3153 (_initialize_main_thread_selftests): Add declaration.
3154 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
3155 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
3156 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
3157 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
3158 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
3159 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
3160 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
3161 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
3162 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
3163 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
3164 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
3165 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
3166 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
3167 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
3168 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
3169 declaration.
3170 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
3171 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
3172 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
3173 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
3174 * user-regs.c (_initialize_user_regs): Add declaration.
3175 * utils.c (_initialize_utils): Add declaration.
3176 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
3177 * valops.c (_initialize_valops): Add declaration.
3178 * valprint.c (_initialize_valprint): Add declaration.
3179 * value.c (_initialize_values): Add declaration.
3180 * varobj.c (_initialize_varobj): Add declaration.
3181 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
3182 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
3183 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3184 * windows-nat.c (_initialize_windows_nat): Add declaration.
3185 (_initialize_check_for_gdb_ini): Add declaration.
3186 (_initialize_loadable): Add declaration.
3187 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
3188 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
3189 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
3190 * xcoffread.c (_initialize_xcoffread): Add declaration.
3191 * xml-support.c (_initialize_xml_support): Add declaration.
3192 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
3193 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
3194 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
3195 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
3196
3197 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3198
3199 * regformats/regdat.sh: Generate declaration for init function.
3200
3201 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3202
3203 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
3204 up.
3205 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
3206 close_one_inferior>: New methods.
3207 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
3208 pass down target to find_inferior_pid.
3209 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
3210 Pass down target to find_inferior_ptid.
3211 (gdbsim_target::create_inferior): Pass down target to
3212 add_thread_silent.
3213 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
3214 target down to find_inferior_ptid and switch_to_thread.
3215 (gdbsim_target::close): Update to call close_one_inferior.
3216 (struct resume_data): Remove.
3217 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
3218 directly, rather than through a void pointer.
3219 (gdbsim_target::resume): Update to call resume_one_inferior.
3220
3221 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3222
3223 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
3224
3225 2020-01-12 Pedro Alves <palves@redhat.com>
3226
3227 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
3228 directly for the current inferior instead of
3229 discard_all_inferiors.
3230 (discard_all_inferiors): Delete.
3231
3232 2020-01-11 Tom Tromey <tom@tromey.com>
3233
3234 * tui/tui-wingeneral.c (box_win): Check cli_styling.
3235 * tui/tui-winsource.c (tui_source_window_base::refill): Use
3236 deprecated_safe_get_selected_frame.
3237
3238 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3239
3240 * inferior.c (print_inferior): Switch inferior before printing it.
3241
3242 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
3243 Pedro Alves <palves@redhat.com>
3244
3245 * progspace-and-thread.c (switch_to_program_space_and_thread):
3246 Assert there's an inferior for PSPACE. Use
3247 switch_to_inferior_no_thread to switch the inferior too.
3248 * progspace.c (program_space::~program_space): Call
3249 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
3250 (program_space::free_all_objfiles): Don't call clear_symtab_users
3251 here.
3252 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
3253
3254 2020-01-10 Pedro Alves <palves@redhat.com>
3255
3256 * NEWS: Mention multi-target debugging, "info connections", and
3257 "add-inferior -no-connection".
3258
3259 2020-01-10 Pedro Alves <palves@redhat.com>
3260
3261 * infrun.c: Include "target-connection.h".
3262 (check_multi_target_resumption): New.
3263 (proceed): Call it.
3264 * target-connection.c (make_target_connection_string): Make
3265 extern.
3266 * target-connection.h (make_target_connection_string): Declare.
3267
3268 2020-01-10 Pedro Alves <palves@redhat.com>
3269
3270 * Makefile.in (COMMON_SFILES): Add target-connection.c.
3271 * inferior.c (uiout_field_connection): New function.
3272 (print_inferior): Add new "connection-id" column.
3273 (add_inferior_command): Show connection number/string of added
3274 inferior.
3275 * process-stratum-target.h
3276 (process_stratum_target::connection_string): New virtual method.
3277 (process_stratum_target::connection_number): New field.
3278 * remote.c (remote_target::connection_string): New override.
3279 * target-connection.c: New file.
3280 * target-connection.h: New file.
3281 * target.c (decref_target): Remove process_stratum targets from
3282 the connection list.
3283 (target_stack::push): Add process_stratum targets to the
3284 connection list.
3285
3286 2020-01-10 Pedro Alves <palves@redhat.com>
3287
3288 Revert:
3289 2016-04-12 Pedro Alves <palves@redhat.com>
3290 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
3291 Remove references to name.
3292 * serial.h (struct serial) <name>: Delete.
3293
3294 2020-01-10 Pedro Alves <palves@redhat.com>
3295
3296 * gdbarch-selftests.c (register_to_value_test): Remove "target
3297 already pushed" check.
3298
3299 2020-01-10 Pedro Alves <palves@redhat.com>
3300 John Baldwin <jhb@FreeBSD.org>
3301
3302 * aarch64-linux-nat.c
3303 (aarch64_linux_nat_target::thread_architecture): Adjust.
3304 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
3305 (task_command_1): Likewise.
3306 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
3307 (aix_thread_target::wait, aix_thread_target::fetch_registers)
3308 (aix_thread_target::store_registers)
3309 (aix_thread_target::thread_alive): Adjust.
3310 * amd64-fbsd-tdep.c: Include "inferior.h".
3311 (amd64fbsd_get_thread_local_address): Pass down target.
3312 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
3313 thread's gdbarch instead of target_gdbarch.
3314 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
3315 get_last_target_status.
3316 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
3317 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
3318 inferiors.
3319 (update_inserted_breakpoint_locations): Skip if inferiors with no
3320 execution.
3321 (update_global_location_list): When handling moribund locations,
3322 find representative inferior for location's pspace, and use thread
3323 count of its process_stratum target.
3324 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
3325 * bsd-uthread.c (bsd_uthread_target::wait): Use
3326 as_process_stratum_target and adjust thread_change_ptid and
3327 add_thread calls.
3328 (bsd_uthread_target::update_thread_list): Use
3329 as_process_stratum_target and adjust find_thread_ptid,
3330 thread_change_ptid and add_thread calls.
3331 * btrace.c (maint_btrace_packet_history_cmd): Adjust
3332 find_thread_ptid call.
3333 * corelow.c (add_to_thread_list): Adjust add_thread call.
3334 (core_target_open): Adjust add_thread_silent and thread_count
3335 calls.
3336 (core_target::pid_to_str): Adjust find_inferior_ptid call.
3337 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
3338 * event-top.c (async_disconnect): Pop targets from all inferiors.
3339 * exec.c (add_target_sections): Push exec target on all inferiors
3340 sharing the program space.
3341 (remove_target_sections): Remove the exec target from all
3342 inferiors sharing the program space.
3343 (exec_on_vfork): New.
3344 * exec.h (exec_on_vfork): Declare.
3345 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
3346 Pass it down.
3347 (fbsd_nat_target::update_thread_list): Adjust.
3348 (fbsd_nat_target::resume): Adjust.
3349 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
3350 down.
3351 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
3352 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
3353 get_thread_arch_regcache call.
3354 * fork-child.c (gdb_startup_inferior): Pass target down to
3355 startup_inferior and set_executing.
3356 * gdbthread.h (struct process_stratum_target): Forward declare.
3357 (add_thread, add_thread_silent, add_thread_with_info)
3358 (in_thread_list): Add process_stratum_target parameter.
3359 (find_thread_ptid(inferior*, ptid_t)): New overload.
3360 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
3361 parameter.
3362 (all_threads()): Delete overload.
3363 (all_threads, all_non_exited_threads): Add process_stratum_target
3364 parameter.
3365 (all_threads_safe): Use brace initialization.
3366 (thread_count): Add process_stratum_target parameter.
3367 (set_resumed, set_running, set_stop_requested, set_executing)
3368 (threads_are_executing, finish_thread_state): Add
3369 process_stratum_target parameter.
3370 (switch_to_thread): Use is_current_thread.
3371 * i386-fbsd-tdep.c: Include "inferior.h".
3372 (i386fbsd_get_thread_local_address): Pass down target.
3373 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
3374 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
3375 have_inferiors check.
3376 * inf-ptrace.c (inf_ptrace_target::create_inferior)
3377 (inf_ptrace_target::attach): Adjust.
3378 * infcall.c (run_inferior_call): Adjust.
3379 * infcmd.c (run_command_1): Pass target to
3380 scoped_finish_thread_state.
3381 (proceed_thread_callback): Skip inferiors with no execution.
3382 (continue_command): Rename 'all_threads' local to avoid hiding
3383 'all_threads' function. Adjust get_last_target_status call.
3384 (prepare_one_step): Adjust set_running call.
3385 (signal_command): Use user_visible_resume_target. Compare thread
3386 pointers instead of inferior_ptid.
3387 (info_program_command): Adjust to pass down target.
3388 (attach_command): Mark target's 'thread_executing' flag.
3389 (stop_current_target_threads_ns): New, factored out from ...
3390 (interrupt_target_1): ... this. Switch inferior before making
3391 target calls.
3392 * inferior-iter.h
3393 (struct all_inferiors_iterator, struct all_inferiors_range)
3394 (struct all_inferiors_safe_range)
3395 (struct all_non_exited_inferiors_range): Filter on
3396 process_stratum_target too. Remove explicit.
3397 * inferior.c (inferior::inferior): Push dummy target on target
3398 stack.
3399 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
3400 Add process_stratum_target parameter, and pass it down.
3401 (have_live_inferiors): Adjust.
3402 (switch_to_inferior_and_push_target): New.
3403 (add_inferior_command, clone_inferior_command): Handle
3404 "-no-connection" parameter. Use
3405 switch_to_inferior_and_push_target.
3406 (_initialize_inferior): Mention "-no-connection" option in
3407 the help of "add-inferior" and "clone-inferior" commands.
3408 * inferior.h: Include "process-stratum-target.h".
3409 (interrupt_target_1): Use bool.
3410 (struct inferior) <push_target, unpush_target, target_is_pushed,
3411 find_target_beneath, top_target, process_target, target_at,
3412 m_stack>: New.
3413 (discard_all_inferiors): Delete.
3414 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
3415 (all_inferiors, all_non_exited_inferiors): Add
3416 process_stratum_target parameter.
3417 * infrun.c: Include "gdb_select.h" and <unordered_map>.
3418 (target_last_proc_target): New global.
3419 (follow_fork_inferior): Push target on new inferior. Pass target
3420 to add_thread_silent. Call exec_on_vfork. Handle target's
3421 reference count.
3422 (follow_fork): Adjust get_last_target_status call. Also consider
3423 target.
3424 (follow_exec): Push target on new inferior.
3425 (struct execution_control_state) <target>: New field.
3426 (user_visible_resume_target): New.
3427 (do_target_resume): Call target_async.
3428 (resume_1): Set target's threads_executing flag. Consider resume
3429 target.
3430 (commit_resume_all_targets): New.
3431 (proceed): Also consider resume target. Skip threads of inferiors
3432 with no execution. Commit resumtion in all targets.
3433 (start_remote): Pass current inferior to wait_for_inferior.
3434 (infrun_thread_stop_requested): Consider target as well. Pass
3435 thread_info pointer to clear_inline_frame_state instead of ptid.
3436 (infrun_thread_thread_exit): Consider target as well.
3437 (random_pending_event_thread): New inferior parameter. Use it.
3438 (do_target_wait): Rename to ...
3439 (do_target_wait_1): ... this. Add inferior parameter, and pass it
3440 down.
3441 (threads_are_resumed_pending_p, do_target_wait): New.
3442 (prepare_for_detach): Adjust calls.
3443 (wait_for_inferior): New inferior parameter. Handle it. Use
3444 do_target_wait_1 instead of do_target_wait.
3445 (fetch_inferior_event): Adjust. Switch to representative
3446 inferior. Pass target down.
3447 (set_last_target_status): Add process_stratum_target parameter.
3448 Save target in global.
3449 (get_last_target_status): Add process_stratum_target parameter and
3450 handle it.
3451 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
3452 (context_switch): Check inferior_ptid == null_ptid before calling
3453 inferior_thread().
3454 (get_inferior_stop_soon): Pass down target.
3455 (wait_one): Rename to ...
3456 (poll_one_curr_target): ... this.
3457 (struct wait_one_event): New.
3458 (wait_one): New.
3459 (stop_all_threads): Adjust.
3460 (handle_no_resumed, handle_inferior_event): Adjust to consider the
3461 event's target.
3462 (switch_back_to_stepped_thread): Also consider target.
3463 (print_stop_event): Update.
3464 (normal_stop): Update. Also consider the resume target.
3465 * infrun.h (wait_for_inferior): Remove declaration.
3466 (user_visible_resume_target): New declaration.
3467 (get_last_target_status, set_last_target_status): New
3468 process_stratum_target parameter.
3469 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
3470 process_stratum_target parameter, and use it.
3471 (clear_inline_frame_state (thread_info*)): New.
3472 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
3473 process_stratum_target parameter.
3474 (clear_inline_frame_state (thread_info*)): Declare.
3475 * linux-fork.c (delete_checkpoint_command): Pass target down to
3476 find_thread_ptid.
3477 (checkpoint_command): Adjust.
3478 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
3479 instead of just tweaking inferior_ptid.
3480 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
3481 (exit_lwp): Pass target down to find_thread_ptid.
3482 (attach_proc_task_lwp_callback): Pass target down to
3483 add_thread/set_running/set_executing.
3484 (linux_nat_target::attach): Pass target down to
3485 thread_change_ptid.
3486 (get_detach_signal): Pass target down to find_thread_ptid.
3487 Consider last target status's target.
3488 (linux_resume_one_lwp_throw, resume_lwp)
3489 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
3490 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
3491 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
3492 (linux_nat_target::async_wait_fd): New.
3493 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
3494 target down.
3495 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
3496 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
3497 * linux-thread-db.c (struct thread_db_info::process_target): New
3498 field.
3499 (add_thread_db_info): Save target.
3500 (get_thread_db_info): New process_stratum_target parameter. Also
3501 match target.
3502 (delete_thread_db_info): New process_stratum_target parameter.
3503 Also match target.
3504 (thread_from_lwp): Adjust to pass down target.
3505 (thread_db_notice_clone): Pass down target.
3506 (check_thread_db_callback): Pass down target.
3507 (try_thread_db_load_1): Always push the thread_db target.
3508 (try_thread_db_load, record_thread): Pass target down.
3509 (thread_db_target::detach): Pass target down. Always unpush the
3510 thread_db target.
3511 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
3512 target down. Always unpush the thread_db target.
3513 (find_new_threads_callback, thread_db_find_new_threads_2)
3514 (thread_db_target::update_thread_list): Pass target down.
3515 (thread_db_target::pid_to_str): Pass current inferior down.
3516 (thread_db_target::get_thread_local_address): Pass target down.
3517 (thread_db_target::resume, maintenance_check_libthread_db): Pass
3518 target down.
3519 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
3520 * procfs.c (procfs_target::procfs_init_inferior): Declare.
3521 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
3522 (procfs_init_inferior): Rename to ...
3523 (procfs_target::procfs_init_inferior): ... this and adjust.
3524 (procfs_target::create_inferior, procfs_notice_thread)
3525 (procfs_do_thread_registers): Adjust.
3526 * ppc-fbsd-tdep.c: Include "inferior.h".
3527 (ppcfbsd_get_thread_local_address): Pass down target.
3528 * proc-service.c (ps_xfer_memory): Switch current inferior and
3529 program space as well.
3530 (get_ps_regcache): Pass target down.
3531 * process-stratum-target.c
3532 (process_stratum_target::thread_address_space)
3533 (process_stratum_target::thread_architecture): Pass target down.
3534 * process-stratum-target.h
3535 (process_stratum_target::threads_executing): New field.
3536 (as_process_stratum_target): New.
3537 * ravenscar-thread.c
3538 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
3539 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
3540 down.
3541 * record-btrace.c (record_btrace_target::info_record): Adjust.
3542 (record_btrace_target::record_method)
3543 (record_btrace_target::record_is_replaying)
3544 (record_btrace_target::fetch_registers)
3545 (get_thread_current_frame_id, record_btrace_target::resume)
3546 (record_btrace_target::wait, record_btrace_target::stop): Pass
3547 target down.
3548 * record-full.c (record_full_wait_1): Switch to event thread.
3549 Pass target down.
3550 * regcache.c (regcache::regcache)
3551 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
3552 process_stratum_target parameter and handle it.
3553 (current_thread_target): New global.
3554 (get_thread_regcache): Add process_stratum_target parameter and
3555 handle it. Switch inferior before calling target method.
3556 (get_thread_regcache): Pass target down.
3557 (get_thread_regcache_for_ptid): Pass target down.
3558 (registers_changed_ptid): Add process_stratum_target parameter and
3559 handle it.
3560 (registers_changed_thread, registers_changed): Pass target down.
3561 (test_get_thread_arch_aspace_regcache): New.
3562 (current_regcache_test): Define a couple local test_target_ops
3563 instances and use them for testing.
3564 (readwrite_regcache): Pass process_stratum_target parameter.
3565 (cooked_read_test, cooked_write_test): Pass mock_target down.
3566 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
3567 (get_thread_arch_aspace_regcache): Add process_stratum_target
3568 parameter.
3569 (regcache::target): New method.
3570 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
3571 (regcache::registers_changed_ptid): Add process_stratum_target
3572 parameter.
3573 (regcache::m_target): New field.
3574 (registers_changed_ptid): Add process_stratum_target parameter.
3575 * remote.c (remote_state::supports_vCont_probed): New field.
3576 (remote_target::async_wait_fd): New method.
3577 (remote_unpush_and_throw): Add remote_target parameter.
3578 (get_current_remote_target): Adjust.
3579 (remote_target::remote_add_inferior): Push target.
3580 (remote_target::remote_add_thread)
3581 (remote_target::remote_notice_new_inferior)
3582 (get_remote_thread_info): Pass target down.
3583 (remote_target::update_thread_list): Skip threads of inferiors
3584 bound to other targets. (remote_target::close): Don't discard
3585 inferiors. (remote_target::add_current_inferior_and_thread)
3586 (remote_target::process_initial_stop_replies)
3587 (remote_target::start_remote)
3588 (remote_target::remote_serial_quit_handler): Pass down target.
3589 (remote_target::remote_unpush_target): New remote_target
3590 parameter. Unpush the target from all inferiors.
3591 (remote_target::remote_unpush_and_throw): New remote_target
3592 parameter. Pass it down.
3593 (remote_target::open_1): Check whether the current inferior has
3594 execution instead of checking whether any inferior is live. Pass
3595 target down.
3596 (remote_target::remote_detach_1): Pass down target. Use
3597 remote_unpush_target.
3598 (extended_remote_target::attach): Pass down target.
3599 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
3600 (remote_target::append_resumption): Pass down target.
3601 (remote_target::append_pending_thread_resumptions)
3602 (remote_target::remote_resume_with_hc, remote_target::resume)
3603 (remote_target::commit_resume): Pass down target.
3604 (remote_target::remote_stop_ns): Check supports_vCont_probed.
3605 (remote_target::interrupt_query)
3606 (remote_target::remove_new_fork_children)
3607 (remote_target::check_pending_events_prevent_wildcard_vcont)
3608 (remote_target::remote_parse_stop_reply)
3609 (remote_target::process_stop_reply): Pass down target.
3610 (first_remote_resumed_thread): New remote_target parameter. Pass
3611 it down.
3612 (remote_target::wait_as): Pass down target.
3613 (unpush_and_perror): New remote_target parameter. Pass it down.
3614 (remote_target::readchar, remote_target::remote_serial_write)
3615 (remote_target::getpkt_or_notif_sane_1)
3616 (remote_target::kill_new_fork_children, remote_target::kill): Pass
3617 down target.
3618 (remote_target::mourn_inferior): Pass down target. Use
3619 remote_unpush_target.
3620 (remote_target::core_of_thread)
3621 (remote_target::remote_btrace_maybe_reopen): Pass down target.
3622 (remote_target::pid_to_exec_file)
3623 (remote_target::thread_handle_to_thread_info): Pass down target.
3624 (remote_target::async_wait_fd): New.
3625 * riscv-fbsd-tdep.c: Include "inferior.h".
3626 (riscv_fbsd_get_thread_local_address): Pass down target.
3627 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
3628 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
3629 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
3630 Adjust.
3631 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
3632 * solib-svr4.c (enable_break): Pass down target.
3633 * spu-multiarch.c (parse_spufs_run): Pass down target.
3634 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
3635 * target-delegates.c: Regenerate.
3636 * target.c (g_target_stack): Delete.
3637 (current_top_target): Return the current inferior's top target.
3638 (target_has_execution_1): Refer to the passed-in inferior's top
3639 target.
3640 (target_supports_terminal_ours): Check whether the initial
3641 inferior was already created.
3642 (decref_target): New.
3643 (target_stack::push): Incref/decref the target.
3644 (push_target, push_target, unpush_target): Adjust.
3645 (target_stack::unpush): Defref target.
3646 (target_is_pushed): Return bool. Adjust to refer to the current
3647 inferior's target stack.
3648 (dispose_inferior): Delete, and inline parts ...
3649 (target_preopen): ... here. Only dispose of the current inferior.
3650 (target_detach): Hold strong target reference while detaching.
3651 Pass target down.
3652 (target_thread_name): Add assertion.
3653 (target_resume): Pass down target.
3654 (target_ops::beneath, find_target_at): Adjust to refer to the
3655 current inferior's target stack.
3656 (get_dummy_target): New.
3657 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
3658 has a thread running.
3659 (initialize_targets): Rename to ...
3660 (_initialize_target): ... this.
3661 * target.h: Include "gdbsupport/refcounted-object.h".
3662 (struct target_ops): Inherit refcounted_object.
3663 (target_ops::shortname, target_ops::longname): Make const.
3664 (target_ops::async_wait_fd): New method.
3665 (decref_target): Declare.
3666 (struct target_ops_ref_policy): New.
3667 (target_ops_ref): New typedef.
3668 (get_dummy_target): Declare function.
3669 (target_is_pushed): Return bool.
3670 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
3671 (all_matching_threads_iterator::all_matching_threads_iterator):
3672 Handle filter target.
3673 * thread-iter.h (struct all_matching_threads_iterator, struct
3674 all_matching_threads_range, class all_non_exited_threads_range):
3675 Filter by target too. Remove explicit.
3676 * thread.c (threads_executing): Delete.
3677 (inferior_thread): Pass down current inferior.
3678 (clear_thread_inferior_resources): Pass down thread pointer
3679 instead of ptid_t.
3680 (add_thread_silent, add_thread_with_info, add_thread): Add
3681 process_stratum_target parameter. Use it for thread and inferior
3682 searches.
3683 (is_current_thread): New.
3684 (thread_info::deletable): Use it.
3685 (find_thread_ptid, thread_count, in_thread_list)
3686 (thread_change_ptid, set_resumed, set_running): New
3687 process_stratum_target parameter. Pass it down.
3688 (set_executing): New process_stratum_target parameter. Pass it
3689 down. Adjust reference to 'threads_executing'.
3690 (threads_are_executing): New process_stratum_target parameter.
3691 Adjust reference to 'threads_executing'.
3692 (set_stop_requested, finish_thread_state): New
3693 process_stratum_target parameter. Pass it down.
3694 (switch_to_thread): Also match inferior.
3695 (switch_to_thread): New process_stratum_target parameter. Pass it
3696 down.
3697 (update_threads_executing): Reimplement.
3698 * top.c (quit_force): Pop targets from all inferior.
3699 (gdb_init): Don't call initialize_targets.
3700 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
3701 Declare.
3702 (windows_add_thread, windows_delete_thread): Adjust.
3703 (get_windows_debug_event): Rename to ...
3704 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
3705 * tracefile-tfile.c (tfile_target_open): Pass down target.
3706 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
3707 Forward declare.
3708 (switch_to_thread): Add process_stratum_target parameter.
3709 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
3710 parameter. Use it.
3711 (mi_on_resume): Pass target down.
3712 * nat/fork-inferior.c (startup_inferior): Add
3713 process_stratum_target parameter. Pass it down.
3714 * nat/fork-inferior.h (startup_inferior): Add
3715 process_stratum_target parameter.
3716 * python/py-threadevent.c (py_get_event_thread): Pass target down.
3717
3718 2020-01-10 Pedro Alves <palves@redhat.com>
3719
3720 * remote.c (remote_target::start_remote): Don't set inferior_ptid
3721 directly. Instead find the first thread in the thread list and
3722 use switch_to_thread.
3723
3724 2020-01-10 Pedro Alves <palves@redhat.com>
3725
3726 * remote.c (remote_target::remote_add_inferior): Don't bind a
3727 process to the current inferior if the current inferior is already
3728 bound to a process.
3729
3730 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3731 Pedro Alves <palves@redhat.com>
3732
3733 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
3734 If no process is specified, return null_ptid instead of
3735 inferior_ptid.
3736 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
3737 TARGET_WAITKIND_SIGNALLED with no pid.
3738
3739 2020-01-10 Pedro Alves <palves@redhat.com>
3740
3741 * remote.c (first_remote_resumed_thread): New.
3742 (remote_target::wait_as): Use it as default event_ptid instead of
3743 inferior_ptid.
3744
3745 2020-01-10 Pedro Alves <palves@redhat.com>
3746
3747 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
3748
3749 2020-01-10 Pedro Alves <palves@redhat.com>
3750
3751 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
3752 not -1.
3753
3754 2020-01-10 Pedro Alves <palves@redhat.com>
3755
3756 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
3757 ptid to get_last_target_status.
3758 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
3759 ptid to get_last_target_status.
3760 * infcmd.c (continue_command): Don't pass a target_waitstatus to
3761 get_last_target_status.
3762 (info_program_command): Don't pass a target_waitstatus to
3763 get_last_target_status.
3764 * infrun.c (init_wait_for_inferior): Use
3765 nullify_last_target_wait_ptid.
3766 (get_last_target_status): Handle nullptr arguments.
3767 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
3768 (print_stop_event): Don't pass a ptid to get_last_target_status.
3769 (normal_stop): Don't pass a ptid to get_last_target_status.
3770 * infrun.h (get_last_target_status, set_last_target_status): Move
3771 comments here and update.
3772 (nullify_last_target_wait_ptid): Declare.
3773 * linux-fork.c (fork_load_infrun_state): Remove local extern
3774 declaration of nullify_last_target_wait_ptid.
3775 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
3776 to get_last_target_status.
3777
3778 2020-01-10 Pedro Alves <palves@redhat.com>
3779
3780 * gdbthread.h (scoped_restore_current_thread)
3781 <dont_restore, restore, m_dont_restore>: Declare.
3782 * thread.c (thread_alive): Add assertion. Return bool.
3783 (switch_to_thread_if_alive): New.
3784 (prune_threads): Switch inferior/thread.
3785 (print_thread_info_1): Switch thread before calling target methods.
3786 (scoped_restore_current_thread::restore): New, factored out from
3787 ...
3788 (scoped_restore_current_thread::~scoped_restore_current_thread):
3789 ... this.
3790 (scoped_restore_current_thread::scoped_restore_current_thread):
3791 Add assertion.
3792 (thread_apply_all_command, thread_select): Use
3793 switch_to_thread_if_alive.
3794 * infrun.c (proceed, restart_threads, handle_signal_stop)
3795 (switch_back_to_stepped_thread): Switch current thread before
3796 calling target methods.
3797
3798 2020-01-10 Pedro Alves <palves@redhat.com>
3799
3800 * inferior.c (switch_to_inferior_no_thread): New function,
3801 factored out from ...
3802 (inferior_command): ... here.
3803 * inferior.h (switch_to_inferior_no_thread): Declare.
3804 * mi/mi-main.c (run_one_inferior): Use
3805 switch_to_inferior_no_thread.
3806
3807 2020-01-10 Pedro Alves <palves@redhat.com>
3808
3809 * infcmd.c (kill_command): Remove dead code.
3810
3811 2020-01-10 Pedro Alves <palves@redhat.com>
3812
3813 * remote.c (remote_target::mourn_inferior): No longer check
3814 whether the target is running.
3815
3816 2020-01-10 Pedro Alves <palves@redhat.com>
3817
3818 * corelow.c (core_target::has_execution): Change parameter type to
3819 inferior pointer.
3820 * inferior.c (number_of_live_inferiors): Use
3821 inferior::has_execution instead of target_has_execution_1.
3822 * inferior.h (inferior::has_execution): New.
3823 * linux-thread-db.c (thread_db_target::update_thread_list): Use
3824 inferior::has_execution instead of target_has_execution_1.
3825 * process-stratum-target.c
3826 (process_stratum_target::has_execution): Change parameter type to
3827 inferior pointer. Check the inferior's PID instead of
3828 inferior_ptid.
3829 * process-stratum-target.h
3830 (process_stratum_target::has_execution): Change parameter type to
3831 inferior pointer.
3832 * record-full.c (record_full_core_target::has_execution): Change
3833 parameter type to inferior pointer.
3834 * target.c (target_has_execution_1): Change parameter type to
3835 inferior pointer.
3836 (target_has_execution_current): Adjust.
3837 * target.h (target_ops::has_execution): Change parameter type to
3838 inferior pointer.
3839 (target_has_execution_1): Change parameter type to inferior
3840 pointer. Change return type to bool.
3841 * tracefile.h (tracefile_target::has_execution): Change parameter
3842 type to inferior pointer.
3843
3844 2020-01-10 Pedro Alves <palves@redhat.com>
3845
3846 * exceptions.c (print_flush): Remove current_top_target() check.
3847
3848 2020-01-10 Pedro Alves <palves@redhat.com>
3849
3850 * remote.c (show_remote_exec_file): Show the current inferior's
3851 exec-file instead of the command variable's value.
3852
3853 2020-01-10 Pedro Alves <palves@redhat.com>
3854
3855 * record-full.c (record_full_resume_ptid): New global.
3856 (record_full_target::resume): Set it.
3857 (record_full_wait_1): Use record_full_resume_ptid instead of
3858 inferior_ptid.
3859
3860 2020-01-10 Pedro Alves <palves@redhat.com>
3861
3862 * gdbthread.h (scoped_restore_current_thread)
3863 <dont_restore, restore, m_dont_restore>: Declare.
3864 * thread.c (thread_alive): Add assertion. Return bool.
3865 (switch_to_thread_if_alive): New.
3866 (prune_threads): Switch inferior/thread.
3867 (print_thread_info_1): Switch thread before calling target methods.
3868 (scoped_restore_current_thread::restore): New, factored out from
3869 ...
3870 (scoped_restore_current_thread::~scoped_restore_current_thread):
3871 ... this.
3872 (scoped_restore_current_thread::scoped_restore_current_thread):
3873 Add assertion.
3874 (thread_apply_all_command, thread_select): Use
3875 switch_to_thread_if_alive.
3876
3877 2020-01-10 George Barrett <bob@bob131.so>
3878
3879 * stap-probe.c (stap_modify_semaphore): Don't check for null
3880 semaphores.
3881 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
3882 for null semaphores.
3883
3884 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
3885
3886 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
3887 all source windows, and maintain horizontal scroll status while
3888 doing so.
3889
3890 2020-01-09 Tom Tromey <tom@tromey.com>
3891
3892 PR tui/18932:
3893 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
3894 update_source_window, not print_source_lines.
3895
3896 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
3897
3898 * tui/tui.c (tui_enable): Register tui hooks after calling
3899 tui_display_main.
3900
3901 2020-01-09 Christian Biesinger <cbiesinger@google.com>
3902
3903 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
3904
3905 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
3906
3907 * thread.c (print_thread_info_1): Fix indentation.
3908
3909 2020-01-09 Christian Biesinger <cbiesinger@google.com>
3910
3911 * symtab.c (general_symbol_info::compute_and_set_names): Move the
3912 unique_xmalloc_ptr outside the if to always free the demangled name.
3913
3914 2020-01-08 Tom Tromey <tromey@adacore.com>
3915
3916 * xcoffread.c (enter_line_range, read_xcoff_symtab)
3917 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
3918 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
3919 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
3920 Remove.
3921 (section_offsets): New typedef.
3922 * symtab.c (fixup_section, get_msymbol_address): Update.
3923 * symmisc.c (dump_msymbols): Update.
3924 * symfile.h (relative_addr_info_to_section_offsets)
3925 (symfile_map_offsets_to_segments): Update.
3926 * symfile.c (build_section_addr_info_from_objfile)
3927 (init_objfile_sect_indices): Update.
3928 (struct place_section_arg): Change type of "offsets".
3929 (place_section): Update.
3930 (relative_addr_info_to_section_offsets): Change type of
3931 "section_offsets". Remove "num_sections" parameter.
3932 (default_symfile_offsets, syms_from_objfile_1)
3933 (set_objfile_default_section_offset): Update.
3934 (reread_symbols): No need to preserve section offsets by hand.
3935 (symfile_map_offsets_to_segments): Change type of "offsets".
3936 * stap-probe.c (relocate_address): Update.
3937 * stabsread.h (process_one_symbol): Update.
3938 * solib-target.c (struct lm_info_target) <offsets>: Change type.
3939 (solib_target_relocate_section_addresses): Update.
3940 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
3941 Update.
3942 * solib-frv.c (frv_relocate_main_executable): Update.
3943 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
3944 * solib-aix.c (solib_aix_get_section_offsets): Change return
3945 type.
3946 (solib_aix_solib_create_inferior_hook): Update.
3947 * remote.c (remote_target::get_offsets): Update.
3948 * psymtab.c (find_pc_sect_psymtab): Update.
3949 * psympriv.h (struct partial_symbol) <address, text_low,
3950 text_high>: Update.
3951 * objfiles.h (obj_section_offset): Update.
3952 (struct objfile) <section_offsets>: Change type.
3953 <num_sections>: Remove.
3954 (objfile_relocate): Update.
3955 * objfiles.c (entry_point_address_query): Update
3956 (relocate_one_symbol): Change type of "section_offsets".
3957 (objfile_relocate1, objfile_relocate1): Change type of
3958 "new_offsets".
3959 (objfile_rebase1): Update.
3960 * mipsread.c (mipscoff_symfile_read): Update.
3961 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
3962 parameter.
3963 * mdebugread.c (parse_symbol): Change type of "section_offsets".
3964 (parse_external, psymtab_to_symtab_1): Update.
3965 * machoread.c (macho_symfile_offsets): Update.
3966 * ia64-tdep.c (ia64_find_unwind_table): Update.
3967 * hppa-tdep.c (read_unwind_info): Update.
3968 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
3969 * dwarf2read.c (create_addrmap_from_index)
3970 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
3971 (process_psymtab_comp_unit_reader, add_partial_symbol)
3972 (add_partial_subprogram, process_full_comp_unit)
3973 (read_file_scope, read_func_scope, read_lexical_block_scope)
3974 (read_call_site_scope, dwarf2_rnglists_process)
3975 (dwarf2_ranges_process, dwarf2_ranges_read)
3976 (dwarf_decode_lines_1, var_decode_location, new_symbol)
3977 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
3978 Update.
3979 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
3980 Update.
3981 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
3982 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
3983 (process_one_symbol): Change type of "section_offsets".
3984 * ctfread.c (get_objfile_text_range): Update.
3985 * coffread.c (coff_symtab_read, enter_linenos)
3986 (process_coff_symbol): Update.
3987 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3988 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
3989
3990 2020-01-08 Tom Tromey <tromey@adacore.com>
3991
3992 * dwarf2read.c (parse_macro_definition): Use std::string.
3993 (parse_macro_definition): Likewise.
3994
3995 2020-01-08 Tom Tromey <tromey@adacore.com>
3996
3997 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
3998 (ATTR_ALLOC_CHUNK): Remove.
3999
4000 2020-01-08 Tom Tromey <tromey@adacore.com>
4001
4002 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
4003
4004 2020-01-08 Tom Tromey <tromey@adacore.com>
4005
4006 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
4007 (dwarf2_compute_name, open_dwo_file): Likewise.
4008 (process_enumeration_scope): Use std::vector.
4009 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
4010 (partial_die_info::fixup, dwarf2_start_subfile)
4011 (guess_full_die_structure_name, dwarf2_name): Likewise.
4012 (determine_prefix): Update.
4013 (guess_full_die_structure_name): Make return type const.
4014 (partial_die_full_name): Return unique_xmalloc_ptr.
4015 (DW_FIELD_ALLOC_CHUNK): Remove.
4016
4017 2020-01-07 Tom Tromey <tromey@adacore.com>
4018
4019 PR build/24937:
4020 * stap-probe.c (class stap_static_probe_ops): Add constructor.
4021
4022 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
4023
4024 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
4025
4026 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
4027
4028 * stack.c (print_frame_info): Move disassemble_next_line code
4029 inside source_print block.
4030
4031 2020-01-06 Eli Zaretskii <eliz@gnu.org>
4032
4033 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
4034 gdb/signals.h, as we are now using native signal symbols.
4035
4036 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
4037
4038 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
4039 overflow by an early check of content vs threshold.
4040 * tui/tui-source.c (tui_source_window::line_is_displayed):
4041 Likewise.
4042
4043 2020-01-06 Eli Zaretskii <eliz@gnu.org>
4044
4045 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
4046
4047 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
4048
4049 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
4050 export table if no section contains it's RVA.
4051
4052 2020-01-06 Eli Zaretskii <eliz@gnu.org>
4053
4054 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
4055
4056 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
4057
4058 * source.c (print_source_lines_base): Set last_line_listed.
4059
4060 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
4061
4062 * tui/tui-disasm.c: Remove trailing spaces.
4063
4064 2020-01-06 Eli Zaretskii <eliz@gnu.org>
4065 Pedro Alves <palves@redhat.com>
4066
4067 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
4068 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
4069 (windows_gdb_signal_to_target): New function, uses the above
4070 enumeration to convert GDB internal signal codes to equivalent
4071 Windows codes.
4072 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
4073 * windows-nat.c: Include "gdb_wait.h".
4074 (get_windows_debug_event): Extract the fatal exception from the
4075 exit status and convert to the equivalent Posix signal number.
4076 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
4077 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
4078 * gdbsupport/gdb_wait.c: New file, implements
4079 windows_status_to_termsig.
4080 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
4081 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
4082
4083 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
4084
4085 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
4086 show_layout.
4087
4088 2020-01-05 Luis Machado <luis.machado@linaro.org>
4089
4090 * aarch64-linux-nat.c
4091 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
4092 and bfd_mach_aarch64.
4093
4094 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4095
4096 * ui-file.c (stdio_file::can_emit_style_escape)
4097 (tee_file::can_emit_style_escape): Ensure style is used also on
4098 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
4099 to gdb_stdout.
4100 * main.c (set_gdb_data_directory): Use file style to output the
4101 warning that the given pathname is not a directory.
4102 * top.c (show_history_filename, gdb_safe_append_history)
4103 (show_gdb_datadir): Use file style.
4104
4105 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
4106
4107 * solib-target.c (struct lm_info_target):
4108 Change offsets to be a unique_xmalloc_ptr.
4109 (solib_target_relocate_section_addresses): Update.
4110
4111 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
4112
4113 * windows-nat.c (windows_clear_solib): Free so_list linked list.
4114
4115 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
4116
4117 * MAINTAINERS (Write After Approval): Add myself.
4118
4119 2020-01-02 Luis Machado <luis.machado@linaro.org>
4120
4121 * proc-service.c (get_ps_regcache): Remove reference to obsolete
4122 Cell BE architecture.
4123 * target.h (struct target_ops) <thread_architecture>: Likewise.
4124
4125 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
4126
4127 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4128
4129 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
4130
4131 * MAINTAINERS (Write After Approval): Add myself.
4132
4133 2020-01-01 Joel Brobecker <brobecker@adacore.com>
4134
4135 * gdbarch.sh: Update copyright year range of generated files.
4136
4137 2020-01-01 Joel Brobecker <brobecker@adacore.com>
4138
4139 Update copyright year range in all GDB files.
4140
4141 2020-01-01 Joel Brobecker <brobecker@adacore.com>
4142
4143 * copyright.py: Convert to Python 3.
4144
4145 2020-01-01 Joel Brobecker <brobecker@adacore.com>
4146
4147 * copyright.py: Adapt after move of gnulib directory from gdb
4148 directory to toplevel directory.
4149
4150 2020-01-01 Joel Brobecker <brobecker@adacore.com>
4151
4152 * copyright.py (main): Exit if run from the wrong directory.
4153
4154 2020-01-01 Joel Brobecker <brobecker@adacore.com>
4155
4156 * top.c (print_gdb_version): Change copyright year to 2020.
4157
4158 2020-01-01 Joel Brobecker <brobecker@adacore.com>
4159
4160 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
4161
4162 For older changes see ChangeLog-2019.
4163 \f
4164 Local Variables:
4165 mode: change-log
4166 left-margin: 8
4167 fill-column: 74
4168 version-control: never
4169 coding: utf-8
4170 End:
This page took 0.112407 seconds and 5 git commands to generate.