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