]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Reimplement "tui reg" command
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
0dbc2fc7
TT
12020-02-22 Tom Tromey <tom@tromey.com>
2
3 * tui/tui-regs.c (tui_reg_layout): Remove.
4 (tui_reg_command): Use tui_regs_layout.
5 * tui/tui-layout.h (tui_reg_command): Declare.
6 * tui/tui-layout.c (tui_reg_command): New function.
7
5afe342e
TT
82020-02-22 Tom Tromey <tom@tromey.com>
9
10 * tui/tui.c (tui_rl_delete_other_windows): Call
11 tui_remove_some_windows.
12 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
13 Declare method.
14 (class tui_layout_window) <remove_windows>: New method.
15 (class tui_layout_split) <remove_windows>: Declare.
16 (tui_remove_some_windows): Declare.
17 * tui/tui-layout.c (tui_remove_some_windows): New function.
18 (tui_layout_split::remove_windows): New method.
19
427326a8
TT
202020-02-22 Tom Tromey <tom@tromey.com>
21
22 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
23 * tui/tui-layout.h (tui_next_layout): Declare.
24 * tui/tui-layout.c (tui_next_layout): New function.
25
3fe12b6d
TT
262020-02-22 Tom Tromey <tom@tromey.com>
27
28 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
29 correct coordinates.
30
59b8b5d2
TT
312020-02-22 Tom Tromey <tom@tromey.com>
32
33 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
34 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
35 DATA_WIN case.
36
2a3d458b
TT
372020-02-22 Tom Tromey <tom@tromey.com>
38
39 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
40 TUI_DISASM_WIN, not tui_win_list.
41
3f0cbb04
TT
422020-02-22 Tom Tromey <tom@tromey.com>
43
44 * valprint.c (generic_val_print_enum_1)
45 (val_print_type_code_flags): Style member names.
46 * rust-lang.c (val_print_struct, rust_print_enum)
47 (rust_print_struct_def, rust_internal_print_type): Style member
48 names.
49 * p-valprint.c (pascal_object_print_value_fields): Style member
50 names. Only call fprintf_symbol_filtered for static members.
51 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
52 * f-valprint.c (f_val_print): Style member names.
53 * f-typeprint.c (f_type_print_base): Style member names.
54 * cp-valprint.c (cp_print_value_fields): Style member names. Only
55 call fprintf_symbol_filtered for static members.
56 (cp_print_class_member): Style member names.
57 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
58 member names.
59 * ada-valprint.c (ada_print_scalar): Style enum names.
60 (ada_val_print_enum): Likewise.
61 * ada-typeprint.c (print_enum_type): Style enum names.
62
d4d947ae
TT
632020-02-21 Tom Tromey <tom@tromey.com>
64
65 * psympriv.h (struct partial_symtab): Update comment.
66
e94e944b
TT
672020-02-21 Tom Tromey <tromey@adacore.com>
68
69 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
70 type is CORE_ADDR.
71
1eb73179
TV
722020-02-21 Tom de Vries <tdevries@suse.de>
73
74 PR gdb/25534
75 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
76 if dependencies[i]->user != NULL.
77
4f180d53
AT
782020-02-21 Ali Tamur <tamur@google.com>
79
80 * dwarf2/read.c (dwarf2_name): Add null check.
81
22b6cd70
TT
822020-02-20 Tom Tromey <tom@tromey.com>
83
84 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
85 ">=", in binary search.
86 (dwarf2_find_containing_comp_unit): New overload.
87 (run_test): New self-test.
88 (_initialize_dwarf2_read): Register new test.
89
bd0cf5a6
NC
902020-02-20 Nelson Chu <nelson.chu@sifive.com>
91
92 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
93 * riscv-tdep.h: Likewise.
94 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
95 rv32-only CSR.
96 * features/riscv/64bit-csr.xml: Regenerated.
97
3f702acd
SDJ
982020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
99 Tom Tromey <tom@tromey.com>
100
101 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
102 of 'fputc_unfiltered'.
103 (putchar_unfiltered): Call 'fputc_unfiltered'.
104 (fputc_unfiltered): Call 'fputs_unfiltered'.
105
d13c7322
AB
1062020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
107
108 * config.in: Regenerate.
109 * configure: Regenerate.
110 * configure.ac: Add --with-python-libdir option.
111 * main.c: Use WITH_PYTHON_LIBDIR.
112
869d8950
TT
1132020-02-19 Tom Tromey <tom@tromey.com>
114
115 * symtab.c (general_symbol_info::compute_and_set_names): Use
116 obstack_strndup. Simplify call to symbol_set_demangled_name.
117
298e9637
SM
1182020-02-19 Simon Marchi <simon.marchi@efficios.com>
119
120 * dwarf2/read.c (allocate_signatured_type_table,
121 allocate_dwo_unit_table, allocate_type_unit_groups_table,
122 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
123 Remove objfile parameter, update all callers.
124
08410482
DE
1252020-02-19 Doug Evans <dje@google.com>
126
127 PR rust/25535
128 * rust-lang.c (rust_print_enum): Apply embedded_offset to
129 rust_enum_variant calculation.
130
dfdeeca1
TT
1312020-02-19 Tom Tromey <tromey@adacore.com>
132
133 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
134
2ef5453b
TT
1352020-02-19 Tom Tromey <tromey@adacore.com>
136
137 * ada-lang.c (cache_symbol): Use obstack_strdup.
138
9f1528a1
AB
1392020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
140
141 * configure: Regenerate.
142
d3c22fa8
TT
1432020-02-19 Tom Tromey <tromey@adacore.com>
144
145 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
146 NULL check.
147
bf84f706
MR
1482020-02-19 Maciej W. Rozycki <macro@wdc.com>
149
150 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
151
d1c9b20f
AB
1522020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
153
154 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
155 if GDBSERVER is not defined.
156 (riscv_tdesc_cache): Likewise, also store const target_desc.
157 (STATIC_IN_GDB): Define.
158 (riscv_create_target_description): Update declaration with
159 STATIC_IN_GDB.
160 (riscv_lookup_target_description): New function, only define if
161 GDBSERVER is not defined.
162 * arch/riscv.h (riscv_create_target_description): Declare only
163 when GDBSERVER is defined.
164 (riscv_lookup_target_description): New declaration when GDBSERVER
165 is not defined.
166 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
167 (riscv_linux_read_features): ...this, and return
168 riscv_gdbarch_features instead of target_desc.
169 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
170 (riscv_linux_read_description): Rename to...
171 (riscv_linux_read_features): ...this.
172 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
173 Update to use riscv_gdbarch_features and
174 riscv_lookup_target_description.
175 * riscv-tdep.c (riscv_find_default_target_description): Use
176 riscv_lookup_target_description instead of
177 riscv_create_target_description.
178
373d7ac0
SM
1792020-02-18 Simon Marchi <simon.marchi@efficios.com>
180
181 * valprint.c (generic_val_print_enum_1): When printing a flag
182 enum with value 0 and there is no enumerator with value 0, print
183 just "0" instead of "(unknown: 0x0)".
184
b29a2df0
SM
1852020-02-18 Simon Marchi <simon.marchi@efficios.com>
186
187 * valprint.c (generic_val_print_enum_1): Print unknown part of
188 flag enum in hex.
189
6740f0cc
SM
1902020-02-18 Simon Marchi <simon.marchi@efficios.com>
191
192 * dwarf2/read.c (update_enumeration_type_from_children): Allow
193 flag enums to contain duplicate enumerators.
194 * valprint.c (generic_val_print_enum_1): Update comment.
195
edd45eb0
SM
1962020-02-18 Simon Marchi <simon.marchi@efficios.com>
197
198 * dwarf2/read.c: Include "count-one-bits.h".
199 (update_enumeration_type_from_children): If an enumerator has
200 multiple bits set, don't treat the enumeration as a "flag enum".
201 * valprint.c (generic_val_print_enum_1): Assert that enumerators
202 of flag enums have 0 or 1 bit set.
203
6d0cf446
BE
2042020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
205
206 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
207 conversion.
208 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
209 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
210 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
211 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
212 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
213
7001c1b7
SM
2142020-02-18 Simon Marchi <simon.marchi@efficios.com>
215
216 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
217
fdb61c6c
SM
2182020-02-14 Simon Marchi <simon.marchi@efficios.com>
219
220 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
221 displaced_step_closure_up.
222 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
223 (struct displaced_step_closure_up):
224 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
225 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
226 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
227 Likewise.
228 * gdbarch.sh (displaced_step_copy_insn): Likewise.
229 * gdbarch.c, gdbarch.h: Re-generate.
230 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
231 displaced_step_closure_up.
232 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
233 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
234 * infrun.h (displaced_step_closure_up): New type alias.
235 (struct displaced_step_inferior_state) <step_closure>: Change
236 type to displaced_step_closure_up.
237 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
238 displaced_step_closure_up.
239 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
240
a4a38eb4
TT
2412020-02-14 Tom Tromey <tom@tromey.com>
242
243 * minidebug.c (gnu_debug_key): New global.
244 (find_separate_debug_file_in_section): Use it.
245
e8217e61
SM
2462020-02-14 Simon Marchi <simon.marchi@efficios.com>
247
248 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
249 std::unique_ptr.
250 * gdbarch.c: Re-generate.
251 * gdbarch.h: Re-generate.
252 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
253 change.
254 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
255 type to std::unique_ptr.
256 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
257 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
258 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
259 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
260 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
261 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
262 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
263 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
264 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
265
d8d83535
SM
2662020-02-14 Simon Marchi <simon.marchi@efficios.com>
267
268 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
269 std::unique_ptr.
270 (displaced_step_clear): Rename to...
271 (displaced_step_reset): ... this. Just call displaced->reset ().
272 (displaced_step_clear_cleanup): Rename to...
273 (displaced_step_reset_cleanup): ... this.
274 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
275 (displaced_step_fixup): Likewise.
276 (resume_1): Likewise.
277 (handle_inferior_event): Restore child's memory before calling
278 displaced_step_fixup on the parent.
279 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
280 to std::unique_ptr.
281 <step_closure>: Change type to std::unique_ptr.
282
5f661e03
SM
2832020-02-14 Simon Marchi <simon.marchi@efficios.com>
284
285 * arm-tdep.c: Include count-one-bits.h.
286 (cleanup_block_store_pc): Use count_one_bits.
287 (cleanup_block_load_pc): Use count_one_bits.
288 (arm_copy_block_xfer): Use count_one_bits.
289 (thumb2_copy_block_xfer): Use count_one_bits.
290 (thumb_copy_pop_pc_16bit): Use count_one_bits.
291 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
292 (thumb_get_next_pcs_raw): Use count_one_bits.
293 (arm_get_next_pcs_raw): Use count_one_bits_l.
294 * arch/arm.c (bitcount): Remove.
295 * arch/arm.h (bitcount): Remove.
296
8084e579
TT
2972020-02-14 Tom Tromey <tromey@adacore.com>
298
299 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
300 Update.
301 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
302 * dwarf2/loc.c (call_site_find_chain_1): Return
303 unique_xmalloc_ptr.
304 (call_site_find_chain): Likewise.
305
258bf0ee
RB
3062020-02-14 Richard Biener <rguenther@suse.de>
307
308 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
309 on expression with division operators.
310
f98a8458
AKS
3112020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
312
313 * MAINTAINERS (Write After Approval): Adding myself.
314
d1437c0e
TT
3152020-02-12 Tom Tromey <tom@tromey.com>
316
317 * event-loop.c (event_data, gdb_event, event_handler_func):
318 Remove.
319
3d4560f7
TT
3202020-02-12 Tom Tromey <tom@tromey.com>
321
322 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
323 (dwarf2_frame_objfile_data): Add comment.
324 (find_comp_unit, set_comp_unit): New functions.
325 (dwarf2_frame_find_fde): Use find_comp_unit.
326 (dwarf2_build_frame_info): Use set_comp_unit.
327
21982304
TT
3282020-02-12 Tom Tromey <tom@tromey.com>
329
330 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
331 (comp_unit): Don't initialize objfile.
332 (execute_cfa_program): Add text_offset parameter.
333 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
334 (dwarf2_frame_cache): Update.
335 (dwarf2_build_frame_info): Don't set "objfile" member.
336
4debb237
TT
3372020-02-12 Tom Tromey <tom@tromey.com>
338
339 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
340 (decode_frame_entry): Likewise.
341 (dwarf2_build_frame_info): Update.
342
0d404d44
TT
3432020-02-12 Tom Tromey <tom@tromey.com>
344
345 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
346 (decode_frame_entry_1): Use the comp_unit obstack.
347
a7a3ae5c
TT
3482020-02-12 Tom Tromey <tom@tromey.com>
349
350 * dwarf2/frame.c (struct comp_unit): Add initializers and
351 constructor.
352 (dwarf2_frame_objfile_data): Store a comp_unit.
353 (dwarf2_frame_find_fde): Update.
354 (dwarf2_build_frame_info): Use "new".
355
a9d65418
TT
3562020-02-12 Tom Tromey <tom@tromey.com>
357
358 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
359 (dwarf2_fde_table): Typedef for std::vector.
360 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
361 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
362 (decode_frame_entry): Update.
363 (dwarf2_build_frame_info): Use "new".
364
7559c217
CB
3652020-02-12 Christian Biesinger <cbiesinger@google.com>
366
367 * arm-tdep.c (arm_gdbarch_init): Update.
368 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
369 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
370 have_neon, is_m>: Change to bool.
371
aeefc73c
CB
3722020-02-12 Christian Biesinger <cbiesinger@google.com>
373
374 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
375
d27b8e5f
TT
3762020-02-12 Tom Tromey <tom@tromey.com>
377
378 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
379
cd5900f3
HD
3802020-02-12 Hannes Domani <ssbssa@yahoo.de>
381
382 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
383 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
384
f056b22b
TT
3852020-02-11 Tom Tromey <tom@tromey.com>
386
387 * psymtab.h: Update comment.
388
f92ff6b5
TT
3892020-02-11 Tom Tromey <tom@tromey.com>
390
391 * gdb_obstack.h (struct auto_obstack): Use
392 DISABLE_COPY_AND_ASSIGN.
393
3fd6912b
TT
3942020-02-11 Tom Tromey <tom@tromey.com>
395
396 * dwarf2/frame.h (struct objfile): Don't forward declare.
397
69ed9b74
CB
3982020-02-11 Christian Biesinger <cbiesinger@google.com>
399
400 * cris-tdep.c (cris_supply_gregset): Change signature to match
401 what struct regset expects.
402 (cris_regset): New struct.
403 (fetch_core_registers): Remove.
404 (cris_iterate_over_regset_sections): New function.
405 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
406 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
407
bda874f6
CB
4082020-02-11 Christian Biesinger <cbiesinger@google.com>
409
410 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
411 registers.
412
754e1564
CB
4132020-02-11 Christian Biesinger <cbiesinger@google.com>
414
415 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
416
8ddd8e0e
SM
4172020-02-11 Simon Marchi <simon.marchi@efficios.com>
418
419 * configure: Re-generate.
420
898e7f60
SM
4212020-02-11 Simon Marchi <simon.marchi@efficios.com>
422
423 * configure: Re-generate.
424
58df732b
SM
4252020-02-11 Simon Marchi <simon.marchi@efficios.com>
426
427 * acinclude: Update warning.m4 path.
428 * warning.m4: Move to gdbsupport.
429
da5bd37e
TT
4302020-02-11 Tom Tromey <tromey@adacore.com>
431
432 * remote.c (remote_console_output): Update.
433 * printcmd.c (printf_command): Update.
434 * event-loop.c (gdb_wait_for_event): Update.
435 * linux-nat.c (sigchld_handler): Update.
436 * remote-sim.c (gdb_os_write_stdout): Update.
437 (gdb_os_flush_stdout): Update.
438 (gdb_os_flush_stderr): Update.
439 (gdb_os_write_stderr): Update.
440 * exceptions.c (print_exception): Update.
441 * remote-fileio.c (remote_fileio_func_read): Update.
442 (remote_fileio_func_write): Update.
443 * tui/tui.c (tui_enable): Update.
444 * tui/tui-interp.c (tui_interp::init): Update.
445 * utils.c (init_page_info): Update.
446 (putchar_unfiltered, fputc_unfiltered): Update.
447 (gdb_flush): Update.
448 (emit_style_escape): Update.
449 (flush_wrap_buffer, fputs_maybe_filtered): Update.
450 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
451 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
452 (stderr_file::write): Update.
453 (stderr_file::puts): Update.
454 * ui-file.h (ui_file_isatty, ui_file_write)
455 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
456 (ui_file_puts): Don't declare.
457
85f0dd3c
TV
4582020-02-10 Tom de Vries <tdevries@suse.de>
459
460 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
461 sentinel to char *.
462
2e927613
TV
4632020-02-09 Tom de Vries <tdevries@suse.de>
464
465 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
466 filename if it matches "<artificial>".
467
6bafc845
HD
4682020-02-09 Hannes Domani <ssbssa@yahoo.de>
469
470 * windows-tdep.c (struct enum_value_name): New struct.
471 (create_enum): New function.
472 (windows_get_siginfo_type): Create and use enum types.
473
7928d571
HD
4742020-02-09 Hannes Domani <ssbssa@yahoo.de>
475
476 * NEWS: Mention $_siginfo support for Windows.
477 * windows-nat.c (handle_exception): Set siginfo_er.
478 (windows_nat_target::mourn_inferior): Reset siginfo_er.
479 (windows_xfer_siginfo): New function.
480 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
481 * windows-tdep.c (struct windows_gdbarch_data): New struct.
482 (init_windows_gdbarch_data): New function.
483 (get_windows_gdbarch_data): New function.
484 (windows_get_siginfo_type): New function.
485 (windows_init_abi): Register windows_get_siginfo_type.
486 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
487
6751ebae
TT
4882020-02-08 Tom Tromey <tom@tromey.com>
489
490 * dwarf2/read.c (class cutu_reader) <cutu_reader,
491 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
492 <keep>: Declare method.
493 <m_keep>: Remove member.
494 <~cutu_reader>: Remove.
495 (cutu_reader::init_tu_and_read_dwo_dies): Update.
496 (cutu_reader::cutu_reader): Update.
497 (cutu_reader::keep): Rename from ~cutu_reader.
498 (process_psymtab_comp_unit, build_type_psymtabs_1)
499 (process_skeletonless_type_unit, load_partial_comp_unit)
500 (load_full_comp_unit, dwarf2_read_addr_index)
501 (read_signatured_type): Update.
502
135f5437
TT
5032020-02-08 Tom Tromey <tom@tromey.com>
504
505 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
506 "want_partial_unit" parameter.
507 (process_psymtab_comp_unit): Change want_partial_unit to bool.
508 Inline check for DW_TAG_partial_unit.
509 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
510
9f66ff1c
TT
5112020-02-08 Tom Tromey <tom@tromey.com>
512
513 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
514 read.c.
515 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
516 read.c.
517
c8a7a66f
TT
5182020-02-08 Tom Tromey <tom@tromey.com>
519
520 * dwarf2/read.c (read_address): Move to comp-unit.c.
521 (dwarf2_rnglists_process, dwarf2_ranges_process)
522 (read_attribute_value, dwarf_decode_lines_1)
523 (var_decode_location, decode_locdesc): Update.
524 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
525 read.c. Remove "cu" parameter.
526 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
527 method.
528
8266302d
TT
5292020-02-08 Tom Tromey <tom@tromey.com>
530
531 * dwarf2/read.c (read_attribute_value, read_indirect_string)
532 (read_indirect_line_string): Update.
533 * dwarf2/comp-unit.c (read_offset): Remove.
534 (read_comp_unit_head): Update.
535 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
536 method.
537 (read_offset): Don't declare.
538
4057dfde
TT
5392020-02-08 Tom Tromey <tom@tromey.com>
540
541 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
542 * dwarf2/read.c (struct comp_unit_head): Move to
543 dwarf2/comp-unit.h.
544 (enum class rcuh_kind): Move to comp-unit.h.
545 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
546 (read_comp_unit_head, error_check_comp_unit_head)
547 (read_and_check_comp_unit_head): Move to comp-unit.c.
548 (read_offset, dwarf_unit_type_name): Likewise.
549 (create_debug_type_hash_table, read_cutu_die_from_dwo)
550 (cutu_reader::cutu_reader, read_call_site_scope)
551 (find_partial_die, follow_die_offset): Update.
552 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
553
24aa364d
TT
5542020-02-08 Tom Tromey <tom@tromey.com>
555
556 * dwarf2/read.c (read_offset_1): Move to leb.c.
557 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
558 (dwarf_decode_macro_bytes): Update.
559 * dwarf2/leb.c (read_offset): Rename; move from read.c.
560 * dwarf2/leb.h (read_offset): Declare.
561
2c7d5afc
TT
5622020-02-08 Tom Tromey <tom@tromey.com>
563
564 * dwarf2/read.c (dwarf2_section_size): Remove.
565 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
566 Update.
567 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
568
4075cb26
TT
5692020-02-08 Tom Tromey <tom@tromey.com>
570
571 * dwarf2/read.c (read_initial_length): Move to leb.c.
572 * dwarf2/leb.h (read_initial_length): Declare.
573 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
574 handle_nonstd parameter.
575 * dwarf2/frame.c (read_initial_length): Remove.
576 (decode_frame_entry_1): Update.
577
09ba997f
TT
5782020-02-08 Tom Tromey <tom@tromey.com>
579
580 * dwarf2/loc.c (dwarf2_find_location_expression)
581 (dwarf_evaluate_loc_desc::get_tls_address)
582 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
583 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
584 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
585 (dwarf2_compile_property_to_c)
586 (dwarf2_loc_desc_get_symbol_read_needs)
587 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
588 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
589 (loclist_describe_location, loclist_tracepoint_var_ref)
590 (loclist_generate_c_location): Update.
591 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
592 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
593 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
594 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
595 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
596 (dwarf2_per_cu_data::addr_size)
597 (dwarf2_per_cu_data::ref_addr_size)
598 (dwarf2_per_cu_data::text_offset)
599 (dwarf2_per_cu_data::addr_type): Now methods.
600 (per_cu_header_read_in): Make per_cu "const".
601 (dwarf2_version): Remove.
602 (dwarf2_per_cu_data::int_type): Now a method.
603 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
604 (set_die_type, read_array_type, read_subrange_index_type)
605 (read_tag_string_type, read_subrange_type): Update.
606 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
607 offset_size, ref_addr_size, text_offset, addr_type, version,
608 objfile, int_type, addr_sized_int_type>: Declare methods.
609
96c738c0
TT
6102020-02-08 Tom Tromey <tom@tromey.com>
611
612 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
613 Move earlier.
614
8fdd972c
TT
6152020-02-08 Tom Tromey <tom@tromey.com>
616
617 * dwarf2/read.h (dwarf_line_debug): Declare.
618 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
619 * dwarf2/read.c: Move line_header code to new files.
620 (dwarf_line_debug): No longer static.
621 * dwarf2/line-header.c: New file.
622 * dwarf2/line-header.h: New file.
623
03075812
TT
6242020-02-08 Tom Tromey <tom@tromey.com>
625
626 * dwarf2/read.c (struct line_header) <file_full_name,
627 file_file_name>: Return unique_xmalloc_ptr.
628 (line_header::file_file_name): Update.
629 (line_header::file_full_name): Update.
630 (dw2_get_file_names_reader): Update.
631 (macro_start_file): Update.
632
bb822404
TT
6332020-02-08 Tom Tromey <tom@tromey.com>
634
635 * dwarf2/read.c (struct line_header) <file_full_name,
636 file_file_name>: Declare methods.
637 (dw2_get_file_names_reader): Update.
638 (file_file_name): Now a method.
639 (file_full_name): Likewise.
640 (macro_start_file): Update.
641
009b64fc
TT
6422020-02-08 Tom Tromey <tom@tromey.com>
643
644 * dwarf2/read.c (dwarf_always_disassemble)
645 (show_dwarf_always_disassemble): Move to loc.c.
646 (_initialize_dwarf2_read): Move "always-disassemble" registration
647 to loc.c.
648 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
649 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
650 static.
651 (show_dwarf_always_disassemble): Move from read.c.
652 (_initialize_dwarf2loc): Move always-disassemble from read.c.
653
5895093f
TT
6542020-02-08 Tom Tromey <tom@tromey.com>
655
656 * dwarf2/read.c (~dwarf2_per_objfile): Update.
657 (create_quick_file_names_table): Return htab_up.
658 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
659 Update.
660 * dwarf2/read.h (struct dwarf2_per_objfile)
661 <quick_file_names_table>: Now htab_up.
662
b3b32279
TT
6632020-02-08 Tom Tromey <tom@tromey.com>
664
665 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
666
1d33d811
TT
6672020-02-08 Tom Tromey <tom@tromey.com>
668
669 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
670 Rewrite.
671 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
672 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
673 (abbrev_table::abbrev_table): No longer inline.
674 (ABBREV_HASH_SIZE): Remove.
675 (abbrev_table::m_abbrevs): Now an htab_up.
676
86de1d91
TT
6772020-02-08 Tom Tromey <tom@tromey.com>
678
679 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
680 (cutu_reader): Update.
681 (build_type_psymtabs_1): Update.
682 * dwarf2/abbrev.c (abbrev_table::read): Rename.
683 (abbrev_table::alloc_abbrev): Update.
684 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
685 (abbrev_table::read): New static method, renamed from
686 abbrev_table_read_table.
687 (abbrev_table::alloc_abbrev)
688 (abbrev_table::add_abbrev): Now private.
689 (abbrev_table::abbrev_table): Now private.
690 (abbrev_table::m_abbrev_obstack): Now private. Rename.
691
0335378b
TT
6922020-02-08 Tom Tromey <tom@tromey.com>
693
694 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
695 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
696 htab_up.
697
48b490f2
TT
6982020-02-08 Tom Tromey <tom@tromey.com>
699
700 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
701 htab_up.
702 (lookup_dwo_unit_in_dwp): Update.
703 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
704 on obstack.
705
bc68fb19
TT
7062020-02-08 Tom Tromey <tom@tromey.com>
707
708 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
709 obstack.
710
d15acc42
TT
7112020-02-08 Tom Tromey <tom@tromey.com>
712
713 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
714 line_header_hash.
715 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
716 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
717 Change type to htab_up.
718
eaa5fa8b
TT
7192020-02-08 Tom Tromey <tom@tromey.com>
720
721 * dwarf2/read.c (allocate_type_unit_groups_table): Return
722 htab_up. Don't allocate on obstack.
723 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
724 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
725 Change type to htab_up.
726
b0b6a987
TT
7272020-02-08 Tom Tromey <tom@tromey.com>
728
729 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
730 Change type to htab_up.
731 * dwarf2/read.c (create_signatured_type_table_from_index)
732 (create_signatured_type_table_from_debug_names)
733 (create_all_type_units, add_type_unit)
734 (lookup_dwo_signatured_type, lookup_signatured_type)
735 (process_skeletonless_type_unit): Update.
736 (create_debug_type_hash_table, create_debug_types_hash_table):
737 Change type of types_htab.
738 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
739 htab_up. Don't allocate on obstack.
740 (create_cus_hash_table): Change type of cus_htab parameter.
741 (struct dwo_file) <cus, tus>: Now htab_up.
742 (lookup_dwo_signatured_type, lookup_dwo_cutu)
743 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
744 (queue_and_load_all_dwo_tus): Update.
745 * dwarf2/index-write.c (write_gdbindex): Update.
746 (write_debug_names): Update.
747
39856def
TT
7482020-02-08 Tom Tromey <tom@tromey.com>
749
750 * dwarf2/read.h (struct dwarf2_queue_item): Move from
751 dwarf2/read.c. Remove "next" member. Add constructor ntad
752 destructor.
753 (struct dwarf2_per_objfile) <queue>: New member.
754 * dwarf2/read.c (struct dwarf2_queue_item): Move to
755 dwarf2/read.h.
756 (dwarf2_queue, dwarf2_queue_tail): Remove.
757 (class dwarf2_queue_guard): Add parameter to constructor. Use
758 DISABLE_COPY_AND_ASSIGN.
759 <m_per_objfile>: New member.
760 <~dwarf2_queue_guard>: Rewrite.
761 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
762 Update.
763 (~dwarf2_queue_item): New.
764
3e225074
TT
7652020-02-08 Tom Tromey <tom@tromey.com>
766
767 * dwarf2/read.c (struct die_info) <has_children>: New member.
768 (dw2_get_file_names_reader): Remove has_children.
769 (dw2_get_file_names): Update.
770 (read_cutu_die_from_dwo): Remove has_children.
771 (cutu_reader::init_tu_and_read_dwo_dies)
772 (cutu_reader::cutu_reader): Update.
773 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
774 Remove has_children.
775 (build_type_psymtabs_1, process_skeletonless_type_unit)
776 (load_partial_comp_unit, load_full_comp_unit): Update.
777 (create_dwo_cu_reader): Remove has_children.
778 (create_cus_hash_table, read_die_and_children): Update.
779 (read_full_die_1,read_full_die): Remove has_children.
780 (read_signatured_type): Update.
781 (class cutu_reader) <has_children>: Remove.
782
82ca8957
TT
7832020-02-08 Tom Tromey <tom@tromey.com>
784
785 * dwarf2/expr.c: Rename from dwarf2expr.c.
786 * dwarf2/expr.h: Rename from dwarf2expr.h.
787 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
788 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
789 * dwarf2/frame.c: Rename from dwarf2-frame.c.
790 * dwarf2/frame.h: Rename from dwarf2-frame.h.
791 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
792 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
793 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
794 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
795 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
796 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
797 * dwarf2/loc.c: Rename from dwarf2loc.c.
798 * dwarf2/loc.h: Rename from dwarf2loc.h.
799 * dwarf2/read.c: Rename from dwarf2read.c.
800 * dwarf2/read.h: Rename from dwarf2read.h.
801 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
802 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
803 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
804 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
805 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
806 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
807 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
808 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
809 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
810 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
811 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
812 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
813 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
814 Update.
815 * Makefile.in (COMMON_SFILES): Update.
816 (HFILES_NO_SRCDIR): Update.
817
9e35d499
TT
8182020-02-08 Tom Tromey <tom@tromey.com>
819
820 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
821 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
822
1eba2311
TT
8232020-02-08 Tom Tromey <tom@tromey.com>
824
825 * dwarf2read.h (struct die_info): Don't declare.
826
e41c2da2
TT
8272020-02-08 Tom Tromey <tom@tromey.com>
828
829 * dwarf2read.h (die_info_ptr): Remove typedef.
830
4fc6c0d5
TT
8312020-02-08 Tom Tromey <tom@tromey.com>
832
833 * dwarf2read.c (read_call_site_scope)
834 (handle_data_member_location, dwarf2_add_member_fn)
835 (mark_common_block_symbol_computed, read_common_block)
836 (attr_to_dynamic_prop, partial_die_info::read)
837 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
838 (dwarf2_symbol_mark_computed, set_die_type): Update.
839 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
840 method.
841 (attr_form_is_block): Don't declare.
842 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
843
cd6c91b4
TT
8442020-02-08 Tom Tromey <tom@tromey.com>
845
846 * dwarf2read.c (dwarf2_find_base_address, )
847 (read_call_site_scope, rust_containing_type)
848 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
849 (handle_data_member_location, dwarf2_add_member_fn)
850 (get_alignment, read_structure_type, process_structure_scope)
851 (mark_common_block_symbol_computed, read_common_block)
852 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
853 (partial_die_info::read, read_attribute_value, new_symbol)
854 (lookup_die_type, dwarf2_get_ref_die_offset)
855 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
856 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
857 (dwarf2_symbol_mark_computed): Update.
858 * dwarf2/attribute.h (struct attribute) <value_as_address,
859 form_is_section_offset, form_is_constant, form_is_ref>: Declare
860 methods.
861 (value_as_address, attr_form_is_section_offset)
862 (attr_form_is_constant, attr_form_is_ref): Don't declare.
863 * dwarf2/attribute.c (attribute::value_as_address)
864 (attribute::form_is_section_offset, attribute::form_is_constant)
865 (attribute::form_is_ref): Now methods.
866
162dce55
TT
8672020-02-08 Tom Tromey <tom@tromey.com>
868
869 * dwarf2read.c (struct attribute, DW_STRING)
870 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
871 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
872 (attr_form_is_block, attr_form_is_section_offset)
873 (attr_form_is_constant, attr_form_is_ref): Move.
874 * dwarf2/attribute.h: New file.
875 * dwarf2/attribute.c: New file, from dwarf2read.c.
876 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
877
3054dd54
TT
8782020-02-08 Tom Tromey <tom@tromey.com>
879
880 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
881 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
882 Move.
883 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
884 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
885 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
886 abbrev.c.
887 * dwarf2/abbrev.h: New file.
888 * dwarf2/abbrev.c: New file, from dwarf2read.c.
889 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
890
96b79293
TT
8912020-02-08 Tom Tromey <tom@tromey.com>
892
893 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
894 (dwarf2_section_size, dwarf2_get_section_info)
895 (create_signatured_type_table_from_debug_names)
896 (create_addrmap_from_aranges, read_debug_names_from_section)
897 (get_gdb_index_contents_from_section, read_comp_unit_head)
898 (error_check_comp_unit_head, read_abbrev_offset)
899 (create_debug_type_hash_table, init_cu_die_reader)
900 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
901 (read_comp_units_from_section, create_cus_hash_table)
902 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
903 (create_dwp_v2_section, dwarf2_rnglists_process)
904 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
905 (abbrev_table_read_table, read_indirect_string_at_offset_from)
906 (read_indirect_string_from_dwz, read_addr_index_1)
907 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
908 (dwarf_decode_macro_bytes, dwarf_decode_macros)
909 (fill_in_loclist_baton): Update.
910 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
911 get_containing_section, get_bfd_owner, get_bfd_section,
912 get_file_name, get_id, get_flags, empty, read>: Declare methods.
913 (dwarf2_read_section, get_section_name, get_section_file_name)
914 (get_containing_section, get_section_bfd_owner)
915 (get_section_bfd_section, get_section_name, get_section_file_name)
916 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
917 declare.
918 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
919 (dwarf2_section_info::get_bfd_owner)
920 (dwarf2_section_info::get_bfd_section)
921 (dwarf2_section_info::get_name)
922 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
923 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
924 (dwarf2_section_info::read): Now methods.
925 * dwarf-index-write.c (class debug_names): Update.
926
2c86cff9
TT
9272020-02-08 Tom Tromey <tom@tromey.com>
928
929 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
930 Move to dwarf2/section.h.
931 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
932 (get_section_bfd_section, get_section_name)
933 (get_section_file_name, get_section_id, get_section_flags)
934 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
935 dwarf2/section.c.
936 * dwarf2/section.h: New file.
937 * dwarf2/section.c: New file, from dwarf2read.c.
938 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
939
f4382c45
TT
9402020-02-08 Tom Tromey <tom@tromey.com>
941
942 * dwarf2read.h (read_unsigned_leb128): Don't declare.
943 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
944 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
945 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
946 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
947 * dwarf2/leb.h: New file, from dwarf2read.c.
948 * dwarf2/leb.c: New file, from dwarf2read.c.
949 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
950 Remove.
951 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
952 (COMMON_SFILES): Add dwarf2/leb.c.
953
01840b7a
JB
9542020-02-08 Joel Brobecker <brobecker@adacore.com>
955
956 GDB 9.1 released.
957
dfcb27e4
IB
9582020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
959
960 PR gdb/25190:
961 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
962 * gdb/remote.c (remote_console_output): Update.
963 * gdb/ui-file.c (fputs_unfiltered): Rename to...
964 (ui_file_puts): ...this.
965 * gdb/ui-file.h (ui_file_puts): Add declaration.
966 * gdb/utils.c (emit_style_escape): Update.
967 (flush_wrap_buffer): Update.
968 (fputs_maybe_filtered): Update.
969 (fputs_unfiltered): Add function.
970
faa17681
IB
9712020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
972
973 * gdb/event-loop.c (gdb_wait_for_event): Update.
974 * gdb/printcmd.c (printf_command): Update.
975 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
976 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
977 (gdb_os_flush_stderr): Update.
978 * gdb/remote.c (remote_console_output): Update.
979 * gdb/ui-file.c (gdb_flush): Rename to...
980 (ui_file_flush): ...this.
981 (stderr_file::write): Update.
982 (stderr_file::puts): Update.
983 * gdb/ui-file.h (gdb_flush): Rename to...
984 (ui_file_flush): ...this.
985 * gdb/utils.c (gdb_flush): Add function.
986 * gdb/utils.h (gdb_flush): Add declaration.
987
5abbbe1d
TT
9882020-02-07 Tom Tromey <tromey@adacore.com>
989
990 PR breakpoints/24915:
991 * source.c (find_and_open_source): Do not check basenames_may_differ.
992
919adfe8
TT
9932020-02-07 Tom Tromey <tom@tromey.com>
994
995 * README: Update gdbserver documentation.
996 * gdbserver: Move to top level.
997 * configure.tgt (build_gdbserver): Remove.
998 * configure.ac: Remove --enable-gdbserver.
999 * configure: Rebuild.
1000 * Makefile.in (distclean): Don't mention gdbserver.
1001
1d5d29e7
SV
10022020-02-06 Shahab Vahedi <shahab@synopsys.com>
1003
1004 * source-cache.c (source_cache::ensure): Surround
1005 get_plain_source_lines with a try/catch.
1006 (source_cache::get_line_charpos): Get rid of try/catch
1007 and only check for the return value of "ensure".
1008 * tui/tui-source.c (tui_source_window::set_contents):
1009 Simplify "nlines" calculation.
1010
6eb1129c
SV
10112020-02-06 Shahab Vahedi <shahab@synopsys.com>
1012
1013 * MAINTAINERS (Write After Approval): Add myself.
1014
c6a42d11
CB
10152020-02-05 Christian Biesinger <cbiesinger@google.com>
1016
1017 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
1018 function call.
1019
c8ecdda6
CB
10202020-02-05 Christian Biesinger <cbiesinger@google.com>
1021
1022 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
1023
f6480e70
MR
10242020-02-05 Maciej W. Rozycki <macro@wdc.com>
1025
1026 * nat/riscv-linux-tdesc.h: New file.
1027 * nat/riscv-linux-tdesc.c: New file, taking code from...
1028 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
1029 ... here.
1030 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
1031 NATDEPFILES.
1032
dcc9fbc6
AB
10332020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
1034
1035 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
1036 we don't set the fake simulator ptid to the null_ptid.
1037
719546c4
SM
10382020-02-03 Simon Marchi <simon.marchi@efficios.com>
1039
1040 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
1041 * gdbthread.h (class thread_info) <resumed>: Likewise.
1042 * infrun.c (resume_1): Likewise.
1043 (proceed): Likewise.
1044 (infrun_thread_stop_requested): Likewise.
1045 (stop_all_threads): Likewise.
1046 (handle_inferior_event): Likewise.
1047 (restart_threads): Likewise.
1048 (finish_step_over): Likewise.
1049 (keep_going_stepped_thread): Likewise.
1050 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
1051 (linux_handle_extended_wait): Likewise.
1052 * record-btrace.c (get_thread_current_frame_id): Likewise.
1053 * record-full.c (record_full_wait_1): Likewise.
1054 * remote.c (remote_target::process_initial_stop_replies): Likewise.
1055 * target.c (target_resume): Likewise.
1056 * thread.c (set_running_thread): Likewise.
1057
e409c542
AKS
10582020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1059
1060 * f-valprint.c (f77_print_array_1): Changed datatype of index
1061 variable to LONGEST from int to enable it to contain bound
1062 values correctly.
1063
ee98c0da
MR
10642020-02-03 Maciej W. Rozycki <macro@wdc.com>
1065
1066 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
1067 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
1068 offsets according to FLEN determined.
1069 (riscv_linux_nat_target::read_description): Determine FLEN
1070 dynamically.
1071 (riscv_linux_nat_target::fetch_registers): Size regset buffer
1072 according to FLEN determined.
1073 (riscv_linux_nat_target::store_registers): Likewise.
1074
aa66aac4
SV
10752020-02-01 Shahab Vahedi <shahab@synopsys.com>
1076
1077 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
1078 when reg->group is empty and reggroup is not.
1079
fd9faca8
TT
10802020-01-31 Tom Tromey <tromey@adacore.com>
1081
1082 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
1083 Call beneath target's mourn_inferior after unpushing.
1084
42330a68
AB
10852020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
1086
1087 PR tui/9765
1088 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
1089 have enough lines to fill the screen, still return the lowest
1090 address we found.
1091
7a27a45b
AB
10922020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
1093
1094 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
1095 '-', '<', and '>' commands.
1096
c47f70e2
PA
10972020-01-29 Pedro Alves <palves@redhat.com>
1098 Sergio Durigan Junior <sergiodj@redhat.com>
1099
1100 * infcmd.c (construct_inferior_arguments): Assert that
1101 'argc' is greater than 0.
1102
5133a315
LM
11032020-01-29 Luis Machado <luis.machado@linaro.org>
1104
1105 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
1106 (BRK_INSN_MASK): Define to 0xd4200000.
1107 (aarch64_program_breakpoint_here_p): New function.
1108 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
1109 * arch-utils.c (default_program_breakpoint_here_p): Moved from
1110 breakpoint.c.
1111 * arch-utils.h (default_program_breakpoint_here_p): Moved from
1112 breakpoint.h
1113 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
1114 call gdbarch_program_breakpoint_here_p.
1115 (program_breakpoint_here): Moved to arch-utils.c, renamed to
1116 default_program_breakpoint_here_p, changed return type to bool and
1117 simplified.
1118 * breakpoint.h (program_breakpoint_here): Moved prototype to
1119 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
1120 return type to bool.
1121 * gdbarch.c: Regenerate.
1122 * gdbarch.h: Regenerate.
1123 * gdbarch.sh (program_breakpoint_here_p): New method.
1124 * infrun.c (handle_signal_stop): Call
1125 gdbarch_program_breakpoint_here_p.
1126
168f8c6b
TT
11272020-01-26 Tom Tromey <tom@tromey.com>
1128
1129 * ctfread.c (struct ctf_fp_info): Reindent.
1130 (_initialize_ctfread): Remove.
1131
128a391f
TT
11322020-01-26 Tom Tromey <tom@tromey.com>
1133
1134 * psymtab.c (partial_map_expand_apply)
1135 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
1136 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
1137 (psym_print_stats, psym_expand_symtabs_for_function)
1138 (psym_map_symbol_filenames, psym_map_matching_symbols)
1139 (psym_expand_symtabs_matching)
1140 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
1141 (maintenance_check_psymtabs): Use new methods.
1142 * psympriv.h (struct partial_symtab) <readin_p,
1143 get_compunit_symtab>: New methods.
1144 <readin, compunit_symtab>: Remove members.
1145 (struct standard_psymtab): New.
1146 (struct legacy_psymtab): Derive from standard_psymtab.
1147 * dwarf2read.h (struct dwarf2_psymtab): Derive from
1148 standard_psymtab.
1149 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
1150
0494dbec
TT
11512020-01-26 Tom Tromey <tom@tromey.com>
1152
1153 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
1154 read_dependencies. Add assert.
1155 * psymtab.c (partial_symtab::read_dependencies): New method.
1156 * psympriv.h (struct partial_symtab) <read_dependencies>: New
1157 method.
1158 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
1159 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
1160 read_dependencies.
1161 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
1162 Add assert.
1163
8566b89b
TT
11642020-01-26 Tom Tromey <tom@tromey.com>
1165
1166 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
1167 Call expand_psymtab.
1168 (xcoff_read_symtab): Call expand_psymtab.
1169 (xcoff_start_psymtab, xcoff_end_psymtab): Set
1170 legacy_expand_psymtab.
1171 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
1172 method.
1173 (struct legacy_psymtab) <expand_psymtab>: Implement.
1174 <legacy_expand_psymtab>: New member.
1175 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
1176 (parse_partial_symbols): Set legacy_expand_psymtab.
1177 (psymtab_to_symtab_1): Change argument order. Call
1178 expand_psymtab.
1179 (new_psymtab): Set legacy_expand_psymtab.
1180 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
1181 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
1182 expand_psymtab.
1183 (dwarf2_psymtab::expand_psymtab): Rename from
1184 psymtab_to_symtab_1. Call expand_psymtab.
1185 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
1186 (dbx_end_psymtab): Likewise.
1187 (dbx_psymtab_to_symtab_1): Change argument order. Call
1188 expand_psymtab.
1189 (dbx_read_symtab): Call expand_psymtab.
1190 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
1191 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
1192 (ctf_psymtab::read_symtab): Call expand_psymtab.
1193
077cbab2
TT
11942020-01-26 Tom Tromey <tom@tromey.com>
1195
1196 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
1197 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
1198 messages.
1199 * mdebugread.c (mdebug_read_symtab): Remove prints.
1200 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
1201 assert.
1202 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
1203
891813be
TT
12042020-01-26 Tom Tromey <tom@tromey.com>
1205
1206 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
1207 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
1208 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
1209 legacy_symtab.
1210 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
1211 * psymtab.c (psymtab_to_symtab): Call method.
1212 (dump_psymtab): Update.
1213 * psympriv.h (struct partial_symtab): Add virtual destructor.
1214 <read_symtab>: New method.
1215 (struct legacy_symtab): New.
1216 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
1217 (struct pst_map) <pst>: Now a legacy_psymtab.
1218 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
1219 (new_psymtab): Use legacy_psymtab.
1220 * dwarf2read.h (struct dwarf2_psymtab): New.
1221 (struct dwarf2_per_cu_data) <psymtab>: Use it.
1222 * dwarf2read.c (dwarf2_create_include_psymtab)
1223 (dwarf2_build_include_psymtabs, create_type_unit_group)
1224 (create_partial_symtab, process_psymtab_comp_unit_reader)
1225 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
1226 (set_partial_user): Use dwarf2_psymtab.
1227 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
1228 (psymtab_to_symtab_1, process_full_comp_unit)
1229 (process_full_type_unit, dwarf2_ranges_read)
1230 (dwarf2_get_pc_bounds, psymtab_include_file_name)
1231 (dwarf_decode_lines): Use dwarf2_psymtab.
1232 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
1233 (add_address_entry_worker, write_one_signatured_type)
1234 (recursively_count_psymbols, recursively_write_psymbols)
1235 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
1236 (write_debug_names): Likewise.
1237 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
1238 <pst>: Now a legacy_psymtab.
1239 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
1240 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
1241 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
1242 * ctfread.c (struct ctf_psymtab): New.
1243 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
1244 ctf_psymtab.
1245 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
1246 (create_partial_symtab): Return a ctf_psymtab.
1247 (scan_partial_symbols): Update.
1248
c3693a1d
TT
12492020-01-26 Tom Tromey <tom@tromey.com>
1250
1251 * xcoffread.c (xcoff_start_psymtab): Use new.
1252 * psymtab.c (partial_symtab::partial_symtab): New constructor,
1253 renamed from start_psymtab_common.
1254 * psympriv.h (struct partial_symtab): Add new constructor.
1255 (start_psymtab_common): Don't declare.
1256 * mdebugread.c (parse_partial_symbols): Use new.
1257 * dwarf2read.c (create_partial_symtab): Use new.
1258 * dbxread.c (start_psymtab): Use new.
1259 * ctfread.c (create_partial_symtab): Use new.
1260
32caafd0
TT
12612020-01-26 Tom Tromey <tom@tromey.com>
1262
1263 * xcoffread.c (xcoff_end_psymtab): Use new.
1264 * psymtab.c (start_psymtab_common): Use new.
1265 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
1266 Update.
1267 * psympriv.h (struct partial_symtab): Add parameters to
1268 constructor. Don't inline.
1269 (allocate_psymtab): Don't declare.
1270 * mdebugread.c (new_psymtab): Use new.
1271 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
1272 * dbxread.c (dbx_end_psymtab): Use new.
1273
abaa2f23
TT
12742020-01-26 Tom Tromey <tom@tromey.com>
1275
1276 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
1277 allocate_psymtab. Update documentation.
1278 * psymtab.c (psymtab_storage::install_psymtab): Rename from
1279 allocate_psymtab. Do not use new.
1280 (allocate_psymtab): Use new. Update.
1281
6d94535f
TT
12822020-01-26 Tom Tromey <tom@tromey.com>
1283
1284 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
1285 * psymtab.c (psym_print_stats): Update.
1286 * psympriv.h (struct partial_symtab) <readin,
1287 psymtabs_addrmap_supported, anonymous>: Now bool.
1288 * mdebugread.c (psymtab_to_symtab_1): Update.
1289 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
1290 (build_type_psymtabs_reader, psymtab_to_symtab_1)
1291 (process_full_comp_unit, process_full_type_unit): Update.
1292 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
1293 * ctfread.c (psymtab_to_symtab): Update.
1294
6f17252b
TT
12952020-01-26 Tom Tromey <tom@tromey.com>
1296
1297 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
1298 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
1299 * psymtab.c (psymtab_storage): Delete psymtabs.
1300 (psymtab_storage::allocate_psymtab): Use new.
1301 (psymtab_storage::discard_psymtab): Use delete.
1302 * psympriv.h (struct partial_symtab): Add constructor and
1303 initializers.
1304
f6f1cebc
TT
13052020-01-26 Tom Tromey <tom@tromey.com>
1306
1307 * machoread.c: Do not include psympriv.h.
1308
e47e48f6
PW
13092020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1310
1311 * NEWS: Mention the new option and the set/show commands.
1312
a2fedca9
PW
13132020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1314
1315 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
1316 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
1317 (validate_exec_file): New variables, enums, functions.
1318 (exec_file_locate_attach, print_section_info): Style the filenames.
1319 (_initialize_exec): Install show_exec_file_mismatch_command and
1320 set_exec_file_mismatch_command.
1321 * gdbcore.h (validate_exec_file): Declare.
1322 * infcmd.c (attach_command): Call validate_exec_file.
1323 * remote.c ( remote_target::remote_add_inferior): Likewise.
1324
7ffa82e1
AB
13252020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
1326
1327 * frame.c (find_frame_sal): Move call to get_next_frame into more
1328 inner scope.
1329 * inline-frame.c (inilne_state) <inline_state>: Update argument
1330 types.
1331 (inilne_state) <skipped_symbol>: Rename to...
1332 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
1333 (skip_inline_frames): Build vector of skipped symbols and use this
1334 to reate the inline_state.
1335 (inline_skipped_symbol): Add a comment and some assertions, fetch
1336 skipped symbol from the list.
1337
3d92a3e3
AB
13382020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
1339
1340 * buildsym.c (lte_is_less_than): Delete.
1341 (buildsym_compunit::end_symtab_with_blockvector): Create local
1342 lambda function to sort line table entries, and use
1343 std::stable_sort instead of std::sort.
1344 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
1345 markers when looking for a previous line.
1346
94a72be7
AB
13472020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
1348
1349 * dwarf2read.c (lnp_state_machine::record_line): Include
1350 end_sequence parameter in debug print out. Record the line if we
1351 are at an end_sequence marker even if it's not the start of a
1352 statement.
1353 * symmisc.c (maintenance_print_one_line_table): Print end of
1354 sequence markers with 'END' not '0'.
1355
53af73bf
PA
13562020-01-24 Pedro Alves <palves@redhat.com>
1357
1358 PR gdb/25410
1359 * thread.c (scoped_restore_current_thread::restore): Use
1360 switch_to_inferior_no_thread.
1361 * exec.c: Include "progspace-and-thread.h".
1362 (add_target_sections, remove_target_sections):
1363 scoped_restore_current_pspace_and_thread instead of
1364 scoped_restore_current_thread.
1365 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
1366 and aspace to the inferior before calling clone_program_space.
1367 Remove stale comment.
1368
3050c6f4
CB
13692020-01-24 Christian Biesinger <cbiesinger@google.com>
1370
1371 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
1372 (arm_netbsd_nat_target::fetch_registers): ...this.
1373 (arm_nbsd_nat_target::store_registers): Rename to...
1374 (arm_netbsd_nat_target::store_registers): ...this.
1375
73685c7e
CB
13762020-01-24 Christian Biesinger <cbiesinger@google.com>
1377
1378 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
1379 register_t.
1380
89203d40
CB
13812020-01-24 Christian Biesinger <cbiesinger@google.com>
1382
1383 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
1384 Update comment.
1385 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
1386 Likewise.
1387 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
1388 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
1389 the correct replacement (iterate_over_regset_sections).
1390 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
1391 Update comment.
1392
1ba1ac88
AB
13932020-01-24 Graham Markall <graham.markall@embecosm.com>
1394
1395 PR gdb/23718
1396 * gdb/python/python.c (execute_gdb_command): Call
1397 async_enable_stdin in catch block.
1398
f3364a6d
AB
13992020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
1400
1401 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
1402 SWITCH_THRU_ALL_UIS.
1403
733d0a67
AB
14042020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
1405
1406 PR tui/9765
1407 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
1408 comment, add extra parameter, and update to store previous symbol
1409 when appropriate.
1410 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
1411 add extra parameter.
1412 * tui/tui-disasm.c (tui_disassemble): Update header comment,
1413 remove unneeded parameter, add try/catch around gdb_print_insn,
1414 rewrite to add items to asm_lines vector.
1415 (tui_find_backward_disassembly_start_address): New function.
1416 (tui_find_disassembly_address): Updated throughout.
1417 (tui_disasm_window::set_contents): Update for changes to
1418 tui_disassemble.
1419 (tui_disasm_window::do_scroll_vertical): No need to adjust the
1420 number of lines to scroll.
1421
b3b3bada
SM
14222020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
1423
1424 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
1425 (SECT_OFF_DATA): Likewise.
1426 (SECT_OFF_RODATA): Likewise.
1427 (SECT_OFF_TEXT): Likewise.
1428 (SECT_OFF_BSS): Likewise.
1429 (struct objfile) <text_section_offset, data_section_offset>: New
1430 methods.
1431 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
1432 objfile::text_section_offset.
1433 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
1434 * coffread.c (coff_symtab_read): Likewise.
1435 (enter_linenos): Likewise.
1436 (process_coff_symbol): Likewise.
1437 * ctfread.c (get_objfile_text_range): Likewise.
1438 * dtrace-probe.c (dtrace_probe::get_relocated_address):
1439 Use objfile::data_section_offset.
1440 * dwarf2-frame.c (execute_cfa_program): Use
1441 objfile::text_section_offset.
1442 (dwarf2_frame_find_fde): Likewise.
1443 * dwarf2read.c (create_addrmap_from_index): Likewise.
1444 (create_addrmap_from_aranges): Likewise.
1445 (dw2_find_pc_sect_compunit_symtab): Likewise.
1446 (process_psymtab_comp_unit_reader): Likewise.
1447 (add_partial_symbol): Likewise.
1448 (add_partial_subprogram): Likewise.
1449 (process_full_comp_unit): Likewise.
1450 (read_file_scope): Likewise.
1451 (read_func_scope): Likewise.
1452 (read_lexical_block_scope): Likewise.
1453 (read_call_site_scope): Likewise.
1454 (dwarf2_rnglists_process): Likewise.
1455 (dwarf2_ranges_process): Likewise.
1456 (dwarf2_ranges_read): Likewise.
1457 (dwarf_decode_lines_1): Likewise.
1458 (new_symbol): Likewise.
1459 (dwarf2_fetch_die_loc_sect_off): Likewise.
1460 (dwarf2_per_cu_text_offset): Likewise.
1461 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
1462 * hppa-tdep.c (read_unwind_info): Likewise.
1463 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
1464 * psympriv.h (struct partial_symtab): Likewise.
1465 * psymtab.c (find_pc_sect_psymtab): Likewise.
1466 * solib-svr4.c (enable_break): Likewise.
1467 * stap-probe.c (relocate_address): Use
1468 objfile::data_section_offset.
1469 * xcoffread.c (enter_line_range): Use
1470 objfile::text_section_offset.
1471 (read_xcoff_symtab): Likewise.
1472
ab53f382
SM
14732020-01-23 Simon Marchi <simon.marchi@efficios.com>
1474
1475 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
1476 declaration to narrower scopes.
1477
e7eee665
SM
14782020-01-23 Simon Marchi <simon.marchi@efficios.com>
1479
1480 * darwin-nat.h (struct darwin_exception_msg, enum
1481 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
1482 Move up.
1483 (class darwin_nat_target) <wait_1, check_new_threads,
1484 decode_exception_message, decode_message, stop_inferior,
1485 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
1486 * darwin-nat.c (darwin_check_new_threads): Rename to...
1487 (darwin_nat_target::check_new_threads): ... this.
1488 (darwin_suspend_inferior_it): Remove.
1489 (darwin_decode_exception_message): Rename to...
1490 (darwin_nat_target::decode_exception_message): ... this.
1491 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
1492 (darwin_decode_message): Rename to...
1493 (darwin_nat_target::decode_message): ... this.
1494 (cancel_breakpoint): Rename to...
1495 (darwin_nat_target::cancel_breakpoint): ... this.
1496 (darwin_wait): Rename to...
1497 (darwin_nat_target::wait_1): ... this. Use range-based for loop
1498 instead of iterate_over_inferiors.
1499 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
1500 (darwin_stop_inferior): Rename to...
1501 (darwin_nat_target::stop_inferior): ... this.
1502 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
1503 (darwin_init_thread_list): Rename to...
1504 (darwin_nat_target::init_thread_list): ... this.
1505 (darwin_ptrace_him): Rename to...
1506 (darwin_nat_target::ptrace_him): ... this.
1507 (darwin_nat_target::create_inferior): Pass lambda function to
1508 fork_inferior.
1509 (darwin_nat_target::detach): Call stop_inferior instead of
1510 darwin_stop_inferior.
1511 * fork-inferior.h (fork_inferior): Change init_trace_fun
1512 parameter to gdb::function_view.
1513 * fork-inferior.c (fork_inferior): Likewise.
1514
c162ed3e
HD
15152020-01-23 Hannes Domani <ssbssa@yahoo.de>
1516
1517 * i386-cygwin-tdep.c (core_process_module_section): Update.
1518 * windows-nat.c (struct lm_info_windows): Add text_offset.
1519 (windows_xfer_shared_libraries): Update.
1520 * windows-tdep.c (windows_xfer_shared_library):
1521 Add text_offset_cached argument.
1522 * windows-tdep.h (windows_xfer_shared_library): Update.
1523
a1237872
SM
15242020-01-21 Simon Marchi <simon.marchi@efficios.com>
1525
1526 * gdbarch.sh: Add declaration for _initialize_gdbarch.
1527
b3ee6dd9
SM
15282020-01-21 Simon Marchi <simon.marchi@efficios.com>
1529
1530 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
1531 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
1532 replace with range-based for.
1533 (gdbsim_interrupt_inferior): Remove.
1534 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
1535 with a range-based for. Inline code from
1536 gdbsim_interrupt_inferior.
1537
f9fac3c8
SM
15382020-01-21 Simon Marchi <simon.marchi@efficios.com>
1539
1540 * infrun.c (proceed): Fix indentation.
1541
f6474de9
TT
15422020-01-21 Tom Tromey <tromey@adacore.com>
1543
1544 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
1545 * python/python.c (python_extension_ops): Update.
1546 (gdbpy_colorize): New function.
1547 * python/lib/gdb/__init__.py (colorize): New function.
1548 * extension.h (ext_lang_colorize): Declare.
1549 * extension.c (ext_lang_colorize): New function.
1550 * extension-priv.h (struct extension_language_ops) <colorize>: New
1551 member.
1552 * cli/cli-style.c (_initialize_cli_style): Update help text.
1553
f0c702d4
LM
15542020-01-21 Luis Machado <luis.machado@linaro.org>
1555
1556 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
1557 <cond>: Change type to bool.
1558 (aarch64_displaced_step_b_cond): Update cond to use bool type.
1559 (aarch64_displaced_step_cb): Likewise.
1560 (aarch64_displaced_step_tb): Likewise.
1561
1ab139e5
LM
15622020-01-21 Luis Machado <luis.machado@linaro.org>
1563
1564 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
1565 output.
1566
0c271889
LM
15672020-01-21 Luis Machado <luis.machado@linaro.org>
1568
1569 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
1570 <pc_adjust>: Adjust the documentation.
1571 (aarch64_displaced_step_fixup): Check if PC really moved before
1572 adjusting it.
1573
4d89c1c7
TT
15742020-01-19 Tom Tromey <tom@tromey.com>
1575
1576 * disasm.c (~gdb_disassembler): New destructor.
1577 (gdb_buffered_insn_length): Call disassemble_free_target.
1578 * disasm.h (class gdb_disassembler): Declare destructor. Use
1579 DISABLE_COPY_AND_ASSIGN.
1580
c0ab21c2
TT
15812020-01-19 Tom Tromey <tom@tromey.com>
1582
1583 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
1584 (die_reader_func_ftype): Remove.
1585 (cutu_reader): New class.
1586 (dw2_get_file_names_reader): Remove "data" parameter.
1587 (dw2_get_file_names): Use cutu_reader.
1588 (create_debug_type_hash_table): Update.
1589 (read_cutu_die_from_dwo): Update comment.
1590 (lookup_dwo_unit): Add dwo_name parameter.
1591 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
1592 die_reader_func_ftype and data parameters.
1593 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
1594 Remove die_reader_func_ftype and data parameters.
1595 (~cutu_reader): New; from init_cutu_and_read_dies.
1596 (cutu_reader::cutu_reader): Rename from
1597 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
1598 and data parameters.
1599 (init_cutu_and_read_dies_simple): Remove.
1600 (struct process_psymtab_comp_unit_data): Remove.
1601 (process_psymtab_comp_unit_reader): Remove data parameter; add
1602 want_partial_unit and pretend_language parameters.
1603 (process_psymtab_comp_unit): Use cutu_reader.
1604 (build_type_psymtabs_reader): Remove data parameter.
1605 (build_type_psymtabs_1): Use cutu_reader.
1606 (process_skeletonless_type_unit): Likewise.
1607 (load_partial_comp_unit_reader): Remove.
1608 (load_partial_comp_unit): Use cutu_reader.
1609 (load_full_comp_unit_reader): Remove.
1610 (load_full_comp_unit): Use cutu_reader.
1611 (struct create_dwo_cu_data): Remove.
1612 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
1613 dwo_unit parameters.
1614 (create_cus_hash_table): Use cutu_reader.
1615 (struct dwarf2_read_addr_index_data): Remove.
1616 (dwarf2_read_addr_index_reader): Remove.
1617 (dwarf2_read_addr_index): Use cutu_reader.
1618 (read_signatured_type_reader): Remove.
1619 (read_signatured_type): Use cutu_reader.
1620
45bbae5c
TT
16212020-01-19 Tom Tromey <tom@tromey.com>
1622
1623 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
1624 * tui/tui-wingeneral.h (class tui_suppress_output): New.
1625 (tui_wrefresh): Declare.
1626 * tui/tui-wingeneral.c (suppress_output): New global.
1627 (tui_suppress_output, ~tui_suppress_output): New constructor and
1628 destructor.
1629 (tui_wrefresh): New function.
1630 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
1631 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
1632 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
1633 method.
1634 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
1635 tui_wrefresh.
1636 (tui_data_window::no_refresh): New method.
1637 (tui_data_item_window::refresh_window): Call tui_wrefresh.
1638 (tui_reg_command): Use tui_suppress_output
1639 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
1640 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
1641 method.
1642 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
1643
4f13c1c0
TT
16442020-01-19 Tom Tromey <tom@tromey.com>
1645
1646 * tui/tui-winsource.c (tui_update_source_windows_with_line):
1647 Handle case where symtab is null.
1648
fa47e446
SM
16492020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
1650
1651 * linux-fork.c (one_fork_p): Simplify.
1652
26f42329
SM
16532020-01-17 Simon Marchi <simon.marchi@efficios.com>
1654
1655 * top.c (struct qt_args): Remove.
1656 (kill_or_detach): Change return type to void, replace `void *`
1657 parameter with a proper one.
1658 (print_inferior_quit_action): Likewise.
1659 (quit_confirm): Use range-based for loop to iterate over inferiors.
1660 (quit_force): Likewise.
1661
a9ac81b1
SM
16622020-01-17 Simon Marchi <simon.marchi@efficios.com>
1663
1664 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
1665 `void *` parameter with proper parameters.
1666 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
1667 (print_one_inferior): Change return type to void, replace `void *`
1668 parameter with proper parameters.
1669 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
1670 inferiors.
1671 (get_other_inferior): Remove.
1672 (mi_cmd_remove_inferior): Use range-based loop to iterate over
1673 inferiors.
1674
788eca49
SM
16752020-01-17 Simon Marchi <simon.marchi@efficios.com>
1676
1677 * mi/mi-interp.c (report_initial_inferior): Remove.
1678 (mi_interp::init): Use range-based for to iterate over inferiors.
1679
d9bc85b6
SM
16802020-01-17 Simon Marchi <simon.marchi@efficios.com>
1681
1682 * python/py-inferior.c (build_inferior_list): Remove.
1683 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
1684
40c94099
CB
16852020-01-16 Christian Biesinger <cbiesinger@google.com>
1686
1687 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
1688 (btrace_stitch_trace): Likewise.
1689 * charset.c (intermediate_encoding): Likewise (vaild).
1690 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
1691 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
1692 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
1693
e0cdfe3c
HD
16942020-01-16 Hannes Domani <ssbssa@yahoo.de>
1695
1696 * windows-tdep.c (windows_get_tlb_type):
1697 Add rtl_user_process_parameters type.
1698
790f1718
PA
16992020-01-16 Pedro Alves <palves@redhat.com>
1700 Norbert Lange <nolange79@gmail.com>
1701
1702 PR build/24805
1703 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
1704 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
1705 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
1706 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
1707 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
1708 (ps_plog): Redeclare exported functions with default visibility.
1709
3112ed97
NA
17102020-01-16 Nitika Achra <Nitika.Achra@amd.com>
1711
1712 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
1713 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
1714
8dc3273e
SM
17152020-01-15 Simon Marchi <simon.marchi@efficios.com>
1716
1717 * infcmd.c (post_create_inferior): Use get_thread_regcache
1718 instead of get_current_regcache.
1719
ff47f4f0
TT
17202020-01-14 Tom Tromey <tom@tromey.com>
1721
1722 PR symtab/12535:
1723 * python/python.c (gdbpy_decode_line): Treat empty string the same
1724 as no argument.
1725
975f45b7
TT
17262020-01-14 Tom Tromey <tom@tromey.com>
1727
1728 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
1729
25e57356
TT
17302020-01-14 Tom Tromey <tom@tromey.com>
1731
1732 * nat/linux-btrace.c: Don't include <config.h>.
1733 * nat/linux-ptrace.c: Don't include <config.h>.
1734 * nat/x86-linux-dregs.c: Don't include <config.h>.
1735
05ea2a05
TT
17362020-01-14 Tom Tromey <tom@tromey.com>
1737
1738 * configure: Rebuild.
1739 * configure.ac: Move many checks to ../gdbsupport/common.m4.
1740
01027315
TT
17412020-01-14 Tom Tromey <tom@tromey.com>
1742
1743 * nat/x86-linux-dregs.c: Include configh.h.
1744 * nat/linux-ptrace.c: Include configh.h.
1745 * nat/linux-btrace.c: Include configh.h.
1746 * defs.h: Include config.h, bfd.h.
1747 * configure.ac: Don't source common.host.
1748 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
1749 * configure: Rebuild.
1750 * acinclude.m4: Update path.
1751 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
1752 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
1753 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
1754 (CLIBS): Add LIBSUPPORT.
1755 (CDEPS): Likewise.
1756 (COMMON_SFILES): Remove gdbsupport files.
1757 (HFILES_NO_SRCDIR): Likewise.
1758 (stamp-version): Update path to create-version.sh.
1759 (ALLDEPFILES): Remove gdbsupport files.
1760
b2ceabe8
TT
17612020-01-14 Tom Tromey <tom@tromey.com>
1762
1763 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
1764 USE_WIN32API when needed.
1765 * configure.ac (USE_WIN32API): Don't define.
1766 (WIN32LIBS): Use WIN32APILIBS.
1767 * configure: Rebuild.
1768
25c51f71
TT
17692020-01-14 Tom Tromey <tom@tromey.com>
1770
1771 * configure: Rebuild.
1772 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
1773
717c684d
BE
17742020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
1775
1776 * skip.c (skip_function_command): Make skip w/o arguments use the
1777 name of the inlined function if pc is inside any inlined function.
1778
7da6a5b9
LM
17792020-01-14 Luis Machado <luis.machado@linaro.org>
1780
1781 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
1782 * infrun.c (resume_1): Likewise.
1783 (handle_inferior_event): Remove stale comment.
1784 * linux-nat.c (linux_nat_target::resume): Update comments.
1785 (save_stop_reason): Likewise.
1786 (linux_nat_filter_event): Likewise.
1787 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
1788
44e4c775
AB
17892020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
1790
1791 * elfread.c (record_minimal_symbol): Set section index to 0 for
1792 non-allocatable sections.
1793
18a8505e
AT
1794
17952020-01-13 Ali Tamur <tamur@google.com>
1796
1797 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
1798 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
1799 to gdb::optional. Update comments.
1800 (dwo_file): Update comments.
1801 (read_attribute): Update API to take an additional out parameter,
1802 need_reprocess. This is used to mark attributes that need other
1803 attributes (e.g. str_offsets_base) for correct computation which may not
1804 have been read yet.
1805 (read_attribute_reprocess): New function declaration.
1806 (read_addr_index): Likewise.
1807 (read_dwo_str_index): Likewise.
1808 (read_stub_str_index): Likewise.
1809 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
1810 (lookup_addr_base): New function definition.
1811 (lookup_ranges_base): Likewise.
1812 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
1813 lookup_ranges_base.
1814 (init_cutu_and_read_dies): Update comments.
1815 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
1816 unit. This is used to inherit parent's str_offsets_base and addr_base.
1817 Update comments.
1818 (init_cutu_and_read_dies_simple): Reflect API changes.
1819 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
1820 (create_cus_hash_table): Change API to take parent compile unit.
1821 Reflect API changes.
1822 (open_and_init_dwo_file): Reflect API changes.
1823 (dwarf2_get_pc_bounds): Update comments.
1824 (dwarf2_record_block_ranges): Likewise.
1825 (read_full_die_1): Change implementation to reprocess attributes that
1826 need str_offsets_base and addr_base.
1827 (partial_die_info::read): Likewise.
1828 (read_attribute_reprocess): New function definition.
1829 (read_attribute_value): Change API to take an additional out parameter,
1830 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
1831 when a non-dwo compile unit has index based attributes.
1832 (read_attribute): Reflect API changes.
1833 (read_addr_index_1): Reflect API changes. Update comments.
1834 (dwarf2_read_addr_index_data): Reflect API changes.
1835 (dwarf2_read_addr_index): Likewise.
1836 (read_str_index): Change API and implementation. This becomes a helper
1837 to be used by the new string index related methods. Update error
1838 message and comments.
1839 (read_dwo_str_index): New function definition.
1840 (read_stub_str_index): Likewise.
1841 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
1842 * symfile.h (dwarf2_debug_sections): Likewise.
1843 * xcoffread.c (dwarf2_debug_sections): Likewise.
1844
0cac9354
SM
18452020-01-13 Simon Marchi <simon.marchi@efficios.com>
1846
1847 * gdbcore.h (struct core_fns) <core_read_registers>: Change
1848 core_reg_sect type to gdb_byte *.
1849 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
1850 * cris-tdep.c (fetch_core_registers): Likewise.
1851 * corelow.c (core_target::get_core_register_section): Change
1852 type of `contents` to gdb::byte_vector.
1853
9a6d629c
AB
18542020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
1855
1856 * tui/tui-wingeneral.c (box_win): Position the title in the center
1857 of the border.
1858
d8b2f9e3
SM
18592020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
1860
1861 * corelow.c (core_target::get_core_register_section): Use
1862 std::vector instead of alloca.
1863
bb564c58
SM
18642020-01-13 Simon Marchi <simon.marchi@efficios.com>
1865
1866 * warning.m4: Add -Wmissing-declarations to build_warnings.
1867 * configure: Re-generate.
1868
6b366111
SM
18692020-01-13 Simon Marchi <simon.marchi@efficios.com>
1870
1871 * python/python.c (init__gdb_module): Add declaration.
1872
6c265988
SM
18732020-01-13 Simon Marchi <simon.marchi@efficios.com>
1874
1875 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
1876 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
1877 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
1878 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
1879 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
1880 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
1881 * ada-exp.y (_initialize_ada_exp): Add declaration.
1882 * ada-lang.c (_initialize_ada_language): Add declaration.
1883 * ada-tasks.c (_initialize_tasks): Add declaration.
1884 * agent.c (_initialize_agent): Add declaration.
1885 * aix-thread.c (_initialize_aix_thread): Add declaration.
1886 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
1887 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
1888 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
1889 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
1890 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
1891 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
1892 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
1893 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
1894 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
1895 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
1896 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
1897 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
1898 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
1899 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
1900 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
1901 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
1902 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
1903 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
1904 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
1905 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
1906 * annotate.c (_initialize_annotate): Add declaration.
1907 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
1908 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
1909 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
1910 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
1911 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
1912 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
1913 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
1914 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
1915 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
1916 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
1917 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
1918 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
1919 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
1920 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
1921 * auto-load.c (_initialize_auto_load): Add declaration.
1922 * auxv.c (_initialize_auxv): Add declaration.
1923 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
1924 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
1925 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
1926 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
1927 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
1928 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
1929 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
1930 * breakpoint.c (_initialize_breakpoint): Add declaration.
1931 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
1932 * btrace.c (_initialize_btrace): Add declaration.
1933 * charset.c (_initialize_charset): Add declaration.
1934 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
1935 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
1936 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
1937 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
1938 * cli/cli-script.c (_initialize_cli_script): Add declaration.
1939 * cli/cli-style.c (_initialize_cli_style): Add declaration.
1940 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
1941 * coffread.c (_initialize_coffread): Add declaration.
1942 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
1943 * compile/compile.c (_initialize_compile): Add declaration.
1944 * complaints.c (_initialize_complaints): Add declaration.
1945 * completer.c (_initialize_completer): Add declaration.
1946 * copying.c (_initialize_copying): Add declaration.
1947 * corefile.c (_initialize_core): Add declaration.
1948 * corelow.c (_initialize_corelow): Add declaration.
1949 * cp-abi.c (_initialize_cp_abi): Add declaration.
1950 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
1951 * cp-support.c (_initialize_cp_support): Add declaration.
1952 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
1953 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
1954 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
1955 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
1956 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
1957 * ctfread.c (_initialize_ctfread): Add declaration.
1958 * d-lang.c (_initialize_d_language): Add declaration.
1959 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
1960 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
1961 * dbxread.c (_initialize_dbxread): Add declaration.
1962 * dcache.c (_initialize_dcache): Add declaration.
1963 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
1964 * disasm.c (_initialize_disasm): Add declaration.
1965 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
1966 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
1967 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
1968 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
1969 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
1970 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
1971 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
1972 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
1973 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
1974 * elfread.c (_initialize_elfread): Add declaration.
1975 * exec.c (_initialize_exec): Add declaration.
1976 * extension.c (_initialize_extension): Add declaration.
1977 * f-lang.c (_initialize_f_language): Add declaration.
1978 * f-valprint.c (_initialize_f_valprint): Add declaration.
1979 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
1980 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
1981 * filesystem.c (_initialize_filesystem): Add declaration.
1982 * findcmd.c (_initialize_mem_search): Add declaration.
1983 * findvar.c (_initialize_findvar): Add declaration.
1984 * fork-child.c (_initialize_fork_child): Add declaration.
1985 * frame-base.c (_initialize_frame_base): Add declaration.
1986 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
1987 * frame.c (_initialize_frame): Add declaration.
1988 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
1989 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
1990 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
1991 * gcore.c (_initialize_gcore): Add declaration.
1992 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
1993 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
1994 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
1995 * gdbarch.c (_initialize_gdbarch): Add declaration.
1996 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
1997 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
1998 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
1999 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
2000 * go-lang.c (_initialize_go_language): Add declaration.
2001 * go32-nat.c (_initialize_go32_nat): Add declaration.
2002 * guile/guile.c (_initialize_guile): Add declaration.
2003 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
2004 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
2005 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
2006 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
2007 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
2008 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
2009 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
2010 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
2011 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
2012 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
2013 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
2014 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
2015 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
2016 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
2017 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
2018 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
2019 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
2020 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
2021 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
2022 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
2023 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
2024 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
2025 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
2026 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
2027 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
2028 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
2029 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
2030 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
2031 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
2032 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
2033 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
2034 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
2035 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
2036 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
2037 * infcall.c (_initialize_infcall): Add declaration.
2038 * infcmd.c (_initialize_infcmd): Add declaration.
2039 * inflow.c (_initialize_inflow): Add declaration.
2040 * infrun.c (_initialize_infrun): Add declaration.
2041 * interps.c (_initialize_interpreter): Add declaration.
2042 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
2043 * jit.c (_initialize_jit): Add declaration.
2044 * language.c (_initialize_language): Add declaration.
2045 * linux-fork.c (_initialize_linux_fork): Add declaration.
2046 * linux-nat.c (_initialize_linux_nat): Add declaration.
2047 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
2048 * linux-thread-db.c (_initialize_thread_db): Add declaration.
2049 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
2050 * m2-lang.c (_initialize_m2_language): Add declaration.
2051 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
2052 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
2053 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
2054 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
2055 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
2056 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
2057 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
2058 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
2059 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
2060 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
2061 * machoread.c (_initialize_machoread): Add declaration.
2062 * macrocmd.c (_initialize_macrocmd): Add declaration.
2063 * macroscope.c (_initialize_macroscope): Add declaration.
2064 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
2065 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
2066 * maint.c (_initialize_maint_cmds): Add declaration.
2067 * mdebugread.c (_initialize_mdebugread): Add declaration.
2068 * memattr.c (_initialize_mem): Add declaration.
2069 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
2070 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
2071 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
2072 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
2073 * mi/mi-main.c (_initialize_mi_main): Add declaration.
2074 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
2075 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
2076 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
2077 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
2078 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
2079 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
2080 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
2081 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
2082 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
2083 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
2084 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
2085 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
2086 * mipsread.c (_initialize_mipsread): Add declaration.
2087 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
2088 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
2089 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
2090 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
2091 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
2092 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
2093 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
2094 * nto-procfs.c (_initialize_procfs): Add declaration.
2095 * objc-lang.c (_initialize_objc_language): Add declaration.
2096 * observable.c (_initialize_observer): Add declaration.
2097 * opencl-lang.c (_initialize_opencl_language): Add declaration.
2098 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
2099 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
2100 * osabi.c (_initialize_gdb_osabi): Add declaration.
2101 * osdata.c (_initialize_osdata): Add declaration.
2102 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
2103 * parse.c (_initialize_parse): Add declaration.
2104 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
2105 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
2106 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
2107 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
2108 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
2109 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
2110 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
2111 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
2112 * printcmd.c (_initialize_printcmd): Add declaration.
2113 * probe.c (_initialize_probe): Add declaration.
2114 * proc-api.c (_initialize_proc_api): Add declaration.
2115 * proc-events.c (_initialize_proc_events): Add declaration.
2116 * proc-service.c (_initialize_proc_service): Add declaration.
2117 * procfs.c (_initialize_procfs): Add declaration.
2118 * producer.c (_initialize_producer): Add declaration.
2119 * psymtab.c (_initialize_psymtab): Add declaration.
2120 * python/python.c (_initialize_python): Add declaration.
2121 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
2122 * record-btrace.c (_initialize_record_btrace): Add declaration.
2123 * record-full.c (_initialize_record_full): Add declaration.
2124 * record.c (_initialize_record): Add declaration.
2125 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
2126 * regcache.c (_initialize_regcache): Add declaration.
2127 * reggroups.c (_initialize_reggroup): Add declaration.
2128 * remote-notif.c (_initialize_notif): Add declaration.
2129 * remote-sim.c (_initialize_remote_sim): Add declaration.
2130 * remote.c (_initialize_remote): Add declaration.
2131 * reverse.c (_initialize_reverse): Add declaration.
2132 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
2133 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
2134 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
2135 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
2136 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
2137 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
2138 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
2139 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
2140 Add declaration.
2141 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
2142 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
2143 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
2144 * rust-exp.y (_initialize_rust_exp): Add declaration.
2145 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
2146 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
2147 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
2148 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
2149 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
2150 * score-tdep.c (_initialize_score_tdep): Add declaration.
2151 * ser-go32.c (_initialize_ser_dos): Add declaration.
2152 * ser-mingw.c (_initialize_ser_windows): Add declaration.
2153 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
2154 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
2155 * ser-uds.c (_initialize_ser_socket): Add declaration.
2156 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
2157 * serial.c (_initialize_serial): Add declaration.
2158 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
2159 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
2160 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
2161 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
2162 * skip.c (_initialize_step_skip): Add declaration.
2163 * sol-thread.c (_initialize_sol_thread): Add declaration.
2164 * solib-aix.c (_initialize_solib_aix): Add declaration.
2165 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
2166 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
2167 * solib-frv.c (_initialize_frv_solib): Add declaration.
2168 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
2169 * solib-target.c (_initialize_solib_target): Add declaration.
2170 * solib.c (_initialize_solib): Add declaration.
2171 * source-cache.c (_initialize_source_cache): Add declaration.
2172 * source.c (_initialize_source): Add declaration.
2173 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
2174 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
2175 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
2176 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
2177 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
2178 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
2179 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
2180 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
2181 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
2182 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
2183 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
2184 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
2185 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
2186 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
2187 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
2188 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
2189 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
2190 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
2191 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
2192 * stabsread.c (_initialize_stabsread): Add declaration.
2193 * stack.c (_initialize_stack): Add declaration.
2194 * stap-probe.c (_initialize_stap_probe): Add declaration.
2195 * std-regs.c (_initialize_frame_reg): Add declaration.
2196 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
2197 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
2198 * symfile.c (_initialize_symfile): Add declaration.
2199 * symmisc.c (_initialize_symmisc): Add declaration.
2200 * symtab.c (_initialize_symtab): Add declaration.
2201 * target.c (_initialize_target): Add declaration.
2202 * target-connection.c (_initialize_target_connection): Add
2203 declaration.
2204 * target-dcache.c (_initialize_target_dcache): Add declaration.
2205 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
2206 * thread.c (_initialize_thread): Add declaration.
2207 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
2208 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
2209 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
2210 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
2211 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
2212 * tracectf.c (_initialize_ctf): Add declaration.
2213 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
2214 * tracefile.c (_initialize_tracefile): Add declaration.
2215 * tracepoint.c (_initialize_tracepoint): Add declaration.
2216 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
2217 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
2218 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
2219 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
2220 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
2221 * tui/tui-win.c (_initialize_tui_win): Add declaration.
2222 * tui/tui.c (_initialize_tui): Add declaration.
2223 * typeprint.c (_initialize_typeprint): Add declaration.
2224 * ui-style.c (_initialize_ui_style): Add declaration.
2225 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
2226 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
2227 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
2228 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
2229 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
2230 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
2231 * unittests/filtered_iterator-selftests.c
2232 (_initialize_filtered_iterator_selftests): Add declaration.
2233 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
2234 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
2235 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
2236 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
2237 * unittests/main-thread-selftests.c
2238 (_initialize_main_thread_selftests): Add declaration.
2239 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
2240 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
2241 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
2242 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
2243 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
2244 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
2245 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
2246 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
2247 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
2248 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
2249 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
2250 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
2251 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
2252 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
2253 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
2254 declaration.
2255 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
2256 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
2257 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
2258 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
2259 * user-regs.c (_initialize_user_regs): Add declaration.
2260 * utils.c (_initialize_utils): Add declaration.
2261 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
2262 * valops.c (_initialize_valops): Add declaration.
2263 * valprint.c (_initialize_valprint): Add declaration.
2264 * value.c (_initialize_values): Add declaration.
2265 * varobj.c (_initialize_varobj): Add declaration.
2266 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
2267 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
2268 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
2269 * windows-nat.c (_initialize_windows_nat): Add declaration.
2270 (_initialize_check_for_gdb_ini): Add declaration.
2271 (_initialize_loadable): Add declaration.
2272 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
2273 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
2274 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
2275 * xcoffread.c (_initialize_xcoffread): Add declaration.
2276 * xml-support.c (_initialize_xml_support): Add declaration.
2277 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
2278 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
2279 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
2280 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
2281
e2de1eec
SM
22822020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2283
2284 * regformats/regdat.sh: Generate declaration for init function.
2285
e0037b4c
SM
22862020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2287
2288 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
2289 up.
2290 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
2291 close_one_inferior>: New methods.
2292 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
2293 pass down target to find_inferior_pid.
2294 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
2295 Pass down target to find_inferior_ptid.
2296 (gdbsim_target::create_inferior): Pass down target to
2297 add_thread_silent.
2298 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
2299 target down to find_inferior_ptid and switch_to_thread.
2300 (gdbsim_target::close): Update to call close_one_inferior.
2301 (struct resume_data): Remove.
2302 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
2303 directly, rather than through a void pointer.
2304 (gdbsim_target::resume): Update to call resume_one_inferior.
2305
58920b5b
SM
23062020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2307
2308 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
2309
4ec89149
PA
23102020-01-12 Pedro Alves <palves@redhat.com>
2311
2312 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
2313 directly for the current inferior instead of
2314 discard_all_inferiors.
2315 (discard_all_inferiors): Delete.
2316
7c392d1d
TT
23172020-01-11 Tom Tromey <tom@tromey.com>
2318
2319 * tui/tui-wingeneral.c (box_win): Check cli_styling.
2320 * tui/tui-winsource.c (tui_source_window_base::refill): Use
2321 deprecated_safe_get_selected_frame.
2322
d9ebdab7
TBA
23232020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2324
2325 * inferior.c (print_inferior): Switch inferior before printing it.
2326
f3c469b9
PA
23272020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
2328 Pedro Alves <palves@redhat.com>
2329
2330 * progspace-and-thread.c (switch_to_program_space_and_thread):
2331 Assert there's an inferior for PSPACE. Use
2332 switch_to_inferior_no_thread to switch the inferior too.
2333 * progspace.c (program_space::~program_space): Call
2334 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
2335 (program_space::free_all_objfiles): Don't call clear_symtab_users
2336 here.
2337 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
2338
65c574f6
PA
23392020-01-10 Pedro Alves <palves@redhat.com>
2340
2341 * NEWS: Mention multi-target debugging, "info connections", and
2342 "add-inferior -no-connection".
2343
2f4fcf00
PA
23442020-01-10 Pedro Alves <palves@redhat.com>
2345
2346 * infrun.c: Include "target-connection.h".
2347 (check_multi_target_resumption): New.
2348 (proceed): Call it.
2349 * target-connection.c (make_target_connection_string): Make
2350 extern.
2351 * target-connection.h (make_target_connection_string): Declare.
2352
121b3efd
PA
23532020-01-10 Pedro Alves <palves@redhat.com>
2354
2355 * Makefile.in (COMMON_SFILES): Add target-connection.c.
2356 * inferior.c (uiout_field_connection): New function.
2357 (print_inferior): Add new "connection-id" column.
2358 (add_inferior_command): Show connection number/string of added
2359 inferior.
2360 * process-stratum-target.h
2361 (process_stratum_target::connection_string): New virtual method.
2362 (process_stratum_target::connection_number): New field.
2363 * remote.c (remote_target::connection_string): New override.
2364 * target-connection.c: New file.
2365 * target-connection.h: New file.
2366 * target.c (decref_target): Remove process_stratum targets from
2367 the connection list.
2368 (target_stack::push): Add process_stratum targets to the
2369 connection list.
2370
4f837581
PA
23712020-01-10 Pedro Alves <palves@redhat.com>
2372
2373 Revert:
2374 2016-04-12 Pedro Alves <palves@redhat.com>
2375 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
2376 Remove references to name.
2377 * serial.h (struct serial) <name>: Delete.
2378
f4ec508e
PA
23792020-01-10 Pedro Alves <palves@redhat.com>
2380
2381 * gdbarch-selftests.c (register_to_value_test): Remove "target
2382 already pushed" check.
2383
5b6d1e4f
PA
23842020-01-10 Pedro Alves <palves@redhat.com>
2385 John Baldwin <jhb@FreeBSD.org>
2386
2387 * aarch64-linux-nat.c
2388 (aarch64_linux_nat_target::thread_architecture): Adjust.
2389 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
2390 (task_command_1): Likewise.
2391 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
2392 (aix_thread_target::wait, aix_thread_target::fetch_registers)
2393 (aix_thread_target::store_registers)
2394 (aix_thread_target::thread_alive): Adjust.
2395 * amd64-fbsd-tdep.c: Include "inferior.h".
2396 (amd64fbsd_get_thread_local_address): Pass down target.
2397 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
2398 thread's gdbarch instead of target_gdbarch.
2399 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
2400 get_last_target_status.
2401 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
2402 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
2403 inferiors.
2404 (update_inserted_breakpoint_locations): Skip if inferiors with no
2405 execution.
2406 (update_global_location_list): When handling moribund locations,
2407 find representative inferior for location's pspace, and use thread
2408 count of its process_stratum target.
2409 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
2410 * bsd-uthread.c (bsd_uthread_target::wait): Use
2411 as_process_stratum_target and adjust thread_change_ptid and
2412 add_thread calls.
2413 (bsd_uthread_target::update_thread_list): Use
2414 as_process_stratum_target and adjust find_thread_ptid,
2415 thread_change_ptid and add_thread calls.
2416 * btrace.c (maint_btrace_packet_history_cmd): Adjust
2417 find_thread_ptid call.
2418 * corelow.c (add_to_thread_list): Adjust add_thread call.
2419 (core_target_open): Adjust add_thread_silent and thread_count
2420 calls.
2421 (core_target::pid_to_str): Adjust find_inferior_ptid call.
2422 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
2423 * event-top.c (async_disconnect): Pop targets from all inferiors.
2424 * exec.c (add_target_sections): Push exec target on all inferiors
2425 sharing the program space.
2426 (remove_target_sections): Remove the exec target from all
2427 inferiors sharing the program space.
2428 (exec_on_vfork): New.
2429 * exec.h (exec_on_vfork): Declare.
2430 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
2431 Pass it down.
2432 (fbsd_nat_target::update_thread_list): Adjust.
2433 (fbsd_nat_target::resume): Adjust.
2434 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
2435 down.
2436 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
2437 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
2438 get_thread_arch_regcache call.
2439 * fork-child.c (gdb_startup_inferior): Pass target down to
2440 startup_inferior and set_executing.
2441 * gdbthread.h (struct process_stratum_target): Forward declare.
2442 (add_thread, add_thread_silent, add_thread_with_info)
2443 (in_thread_list): Add process_stratum_target parameter.
2444 (find_thread_ptid(inferior*, ptid_t)): New overload.
2445 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
2446 parameter.
2447 (all_threads()): Delete overload.
2448 (all_threads, all_non_exited_threads): Add process_stratum_target
2449 parameter.
2450 (all_threads_safe): Use brace initialization.
2451 (thread_count): Add process_stratum_target parameter.
2452 (set_resumed, set_running, set_stop_requested, set_executing)
2453 (threads_are_executing, finish_thread_state): Add
2454 process_stratum_target parameter.
2455 (switch_to_thread): Use is_current_thread.
2456 * i386-fbsd-tdep.c: Include "inferior.h".
2457 (i386fbsd_get_thread_local_address): Pass down target.
2458 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
2459 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
2460 have_inferiors check.
2461 * inf-ptrace.c (inf_ptrace_target::create_inferior)
2462 (inf_ptrace_target::attach): Adjust.
2463 * infcall.c (run_inferior_call): Adjust.
2464 * infcmd.c (run_command_1): Pass target to
2465 scoped_finish_thread_state.
2466 (proceed_thread_callback): Skip inferiors with no execution.
2467 (continue_command): Rename 'all_threads' local to avoid hiding
2468 'all_threads' function. Adjust get_last_target_status call.
2469 (prepare_one_step): Adjust set_running call.
2470 (signal_command): Use user_visible_resume_target. Compare thread
2471 pointers instead of inferior_ptid.
2472 (info_program_command): Adjust to pass down target.
2473 (attach_command): Mark target's 'thread_executing' flag.
2474 (stop_current_target_threads_ns): New, factored out from ...
2475 (interrupt_target_1): ... this. Switch inferior before making
2476 target calls.
2477 * inferior-iter.h
2478 (struct all_inferiors_iterator, struct all_inferiors_range)
2479 (struct all_inferiors_safe_range)
2480 (struct all_non_exited_inferiors_range): Filter on
2481 process_stratum_target too. Remove explicit.
2482 * inferior.c (inferior::inferior): Push dummy target on target
2483 stack.
2484 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
2485 Add process_stratum_target parameter, and pass it down.
2486 (have_live_inferiors): Adjust.
2487 (switch_to_inferior_and_push_target): New.
2488 (add_inferior_command, clone_inferior_command): Handle
2489 "-no-connection" parameter. Use
2490 switch_to_inferior_and_push_target.
2491 (_initialize_inferior): Mention "-no-connection" option in
2492 the help of "add-inferior" and "clone-inferior" commands.
2493 * inferior.h: Include "process-stratum-target.h".
2494 (interrupt_target_1): Use bool.
2495 (struct inferior) <push_target, unpush_target, target_is_pushed,
2496 find_target_beneath, top_target, process_target, target_at,
2497 m_stack>: New.
2498 (discard_all_inferiors): Delete.
2499 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
2500 (all_inferiors, all_non_exited_inferiors): Add
2501 process_stratum_target parameter.
2502 * infrun.c: Include "gdb_select.h" and <unordered_map>.
2503 (target_last_proc_target): New global.
2504 (follow_fork_inferior): Push target on new inferior. Pass target
2505 to add_thread_silent. Call exec_on_vfork. Handle target's
2506 reference count.
2507 (follow_fork): Adjust get_last_target_status call. Also consider
2508 target.
2509 (follow_exec): Push target on new inferior.
2510 (struct execution_control_state) <target>: New field.
2511 (user_visible_resume_target): New.
2512 (do_target_resume): Call target_async.
2513 (resume_1): Set target's threads_executing flag. Consider resume
2514 target.
2515 (commit_resume_all_targets): New.
2516 (proceed): Also consider resume target. Skip threads of inferiors
2517 with no execution. Commit resumtion in all targets.
2518 (start_remote): Pass current inferior to wait_for_inferior.
2519 (infrun_thread_stop_requested): Consider target as well. Pass
2520 thread_info pointer to clear_inline_frame_state instead of ptid.
2521 (infrun_thread_thread_exit): Consider target as well.
2522 (random_pending_event_thread): New inferior parameter. Use it.
2523 (do_target_wait): Rename to ...
2524 (do_target_wait_1): ... this. Add inferior parameter, and pass it
2525 down.
2526 (threads_are_resumed_pending_p, do_target_wait): New.
2527 (prepare_for_detach): Adjust calls.
2528 (wait_for_inferior): New inferior parameter. Handle it. Use
2529 do_target_wait_1 instead of do_target_wait.
2530 (fetch_inferior_event): Adjust. Switch to representative
2531 inferior. Pass target down.
2532 (set_last_target_status): Add process_stratum_target parameter.
2533 Save target in global.
2534 (get_last_target_status): Add process_stratum_target parameter and
2535 handle it.
2536 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
2537 (context_switch): Check inferior_ptid == null_ptid before calling
2538 inferior_thread().
2539 (get_inferior_stop_soon): Pass down target.
2540 (wait_one): Rename to ...
2541 (poll_one_curr_target): ... this.
2542 (struct wait_one_event): New.
2543 (wait_one): New.
2544 (stop_all_threads): Adjust.
2545 (handle_no_resumed, handle_inferior_event): Adjust to consider the
2546 event's target.
2547 (switch_back_to_stepped_thread): Also consider target.
2548 (print_stop_event): Update.
2549 (normal_stop): Update. Also consider the resume target.
2550 * infrun.h (wait_for_inferior): Remove declaration.
2551 (user_visible_resume_target): New declaration.
2552 (get_last_target_status, set_last_target_status): New
2553 process_stratum_target parameter.
2554 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
2555 process_stratum_target parameter, and use it.
2556 (clear_inline_frame_state (thread_info*)): New.
2557 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
2558 process_stratum_target parameter.
2559 (clear_inline_frame_state (thread_info*)): Declare.
2560 * linux-fork.c (delete_checkpoint_command): Pass target down to
2561 find_thread_ptid.
2562 (checkpoint_command): Adjust.
2563 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
2564 instead of just tweaking inferior_ptid.
2565 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
2566 (exit_lwp): Pass target down to find_thread_ptid.
2567 (attach_proc_task_lwp_callback): Pass target down to
2568 add_thread/set_running/set_executing.
2569 (linux_nat_target::attach): Pass target down to
2570 thread_change_ptid.
2571 (get_detach_signal): Pass target down to find_thread_ptid.
2572 Consider last target status's target.
2573 (linux_resume_one_lwp_throw, resume_lwp)
2574 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
2575 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
2576 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
2577 (linux_nat_target::async_wait_fd): New.
2578 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
2579 target down.
2580 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
2581 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
2582 * linux-thread-db.c (struct thread_db_info::process_target): New
2583 field.
2584 (add_thread_db_info): Save target.
2585 (get_thread_db_info): New process_stratum_target parameter. Also
2586 match target.
2587 (delete_thread_db_info): New process_stratum_target parameter.
2588 Also match target.
2589 (thread_from_lwp): Adjust to pass down target.
2590 (thread_db_notice_clone): Pass down target.
2591 (check_thread_db_callback): Pass down target.
2592 (try_thread_db_load_1): Always push the thread_db target.
2593 (try_thread_db_load, record_thread): Pass target down.
2594 (thread_db_target::detach): Pass target down. Always unpush the
2595 thread_db target.
2596 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
2597 target down. Always unpush the thread_db target.
2598 (find_new_threads_callback, thread_db_find_new_threads_2)
2599 (thread_db_target::update_thread_list): Pass target down.
2600 (thread_db_target::pid_to_str): Pass current inferior down.
2601 (thread_db_target::get_thread_local_address): Pass target down.
2602 (thread_db_target::resume, maintenance_check_libthread_db): Pass
2603 target down.
2604 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
2605 * procfs.c (procfs_target::procfs_init_inferior): Declare.
2606 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
2607 (procfs_init_inferior): Rename to ...
2608 (procfs_target::procfs_init_inferior): ... this and adjust.
2609 (procfs_target::create_inferior, procfs_notice_thread)
2610 (procfs_do_thread_registers): Adjust.
2611 * ppc-fbsd-tdep.c: Include "inferior.h".
2612 (ppcfbsd_get_thread_local_address): Pass down target.
2613 * proc-service.c (ps_xfer_memory): Switch current inferior and
2614 program space as well.
2615 (get_ps_regcache): Pass target down.
2616 * process-stratum-target.c
2617 (process_stratum_target::thread_address_space)
2618 (process_stratum_target::thread_architecture): Pass target down.
2619 * process-stratum-target.h
2620 (process_stratum_target::threads_executing): New field.
2621 (as_process_stratum_target): New.
2622 * ravenscar-thread.c
2623 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
2624 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
2625 down.
2626 * record-btrace.c (record_btrace_target::info_record): Adjust.
2627 (record_btrace_target::record_method)
2628 (record_btrace_target::record_is_replaying)
2629 (record_btrace_target::fetch_registers)
2630 (get_thread_current_frame_id, record_btrace_target::resume)
2631 (record_btrace_target::wait, record_btrace_target::stop): Pass
2632 target down.
2633 * record-full.c (record_full_wait_1): Switch to event thread.
2634 Pass target down.
2635 * regcache.c (regcache::regcache)
2636 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
2637 process_stratum_target parameter and handle it.
2638 (current_thread_target): New global.
2639 (get_thread_regcache): Add process_stratum_target parameter and
2640 handle it. Switch inferior before calling target method.
2641 (get_thread_regcache): Pass target down.
2642 (get_thread_regcache_for_ptid): Pass target down.
2643 (registers_changed_ptid): Add process_stratum_target parameter and
2644 handle it.
2645 (registers_changed_thread, registers_changed): Pass target down.
2646 (test_get_thread_arch_aspace_regcache): New.
2647 (current_regcache_test): Define a couple local test_target_ops
2648 instances and use them for testing.
2649 (readwrite_regcache): Pass process_stratum_target parameter.
2650 (cooked_read_test, cooked_write_test): Pass mock_target down.
2651 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
2652 (get_thread_arch_aspace_regcache): Add process_stratum_target
2653 parameter.
2654 (regcache::target): New method.
2655 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
2656 (regcache::registers_changed_ptid): Add process_stratum_target
2657 parameter.
2658 (regcache::m_target): New field.
2659 (registers_changed_ptid): Add process_stratum_target parameter.
2660 * remote.c (remote_state::supports_vCont_probed): New field.
2661 (remote_target::async_wait_fd): New method.
2662 (remote_unpush_and_throw): Add remote_target parameter.
2663 (get_current_remote_target): Adjust.
2664 (remote_target::remote_add_inferior): Push target.
2665 (remote_target::remote_add_thread)
2666 (remote_target::remote_notice_new_inferior)
2667 (get_remote_thread_info): Pass target down.
2668 (remote_target::update_thread_list): Skip threads of inferiors
2669 bound to other targets. (remote_target::close): Don't discard
2670 inferiors. (remote_target::add_current_inferior_and_thread)
2671 (remote_target::process_initial_stop_replies)
2672 (remote_target::start_remote)
2673 (remote_target::remote_serial_quit_handler): Pass down target.
2674 (remote_target::remote_unpush_target): New remote_target
2675 parameter. Unpush the target from all inferiors.
2676 (remote_target::remote_unpush_and_throw): New remote_target
2677 parameter. Pass it down.
2678 (remote_target::open_1): Check whether the current inferior has
2679 execution instead of checking whether any inferior is live. Pass
2680 target down.
2681 (remote_target::remote_detach_1): Pass down target. Use
2682 remote_unpush_target.
2683 (extended_remote_target::attach): Pass down target.
2684 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
2685 (remote_target::append_resumption): Pass down target.
2686 (remote_target::append_pending_thread_resumptions)
2687 (remote_target::remote_resume_with_hc, remote_target::resume)
2688 (remote_target::commit_resume): Pass down target.
2689 (remote_target::remote_stop_ns): Check supports_vCont_probed.
2690 (remote_target::interrupt_query)
2691 (remote_target::remove_new_fork_children)
2692 (remote_target::check_pending_events_prevent_wildcard_vcont)
2693 (remote_target::remote_parse_stop_reply)
2694 (remote_target::process_stop_reply): Pass down target.
2695 (first_remote_resumed_thread): New remote_target parameter. Pass
2696 it down.
2697 (remote_target::wait_as): Pass down target.
2698 (unpush_and_perror): New remote_target parameter. Pass it down.
2699 (remote_target::readchar, remote_target::remote_serial_write)
2700 (remote_target::getpkt_or_notif_sane_1)
2701 (remote_target::kill_new_fork_children, remote_target::kill): Pass
2702 down target.
2703 (remote_target::mourn_inferior): Pass down target. Use
2704 remote_unpush_target.
2705 (remote_target::core_of_thread)
2706 (remote_target::remote_btrace_maybe_reopen): Pass down target.
2707 (remote_target::pid_to_exec_file)
2708 (remote_target::thread_handle_to_thread_info): Pass down target.
2709 (remote_target::async_wait_fd): New.
2710 * riscv-fbsd-tdep.c: Include "inferior.h".
2711 (riscv_fbsd_get_thread_local_address): Pass down target.
2712 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
2713 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
2714 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
2715 Adjust.
2716 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
2717 * solib-svr4.c (enable_break): Pass down target.
2718 * spu-multiarch.c (parse_spufs_run): Pass down target.
2719 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
2720 * target-delegates.c: Regenerate.
2721 * target.c (g_target_stack): Delete.
2722 (current_top_target): Return the current inferior's top target.
2723 (target_has_execution_1): Refer to the passed-in inferior's top
2724 target.
2725 (target_supports_terminal_ours): Check whether the initial
2726 inferior was already created.
2727 (decref_target): New.
2728 (target_stack::push): Incref/decref the target.
2729 (push_target, push_target, unpush_target): Adjust.
2730 (target_stack::unpush): Defref target.
2731 (target_is_pushed): Return bool. Adjust to refer to the current
2732 inferior's target stack.
2733 (dispose_inferior): Delete, and inline parts ...
2734 (target_preopen): ... here. Only dispose of the current inferior.
2735 (target_detach): Hold strong target reference while detaching.
2736 Pass target down.
2737 (target_thread_name): Add assertion.
2738 (target_resume): Pass down target.
2739 (target_ops::beneath, find_target_at): Adjust to refer to the
2740 current inferior's target stack.
2741 (get_dummy_target): New.
2742 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
2743 has a thread running.
2744 (initialize_targets): Rename to ...
2745 (_initialize_target): ... this.
2746 * target.h: Include "gdbsupport/refcounted-object.h".
2747 (struct target_ops): Inherit refcounted_object.
2748 (target_ops::shortname, target_ops::longname): Make const.
2749 (target_ops::async_wait_fd): New method.
2750 (decref_target): Declare.
2751 (struct target_ops_ref_policy): New.
2752 (target_ops_ref): New typedef.
2753 (get_dummy_target): Declare function.
2754 (target_is_pushed): Return bool.
2755 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
2756 (all_matching_threads_iterator::all_matching_threads_iterator):
2757 Handle filter target.
2758 * thread-iter.h (struct all_matching_threads_iterator, struct
2759 all_matching_threads_range, class all_non_exited_threads_range):
2760 Filter by target too. Remove explicit.
2761 * thread.c (threads_executing): Delete.
2762 (inferior_thread): Pass down current inferior.
2763 (clear_thread_inferior_resources): Pass down thread pointer
2764 instead of ptid_t.
2765 (add_thread_silent, add_thread_with_info, add_thread): Add
2766 process_stratum_target parameter. Use it for thread and inferior
2767 searches.
2768 (is_current_thread): New.
2769 (thread_info::deletable): Use it.
2770 (find_thread_ptid, thread_count, in_thread_list)
2771 (thread_change_ptid, set_resumed, set_running): New
2772 process_stratum_target parameter. Pass it down.
2773 (set_executing): New process_stratum_target parameter. Pass it
2774 down. Adjust reference to 'threads_executing'.
2775 (threads_are_executing): New process_stratum_target parameter.
2776 Adjust reference to 'threads_executing'.
2777 (set_stop_requested, finish_thread_state): New
2778 process_stratum_target parameter. Pass it down.
2779 (switch_to_thread): Also match inferior.
2780 (switch_to_thread): New process_stratum_target parameter. Pass it
2781 down.
2782 (update_threads_executing): Reimplement.
2783 * top.c (quit_force): Pop targets from all inferior.
2784 (gdb_init): Don't call initialize_targets.
2785 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
2786 Declare.
2787 (windows_add_thread, windows_delete_thread): Adjust.
2788 (get_windows_debug_event): Rename to ...
2789 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
2790 * tracefile-tfile.c (tfile_target_open): Pass down target.
2791 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
2792 Forward declare.
2793 (switch_to_thread): Add process_stratum_target parameter.
2794 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
2795 parameter. Use it.
2796 (mi_on_resume): Pass target down.
2797 * nat/fork-inferior.c (startup_inferior): Add
2798 process_stratum_target parameter. Pass it down.
2799 * nat/fork-inferior.h (startup_inferior): Add
2800 process_stratum_target parameter.
2801 * python/py-threadevent.c (py_get_event_thread): Pass target down.
2802
75c6c844
PA
28032020-01-10 Pedro Alves <palves@redhat.com>
2804
2805 * remote.c (remote_target::start_remote): Don't set inferior_ptid
2806 directly. Instead find the first thread in the thread list and
2807 use switch_to_thread.
2808
78f2c40a
PA
28092020-01-10 Pedro Alves <palves@redhat.com>
2810
2811 * remote.c (remote_target::remote_add_inferior): Don't bind a
2812 process to the current inferior if the current inferior is already
2813 bound to a process.
2814
e7af6c70
TBA
28152020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2816 Pedro Alves <palves@redhat.com>
2817
2818 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
2819 If no process is specified, return null_ptid instead of
2820 inferior_ptid.
2821 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
2822 TARGET_WAITKIND_SIGNALLED with no pid.
2823
31ba933e
PA
28242020-01-10 Pedro Alves <palves@redhat.com>
2825
2826 * remote.c (first_remote_resumed_thread): New.
2827 (remote_target::wait_as): Use it as default event_ptid instead of
2828 inferior_ptid.
2829
735fc2ca
PA
28302020-01-10 Pedro Alves <palves@redhat.com>
2831
2832 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
2833
c17e02e1
PA
28342020-01-10 Pedro Alves <palves@redhat.com>
2835
2836 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
2837 not -1.
2838
ab1ddbcf
PA
28392020-01-10 Pedro Alves <palves@redhat.com>
2840
2841 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
2842 ptid to get_last_target_status.
2843 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
2844 ptid to get_last_target_status.
2845 * infcmd.c (continue_command): Don't pass a target_waitstatus to
2846 get_last_target_status.
2847 (info_program_command): Don't pass a target_waitstatus to
2848 get_last_target_status.
2849 * infrun.c (init_wait_for_inferior): Use
2850 nullify_last_target_wait_ptid.
2851 (get_last_target_status): Handle nullptr arguments.
2852 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
2853 (print_stop_event): Don't pass a ptid to get_last_target_status.
2854 (normal_stop): Don't pass a ptid to get_last_target_status.
2855 * infrun.h (get_last_target_status, set_last_target_status): Move
2856 comments here and update.
2857 (nullify_last_target_wait_ptid): Declare.
2858 * linux-fork.c (fork_load_infrun_state): Remove local extern
2859 declaration of nullify_last_target_wait_ptid.
2860 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
2861 to get_last_target_status.
2862
f3f8ece4
PA
28632020-01-10 Pedro Alves <palves@redhat.com>
2864
2865 * gdbthread.h (scoped_restore_current_thread)
2866 <dont_restore, restore, m_dont_restore>: Declare.
2867 * thread.c (thread_alive): Add assertion. Return bool.
2868 (switch_to_thread_if_alive): New.
2869 (prune_threads): Switch inferior/thread.
2870 (print_thread_info_1): Switch thread before calling target methods.
2871 (scoped_restore_current_thread::restore): New, factored out from
2872 ...
2873 (scoped_restore_current_thread::~scoped_restore_current_thread):
2874 ... this.
2875 (scoped_restore_current_thread::scoped_restore_current_thread):
2876 Add assertion.
2877 (thread_apply_all_command, thread_select): Use
2878 switch_to_thread_if_alive.
2879 * infrun.c (proceed, restart_threads, handle_signal_stop)
2880 (switch_back_to_stepped_thread): Switch current thread before
2881 calling target methods.
2882
db2d40f7
PA
28832020-01-10 Pedro Alves <palves@redhat.com>
2884
2885 * inferior.c (switch_to_inferior_no_thread): New function,
2886 factored out from ...
2887 (inferior_command): ... here.
2888 * inferior.h (switch_to_inferior_no_thread): Declare.
2889 * mi/mi-main.c (run_one_inferior): Use
2890 switch_to_inferior_no_thread.
2891
bd420a2d
PA
28922020-01-10 Pedro Alves <palves@redhat.com>
2893
2894 * infcmd.c (kill_command): Remove dead code.
2895
ddf5db90
PA
28962020-01-10 Pedro Alves <palves@redhat.com>
2897
2898 * remote.c (remote_target::mourn_inferior): No longer check
2899 whether the target is running.
2900
5018ce90
PA
29012020-01-10 Pedro Alves <palves@redhat.com>
2902
2903 * corelow.c (core_target::has_execution): Change parameter type to
2904 inferior pointer.
2905 * inferior.c (number_of_live_inferiors): Use
2906 inferior::has_execution instead of target_has_execution_1.
2907 * inferior.h (inferior::has_execution): New.
2908 * linux-thread-db.c (thread_db_target::update_thread_list): Use
2909 inferior::has_execution instead of target_has_execution_1.
2910 * process-stratum-target.c
2911 (process_stratum_target::has_execution): Change parameter type to
2912 inferior pointer. Check the inferior's PID instead of
2913 inferior_ptid.
2914 * process-stratum-target.h
2915 (process_stratum_target::has_execution): Change parameter type to
2916 inferior pointer.
2917 * record-full.c (record_full_core_target::has_execution): Change
2918 parameter type to inferior pointer.
2919 * target.c (target_has_execution_1): Change parameter type to
2920 inferior pointer.
2921 (target_has_execution_current): Adjust.
2922 * target.h (target_ops::has_execution): Change parameter type to
2923 inferior pointer.
2924 (target_has_execution_1): Change parameter type to inferior
2925 pointer. Change return type to bool.
2926 * tracefile.h (tracefile_target::has_execution): Change parameter
2927 type to inferior pointer.
2928
74375d18
PA
29292020-01-10 Pedro Alves <palves@redhat.com>
2930
2931 * exceptions.c (print_flush): Remove current_top_target() check.
2932
acdf84a6
PA
29332020-01-10 Pedro Alves <palves@redhat.com>
2934
2935 * remote.c (show_remote_exec_file): Show the current inferior's
2936 exec-file instead of the command variable's value.
2937
ec506636
PA
29382020-01-10 Pedro Alves <palves@redhat.com>
2939
2940 * record-full.c (record_full_resume_ptid): New global.
2941 (record_full_target::resume): Set it.
2942 (record_full_wait_1): Use record_full_resume_ptid instead of
2943 inferior_ptid.
2944
873657b9
PA
29452020-01-10 Pedro Alves <palves@redhat.com>
2946
2947 * gdbthread.h (scoped_restore_current_thread)
2948 <dont_restore, restore, m_dont_restore>: Declare.
2949 * thread.c (thread_alive): Add assertion. Return bool.
2950 (switch_to_thread_if_alive): New.
2951 (prune_threads): Switch inferior/thread.
2952 (print_thread_info_1): Switch thread before calling target methods.
2953 (scoped_restore_current_thread::restore): New, factored out from
2954 ...
2955 (scoped_restore_current_thread::~scoped_restore_current_thread):
2956 ... this.
2957 (scoped_restore_current_thread::scoped_restore_current_thread):
2958 Add assertion.
2959 (thread_apply_all_command, thread_select): Use
2960 switch_to_thread_if_alive.
2961
7f0ae84c
GB
29622020-01-10 George Barrett <bob@bob131.so>
2963
2964 * stap-probe.c (stap_modify_semaphore): Don't check for null
2965 semaphores.
2966 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
2967 for null semaphores.
2968
f5a7c406
AB
29692020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
2970
2971 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
2972 all source windows, and maintain horizontal scroll status while
2973 doing so.
2974
9ae6bf64
TT
29752020-01-09 Tom Tromey <tom@tromey.com>
2976
2977 PR tui/18932:
2978 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
2979 update_source_window, not print_source_lines.
2980
b2efe70c
AB
29812020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
2982
2983 * tui/tui.c (tui_enable): Register tui hooks after calling
2984 tui_display_main.
2985
5f23a082
CB
29862020-01-09 Christian Biesinger <cbiesinger@google.com>
2987
2988 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
2989
3061113b
SM
29902020-01-08 Simon Marchi <simon.marchi@efficios.com>
2991
2992 * thread.c (print_thread_info_1): Fix indentation.
2993
57d75002
CB
29942020-01-09 Christian Biesinger <cbiesinger@google.com>
2995
2996 * symtab.c (general_symbol_info::compute_and_set_names): Move the
2997 unique_xmalloc_ptr outside the if to always free the demangled name.
2998
6a053cb1
TT
29992020-01-08 Tom Tromey <tromey@adacore.com>
3000
3001 * xcoffread.c (enter_line_range, read_xcoff_symtab)
3002 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
3003 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
3004 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
3005 Remove.
3006 (section_offsets): New typedef.
3007 * symtab.c (fixup_section, get_msymbol_address): Update.
3008 * symmisc.c (dump_msymbols): Update.
3009 * symfile.h (relative_addr_info_to_section_offsets)
3010 (symfile_map_offsets_to_segments): Update.
3011 * symfile.c (build_section_addr_info_from_objfile)
3012 (init_objfile_sect_indices): Update.
3013 (struct place_section_arg): Change type of "offsets".
3014 (place_section): Update.
3015 (relative_addr_info_to_section_offsets): Change type of
3016 "section_offsets". Remove "num_sections" parameter.
3017 (default_symfile_offsets, syms_from_objfile_1)
3018 (set_objfile_default_section_offset): Update.
3019 (reread_symbols): No need to preserve section offsets by hand.
3020 (symfile_map_offsets_to_segments): Change type of "offsets".
3021 * stap-probe.c (relocate_address): Update.
3022 * stabsread.h (process_one_symbol): Update.
3023 * solib-target.c (struct lm_info_target) <offsets>: Change type.
3024 (solib_target_relocate_section_addresses): Update.
3025 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
3026 Update.
3027 * solib-frv.c (frv_relocate_main_executable): Update.
3028 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
3029 * solib-aix.c (solib_aix_get_section_offsets): Change return
3030 type.
3031 (solib_aix_solib_create_inferior_hook): Update.
3032 * remote.c (remote_target::get_offsets): Update.
3033 * psymtab.c (find_pc_sect_psymtab): Update.
3034 * psympriv.h (struct partial_symbol) <address, text_low,
3035 text_high>: Update.
3036 * objfiles.h (obj_section_offset): Update.
3037 (struct objfile) <section_offsets>: Change type.
3038 <num_sections>: Remove.
3039 (objfile_relocate): Update.
3040 * objfiles.c (entry_point_address_query): Update
3041 (relocate_one_symbol): Change type of "section_offsets".
3042 (objfile_relocate1, objfile_relocate1): Change type of
3043 "new_offsets".
3044 (objfile_rebase1): Update.
3045 * mipsread.c (mipscoff_symfile_read): Update.
3046 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
3047 parameter.
3048 * mdebugread.c (parse_symbol): Change type of "section_offsets".
3049 (parse_external, psymtab_to_symtab_1): Update.
3050 * machoread.c (macho_symfile_offsets): Update.
3051 * ia64-tdep.c (ia64_find_unwind_table): Update.
3052 * hppa-tdep.c (read_unwind_info): Update.
3053 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
3054 * dwarf2read.c (create_addrmap_from_index)
3055 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
3056 (process_psymtab_comp_unit_reader, add_partial_symbol)
3057 (add_partial_subprogram, process_full_comp_unit)
3058 (read_file_scope, read_func_scope, read_lexical_block_scope)
3059 (read_call_site_scope, dwarf2_rnglists_process)
3060 (dwarf2_ranges_process, dwarf2_ranges_read)
3061 (dwarf_decode_lines_1, var_decode_location, new_symbol)
3062 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
3063 Update.
3064 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
3065 Update.
3066 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
3067 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
3068 (process_one_symbol): Change type of "section_offsets".
3069 * ctfread.c (get_objfile_text_range): Update.
3070 * coffread.c (coff_symtab_read, enter_linenos)
3071 (process_coff_symbol): Update.
3072 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3073 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
3074
456e800a
TT
30752020-01-08 Tom Tromey <tromey@adacore.com>
3076
3077 * dwarf2read.c (parse_macro_definition): Use std::string.
3078 (parse_macro_definition): Likewise.
3079
6dfa2fc2
TT
30802020-01-08 Tom Tromey <tromey@adacore.com>
3081
3082 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
3083 (ATTR_ALLOC_CHUNK): Remove.
3084
421d1616
TT
30852020-01-08 Tom Tromey <tromey@adacore.com>
3086
3087 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
3088
43816ebc
TT
30892020-01-08 Tom Tromey <tromey@adacore.com>
3090
3091 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
3092 (dwarf2_compute_name, open_dwo_file): Likewise.
3093 (process_enumeration_scope): Use std::vector.
3094 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
3095 (partial_die_info::fixup, dwarf2_start_subfile)
3096 (guess_full_die_structure_name, dwarf2_name): Likewise.
3097 (determine_prefix): Update.
3098 (guess_full_die_structure_name): Make return type const.
3099 (partial_die_full_name): Return unique_xmalloc_ptr.
3100 (DW_FIELD_ALLOC_CHUNK): Remove.
3101
4212d509
TT
31022020-01-07 Tom Tromey <tromey@adacore.com>
3103
3104 PR build/24937:
3105 * stap-probe.c (class stap_static_probe_ops): Add constructor.
3106
06a6207a
JT
31072020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
3108
3109 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
3110
153d79c4
AB
31112020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
3112
3113 * stack.c (print_frame_info): Move disassemble_next_line code
3114 inside source_print block.
3115
66182876
EZ
31162020-01-06 Eli Zaretskii <eliz@gnu.org>
3117
3118 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
3119 gdb/signals.h, as we are now using native signal symbols.
3120
cbfa8581
SV
31212020-01-06 Shahab Vahedi <shahab@synopsys.com>
3122
3123 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
3124 overflow by an early check of content vs threshold.
3125 * tui/tui-source.c (tui_source_window::line_is_displayed):
3126 Likewise.
3127
3f602821
EZ
31282020-01-06 Eli Zaretskii <eliz@gnu.org>
3129
3130 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
3131
a08c904d
JT
31322020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
3133
3134 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
3135 export table if no section contains it's RVA.
3136
89a65580
EZ
31372020-01-06 Eli Zaretskii <eliz@gnu.org>
3138
3139 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
3140
8b7fcda2
HD
31412020-01-06 Hannes Domani <ssbssa@yahoo.de>
3142
3143 * source.c (print_source_lines_base): Set last_line_listed.
3144
a61b4f69
SV
31452020-01-06 Shahab Vahedi <shahab@synopsys.com>
3146
3147 * tui/tui-disasm.c: Remove trailing spaces.
3148
559e7e50
EZ
31492020-01-06 Eli Zaretskii <eliz@gnu.org>
3150 Pedro Alves <palves@redhat.com>
3151
3152 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
3153 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
3154 (windows_gdb_signal_to_target): New function, uses the above
3155 enumeration to convert GDB internal signal codes to equivalent
3156 Windows codes.
3157 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
3158 * windows-nat.c: Include "gdb_wait.h".
3159 (get_windows_debug_event): Extract the fatal exception from the
3160 exit status and convert to the equivalent Posix signal number.
3161 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
3162 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
3163 * gdbsupport/gdb_wait.c: New file, implements
3164 windows_status_to_termsig.
3165 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
3166 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
3167
f2302a34
AB
31682020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
3169
3170 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
3171 show_layout.
3172
6a5206eb
LM
31732020-01-05 Luis Machado <luis.machado@linaro.org>
3174
3175 * aarch64-linux-nat.c
3176 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
3177 and bfd_mach_aarch64.
3178
6ec1d75e
PW
31792020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3180
3181 * ui-file.c (stdio_file::can_emit_style_escape)
3182 (tee_file::can_emit_style_escape): Ensure style is used also on
3183 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
3184 to gdb_stdout.
3185 * main.c (set_gdb_data_directory): Use file style to output the
3186 warning that the given pathname is not a directory.
3187 * top.c (show_history_filename, gdb_safe_append_history)
3188 (show_gdb_datadir): Use file style.
3189
44f81a76
HD
31902020-01-03 Hannes Domani <ssbssa@yahoo.de>
3191
3192 * solib-target.c (struct lm_info_target):
3193 Change offsets to be a unique_xmalloc_ptr.
3194 (solib_target_relocate_section_addresses): Update.
3195
25057eb0
HD
31962020-01-03 Hannes Domani <ssbssa@yahoo.de>
3197
3198 * windows-nat.c (windows_clear_solib): Free so_list linked list.
3199
6e2118f5
BE
32002020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
3201
3202 * MAINTAINERS (Write After Approval): Add myself.
3203
8133c7dc
LM
32042020-01-02 Luis Machado <luis.machado@linaro.org>
3205
3206 * proc-service.c (get_ps_regcache): Remove reference to obsolete
3207 Cell BE architecture.
3208 * target.h (struct target_ops) <thread_architecture>: Likewise.
3209
48189bec
HD
32102020-01-01 Hannes Domani <ssbssa@yahoo.de>
3211
3212 * Makefile.in: Use INSTALL_PROGRAM_ENV.
3213
ead1063b
HD
32142020-01-01 Hannes Domani <ssbssa@yahoo.de>
3215
3216 * MAINTAINERS (Write After Approval): Add myself.
3217
e5d78223
JB
32182020-01-01 Joel Brobecker <brobecker@adacore.com>
3219
3220 * gdbarch.sh: Update copyright year range of generated files.
3221
b811d2c2
JB
32222020-01-01 Joel Brobecker <brobecker@adacore.com>
3223
3224 Update copyright year range in all GDB files.
3225
5f4def5c
JB
32262020-01-01 Joel Brobecker <brobecker@adacore.com>
3227
3228 * copyright.py: Convert to Python 3.
3229
51fd4002
JB
32302020-01-01 Joel Brobecker <brobecker@adacore.com>
3231
3232 * copyright.py: Adapt after move of gnulib directory from gdb
3233 directory to toplevel directory.
3234
5fb651f2
JB
32352020-01-01 Joel Brobecker <brobecker@adacore.com>
3236
3237 * copyright.py (main): Exit if run from the wrong directory.
3238
5dd8bf88
JB
32392020-01-01 Joel Brobecker <brobecker@adacore.com>
3240
3241 * top.c (print_gdb_version): Change copyright year to 2020.
3242
9f71dacb 32432020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 3244
9f71dacb 3245 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 3246
9f71dacb 3247For older changes see ChangeLog-2019.
c906108c
SS
3248\f
3249Local Variables:
3250mode: change-log
3251left-margin: 8
3252fill-column: 74
3253version-control: never
57da7796 3254coding: utf-8
c906108c 3255End: