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