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