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