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