]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Create dwarf2/leb.[ch]
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f4382c45
TT
12020-02-08 Tom Tromey <tom@tromey.com>
2
3 * dwarf2read.h (read_unsigned_leb128): Don't declare.
4 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
5 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
6 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
7 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
8 * dwarf2/leb.h: New file, from dwarf2read.c.
9 * dwarf2/leb.c: New file, from dwarf2read.c.
10 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11 Remove.
12 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13 (COMMON_SFILES): Add dwarf2/leb.c.
14
01840b7a
JB
152020-02-08 Joel Brobecker <brobecker@adacore.com>
16
17 GDB 9.1 released.
18
dfcb27e4
IB
192020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
20
21 PR gdb/25190:
22 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
23 * gdb/remote.c (remote_console_output): Update.
24 * gdb/ui-file.c (fputs_unfiltered): Rename to...
25 (ui_file_puts): ...this.
26 * gdb/ui-file.h (ui_file_puts): Add declaration.
27 * gdb/utils.c (emit_style_escape): Update.
28 (flush_wrap_buffer): Update.
29 (fputs_maybe_filtered): Update.
30 (fputs_unfiltered): Add function.
31
faa17681
IB
322020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
33
34 * gdb/event-loop.c (gdb_wait_for_event): Update.
35 * gdb/printcmd.c (printf_command): Update.
36 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
37 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
38 (gdb_os_flush_stderr): Update.
39 * gdb/remote.c (remote_console_output): Update.
40 * gdb/ui-file.c (gdb_flush): Rename to...
41 (ui_file_flush): ...this.
42 (stderr_file::write): Update.
43 (stderr_file::puts): Update.
44 * gdb/ui-file.h (gdb_flush): Rename to...
45 (ui_file_flush): ...this.
46 * gdb/utils.c (gdb_flush): Add function.
47 * gdb/utils.h (gdb_flush): Add declaration.
48
5abbbe1d
TT
492020-02-07 Tom Tromey <tromey@adacore.com>
50
51 PR breakpoints/24915:
52 * source.c (find_and_open_source): Do not check basenames_may_differ.
53
919adfe8
TT
542020-02-07 Tom Tromey <tom@tromey.com>
55
56 * README: Update gdbserver documentation.
57 * gdbserver: Move to top level.
58 * configure.tgt (build_gdbserver): Remove.
59 * configure.ac: Remove --enable-gdbserver.
60 * configure: Rebuild.
61 * Makefile.in (distclean): Don't mention gdbserver.
62
1d5d29e7
SV
632020-02-06 Shahab Vahedi <shahab@synopsys.com>
64
65 * source-cache.c (source_cache::ensure): Surround
66 get_plain_source_lines with a try/catch.
67 (source_cache::get_line_charpos): Get rid of try/catch
68 and only check for the return value of "ensure".
69 * tui/tui-source.c (tui_source_window::set_contents):
70 Simplify "nlines" calculation.
71
6eb1129c
SV
722020-02-06 Shahab Vahedi <shahab@synopsys.com>
73
74 * MAINTAINERS (Write After Approval): Add myself.
75
c6a42d11
CB
762020-02-05 Christian Biesinger <cbiesinger@google.com>
77
78 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
79 function call.
80
c8ecdda6
CB
812020-02-05 Christian Biesinger <cbiesinger@google.com>
82
83 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
84
f6480e70
MR
852020-02-05 Maciej W. Rozycki <macro@wdc.com>
86
87 * nat/riscv-linux-tdesc.h: New file.
88 * nat/riscv-linux-tdesc.c: New file, taking code from...
89 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
90 ... here.
91 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
92 NATDEPFILES.
93
dcc9fbc6
AB
942020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
95
96 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
97 we don't set the fake simulator ptid to the null_ptid.
98
719546c4
SM
992020-02-03 Simon Marchi <simon.marchi@efficios.com>
100
101 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
102 * gdbthread.h (class thread_info) <resumed>: Likewise.
103 * infrun.c (resume_1): Likewise.
104 (proceed): Likewise.
105 (infrun_thread_stop_requested): Likewise.
106 (stop_all_threads): Likewise.
107 (handle_inferior_event): Likewise.
108 (restart_threads): Likewise.
109 (finish_step_over): Likewise.
110 (keep_going_stepped_thread): Likewise.
111 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
112 (linux_handle_extended_wait): Likewise.
113 * record-btrace.c (get_thread_current_frame_id): Likewise.
114 * record-full.c (record_full_wait_1): Likewise.
115 * remote.c (remote_target::process_initial_stop_replies): Likewise.
116 * target.c (target_resume): Likewise.
117 * thread.c (set_running_thread): Likewise.
118
e409c542
AKS
1192020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
120
121 * f-valprint.c (f77_print_array_1): Changed datatype of index
122 variable to LONGEST from int to enable it to contain bound
123 values correctly.
124
ee98c0da
MR
1252020-02-03 Maciej W. Rozycki <macro@wdc.com>
126
127 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
128 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
129 offsets according to FLEN determined.
130 (riscv_linux_nat_target::read_description): Determine FLEN
131 dynamically.
132 (riscv_linux_nat_target::fetch_registers): Size regset buffer
133 according to FLEN determined.
134 (riscv_linux_nat_target::store_registers): Likewise.
135
aa66aac4
SV
1362020-02-01 Shahab Vahedi <shahab@synopsys.com>
137
138 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
139 when reg->group is empty and reggroup is not.
140
fd9faca8
TT
1412020-01-31 Tom Tromey <tromey@adacore.com>
142
143 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
144 Call beneath target's mourn_inferior after unpushing.
145
42330a68
AB
1462020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
147
148 PR tui/9765
149 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
150 have enough lines to fill the screen, still return the lowest
151 address we found.
152
7a27a45b
AB
1532020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
154
155 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
156 '-', '<', and '>' commands.
157
c47f70e2
PA
1582020-01-29 Pedro Alves <palves@redhat.com>
159 Sergio Durigan Junior <sergiodj@redhat.com>
160
161 * infcmd.c (construct_inferior_arguments): Assert that
162 'argc' is greater than 0.
163
5133a315
LM
1642020-01-29 Luis Machado <luis.machado@linaro.org>
165
166 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
167 (BRK_INSN_MASK): Define to 0xd4200000.
168 (aarch64_program_breakpoint_here_p): New function.
169 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
170 * arch-utils.c (default_program_breakpoint_here_p): Moved from
171 breakpoint.c.
172 * arch-utils.h (default_program_breakpoint_here_p): Moved from
173 breakpoint.h
174 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
175 call gdbarch_program_breakpoint_here_p.
176 (program_breakpoint_here): Moved to arch-utils.c, renamed to
177 default_program_breakpoint_here_p, changed return type to bool and
178 simplified.
179 * breakpoint.h (program_breakpoint_here): Moved prototype to
180 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
181 return type to bool.
182 * gdbarch.c: Regenerate.
183 * gdbarch.h: Regenerate.
184 * gdbarch.sh (program_breakpoint_here_p): New method.
185 * infrun.c (handle_signal_stop): Call
186 gdbarch_program_breakpoint_here_p.
187
168f8c6b
TT
1882020-01-26 Tom Tromey <tom@tromey.com>
189
190 * ctfread.c (struct ctf_fp_info): Reindent.
191 (_initialize_ctfread): Remove.
192
128a391f
TT
1932020-01-26 Tom Tromey <tom@tromey.com>
194
195 * psymtab.c (partial_map_expand_apply)
196 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
197 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
198 (psym_print_stats, psym_expand_symtabs_for_function)
199 (psym_map_symbol_filenames, psym_map_matching_symbols)
200 (psym_expand_symtabs_matching)
201 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
202 (maintenance_check_psymtabs): Use new methods.
203 * psympriv.h (struct partial_symtab) <readin_p,
204 get_compunit_symtab>: New methods.
205 <readin, compunit_symtab>: Remove members.
206 (struct standard_psymtab): New.
207 (struct legacy_psymtab): Derive from standard_psymtab.
208 * dwarf2read.h (struct dwarf2_psymtab): Derive from
209 standard_psymtab.
210 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
211
0494dbec
TT
2122020-01-26 Tom Tromey <tom@tromey.com>
213
214 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
215 read_dependencies. Add assert.
216 * psymtab.c (partial_symtab::read_dependencies): New method.
217 * psympriv.h (struct partial_symtab) <read_dependencies>: New
218 method.
219 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
220 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
221 read_dependencies.
222 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
223 Add assert.
224
8566b89b
TT
2252020-01-26 Tom Tromey <tom@tromey.com>
226
227 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
228 Call expand_psymtab.
229 (xcoff_read_symtab): Call expand_psymtab.
230 (xcoff_start_psymtab, xcoff_end_psymtab): Set
231 legacy_expand_psymtab.
232 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
233 method.
234 (struct legacy_psymtab) <expand_psymtab>: Implement.
235 <legacy_expand_psymtab>: New member.
236 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
237 (parse_partial_symbols): Set legacy_expand_psymtab.
238 (psymtab_to_symtab_1): Change argument order. Call
239 expand_psymtab.
240 (new_psymtab): Set legacy_expand_psymtab.
241 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
242 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
243 expand_psymtab.
244 (dwarf2_psymtab::expand_psymtab): Rename from
245 psymtab_to_symtab_1. Call expand_psymtab.
246 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
247 (dbx_end_psymtab): Likewise.
248 (dbx_psymtab_to_symtab_1): Change argument order. Call
249 expand_psymtab.
250 (dbx_read_symtab): Call expand_psymtab.
251 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
252 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
253 (ctf_psymtab::read_symtab): Call expand_psymtab.
254
077cbab2
TT
2552020-01-26 Tom Tromey <tom@tromey.com>
256
257 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
258 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
259 messages.
260 * mdebugread.c (mdebug_read_symtab): Remove prints.
261 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
262 assert.
263 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
264
891813be
TT
2652020-01-26 Tom Tromey <tom@tromey.com>
266
267 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
268 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
269 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
270 legacy_symtab.
271 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
272 * psymtab.c (psymtab_to_symtab): Call method.
273 (dump_psymtab): Update.
274 * psympriv.h (struct partial_symtab): Add virtual destructor.
275 <read_symtab>: New method.
276 (struct legacy_symtab): New.
277 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
278 (struct pst_map) <pst>: Now a legacy_psymtab.
279 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
280 (new_psymtab): Use legacy_psymtab.
281 * dwarf2read.h (struct dwarf2_psymtab): New.
282 (struct dwarf2_per_cu_data) <psymtab>: Use it.
283 * dwarf2read.c (dwarf2_create_include_psymtab)
284 (dwarf2_build_include_psymtabs, create_type_unit_group)
285 (create_partial_symtab, process_psymtab_comp_unit_reader)
286 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
287 (set_partial_user): Use dwarf2_psymtab.
288 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
289 (psymtab_to_symtab_1, process_full_comp_unit)
290 (process_full_type_unit, dwarf2_ranges_read)
291 (dwarf2_get_pc_bounds, psymtab_include_file_name)
292 (dwarf_decode_lines): Use dwarf2_psymtab.
293 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
294 (add_address_entry_worker, write_one_signatured_type)
295 (recursively_count_psymbols, recursively_write_psymbols)
296 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
297 (write_debug_names): Likewise.
298 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
299 <pst>: Now a legacy_psymtab.
300 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
301 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
302 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
303 * ctfread.c (struct ctf_psymtab): New.
304 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
305 ctf_psymtab.
306 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
307 (create_partial_symtab): Return a ctf_psymtab.
308 (scan_partial_symbols): Update.
309
c3693a1d
TT
3102020-01-26 Tom Tromey <tom@tromey.com>
311
312 * xcoffread.c (xcoff_start_psymtab): Use new.
313 * psymtab.c (partial_symtab::partial_symtab): New constructor,
314 renamed from start_psymtab_common.
315 * psympriv.h (struct partial_symtab): Add new constructor.
316 (start_psymtab_common): Don't declare.
317 * mdebugread.c (parse_partial_symbols): Use new.
318 * dwarf2read.c (create_partial_symtab): Use new.
319 * dbxread.c (start_psymtab): Use new.
320 * ctfread.c (create_partial_symtab): Use new.
321
32caafd0
TT
3222020-01-26 Tom Tromey <tom@tromey.com>
323
324 * xcoffread.c (xcoff_end_psymtab): Use new.
325 * psymtab.c (start_psymtab_common): Use new.
326 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
327 Update.
328 * psympriv.h (struct partial_symtab): Add parameters to
329 constructor. Don't inline.
330 (allocate_psymtab): Don't declare.
331 * mdebugread.c (new_psymtab): Use new.
332 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
333 * dbxread.c (dbx_end_psymtab): Use new.
334
abaa2f23
TT
3352020-01-26 Tom Tromey <tom@tromey.com>
336
337 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
338 allocate_psymtab. Update documentation.
339 * psymtab.c (psymtab_storage::install_psymtab): Rename from
340 allocate_psymtab. Do not use new.
341 (allocate_psymtab): Use new. Update.
342
6d94535f
TT
3432020-01-26 Tom Tromey <tom@tromey.com>
344
345 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
346 * psymtab.c (psym_print_stats): Update.
347 * psympriv.h (struct partial_symtab) <readin,
348 psymtabs_addrmap_supported, anonymous>: Now bool.
349 * mdebugread.c (psymtab_to_symtab_1): Update.
350 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
351 (build_type_psymtabs_reader, psymtab_to_symtab_1)
352 (process_full_comp_unit, process_full_type_unit): Update.
353 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
354 * ctfread.c (psymtab_to_symtab): Update.
355
6f17252b
TT
3562020-01-26 Tom Tromey <tom@tromey.com>
357
358 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
359 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
360 * psymtab.c (psymtab_storage): Delete psymtabs.
361 (psymtab_storage::allocate_psymtab): Use new.
362 (psymtab_storage::discard_psymtab): Use delete.
363 * psympriv.h (struct partial_symtab): Add constructor and
364 initializers.
365
f6f1cebc
TT
3662020-01-26 Tom Tromey <tom@tromey.com>
367
368 * machoread.c: Do not include psympriv.h.
369
e47e48f6
PW
3702020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
371
372 * NEWS: Mention the new option and the set/show commands.
373
a2fedca9
PW
3742020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
375
376 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
377 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
378 (validate_exec_file): New variables, enums, functions.
379 (exec_file_locate_attach, print_section_info): Style the filenames.
380 (_initialize_exec): Install show_exec_file_mismatch_command and
381 set_exec_file_mismatch_command.
382 * gdbcore.h (validate_exec_file): Declare.
383 * infcmd.c (attach_command): Call validate_exec_file.
384 * remote.c ( remote_target::remote_add_inferior): Likewise.
385
7ffa82e1
AB
3862020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
387
388 * frame.c (find_frame_sal): Move call to get_next_frame into more
389 inner scope.
390 * inline-frame.c (inilne_state) <inline_state>: Update argument
391 types.
392 (inilne_state) <skipped_symbol>: Rename to...
393 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
394 (skip_inline_frames): Build vector of skipped symbols and use this
395 to reate the inline_state.
396 (inline_skipped_symbol): Add a comment and some assertions, fetch
397 skipped symbol from the list.
398
3d92a3e3
AB
3992020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
400
401 * buildsym.c (lte_is_less_than): Delete.
402 (buildsym_compunit::end_symtab_with_blockvector): Create local
403 lambda function to sort line table entries, and use
404 std::stable_sort instead of std::sort.
405 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
406 markers when looking for a previous line.
407
94a72be7
AB
4082020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
409
410 * dwarf2read.c (lnp_state_machine::record_line): Include
411 end_sequence parameter in debug print out. Record the line if we
412 are at an end_sequence marker even if it's not the start of a
413 statement.
414 * symmisc.c (maintenance_print_one_line_table): Print end of
415 sequence markers with 'END' not '0'.
416
53af73bf
PA
4172020-01-24 Pedro Alves <palves@redhat.com>
418
419 PR gdb/25410
420 * thread.c (scoped_restore_current_thread::restore): Use
421 switch_to_inferior_no_thread.
422 * exec.c: Include "progspace-and-thread.h".
423 (add_target_sections, remove_target_sections):
424 scoped_restore_current_pspace_and_thread instead of
425 scoped_restore_current_thread.
426 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
427 and aspace to the inferior before calling clone_program_space.
428 Remove stale comment.
429
3050c6f4
CB
4302020-01-24 Christian Biesinger <cbiesinger@google.com>
431
432 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
433 (arm_netbsd_nat_target::fetch_registers): ...this.
434 (arm_nbsd_nat_target::store_registers): Rename to...
435 (arm_netbsd_nat_target::store_registers): ...this.
436
73685c7e
CB
4372020-01-24 Christian Biesinger <cbiesinger@google.com>
438
439 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
440 register_t.
441
89203d40
CB
4422020-01-24 Christian Biesinger <cbiesinger@google.com>
443
444 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
445 Update comment.
446 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
447 Likewise.
448 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
449 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
450 the correct replacement (iterate_over_regset_sections).
451 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
452 Update comment.
453
1ba1ac88
AB
4542020-01-24 Graham Markall <graham.markall@embecosm.com>
455
456 PR gdb/23718
457 * gdb/python/python.c (execute_gdb_command): Call
458 async_enable_stdin in catch block.
459
f3364a6d
AB
4602020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
461
462 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
463 SWITCH_THRU_ALL_UIS.
464
733d0a67
AB
4652020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
466
467 PR tui/9765
468 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
469 comment, add extra parameter, and update to store previous symbol
470 when appropriate.
471 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
472 add extra parameter.
473 * tui/tui-disasm.c (tui_disassemble): Update header comment,
474 remove unneeded parameter, add try/catch around gdb_print_insn,
475 rewrite to add items to asm_lines vector.
476 (tui_find_backward_disassembly_start_address): New function.
477 (tui_find_disassembly_address): Updated throughout.
478 (tui_disasm_window::set_contents): Update for changes to
479 tui_disassemble.
480 (tui_disasm_window::do_scroll_vertical): No need to adjust the
481 number of lines to scroll.
482
b3b3bada
SM
4832020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
484
485 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
486 (SECT_OFF_DATA): Likewise.
487 (SECT_OFF_RODATA): Likewise.
488 (SECT_OFF_TEXT): Likewise.
489 (SECT_OFF_BSS): Likewise.
490 (struct objfile) <text_section_offset, data_section_offset>: New
491 methods.
492 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
493 objfile::text_section_offset.
494 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
495 * coffread.c (coff_symtab_read): Likewise.
496 (enter_linenos): Likewise.
497 (process_coff_symbol): Likewise.
498 * ctfread.c (get_objfile_text_range): Likewise.
499 * dtrace-probe.c (dtrace_probe::get_relocated_address):
500 Use objfile::data_section_offset.
501 * dwarf2-frame.c (execute_cfa_program): Use
502 objfile::text_section_offset.
503 (dwarf2_frame_find_fde): Likewise.
504 * dwarf2read.c (create_addrmap_from_index): Likewise.
505 (create_addrmap_from_aranges): Likewise.
506 (dw2_find_pc_sect_compunit_symtab): Likewise.
507 (process_psymtab_comp_unit_reader): Likewise.
508 (add_partial_symbol): Likewise.
509 (add_partial_subprogram): Likewise.
510 (process_full_comp_unit): Likewise.
511 (read_file_scope): Likewise.
512 (read_func_scope): Likewise.
513 (read_lexical_block_scope): Likewise.
514 (read_call_site_scope): Likewise.
515 (dwarf2_rnglists_process): Likewise.
516 (dwarf2_ranges_process): Likewise.
517 (dwarf2_ranges_read): Likewise.
518 (dwarf_decode_lines_1): Likewise.
519 (new_symbol): Likewise.
520 (dwarf2_fetch_die_loc_sect_off): Likewise.
521 (dwarf2_per_cu_text_offset): Likewise.
522 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
523 * hppa-tdep.c (read_unwind_info): Likewise.
524 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
525 * psympriv.h (struct partial_symtab): Likewise.
526 * psymtab.c (find_pc_sect_psymtab): Likewise.
527 * solib-svr4.c (enable_break): Likewise.
528 * stap-probe.c (relocate_address): Use
529 objfile::data_section_offset.
530 * xcoffread.c (enter_line_range): Use
531 objfile::text_section_offset.
532 (read_xcoff_symtab): Likewise.
533
ab53f382
SM
5342020-01-23 Simon Marchi <simon.marchi@efficios.com>
535
536 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
537 declaration to narrower scopes.
538
e7eee665
SM
5392020-01-23 Simon Marchi <simon.marchi@efficios.com>
540
541 * darwin-nat.h (struct darwin_exception_msg, enum
542 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
543 Move up.
544 (class darwin_nat_target) <wait_1, check_new_threads,
545 decode_exception_message, decode_message, stop_inferior,
546 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
547 * darwin-nat.c (darwin_check_new_threads): Rename to...
548 (darwin_nat_target::check_new_threads): ... this.
549 (darwin_suspend_inferior_it): Remove.
550 (darwin_decode_exception_message): Rename to...
551 (darwin_nat_target::decode_exception_message): ... this.
552 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
553 (darwin_decode_message): Rename to...
554 (darwin_nat_target::decode_message): ... this.
555 (cancel_breakpoint): Rename to...
556 (darwin_nat_target::cancel_breakpoint): ... this.
557 (darwin_wait): Rename to...
558 (darwin_nat_target::wait_1): ... this. Use range-based for loop
559 instead of iterate_over_inferiors.
560 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
561 (darwin_stop_inferior): Rename to...
562 (darwin_nat_target::stop_inferior): ... this.
563 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
564 (darwin_init_thread_list): Rename to...
565 (darwin_nat_target::init_thread_list): ... this.
566 (darwin_ptrace_him): Rename to...
567 (darwin_nat_target::ptrace_him): ... this.
568 (darwin_nat_target::create_inferior): Pass lambda function to
569 fork_inferior.
570 (darwin_nat_target::detach): Call stop_inferior instead of
571 darwin_stop_inferior.
572 * fork-inferior.h (fork_inferior): Change init_trace_fun
573 parameter to gdb::function_view.
574 * fork-inferior.c (fork_inferior): Likewise.
575
c162ed3e
HD
5762020-01-23 Hannes Domani <ssbssa@yahoo.de>
577
578 * i386-cygwin-tdep.c (core_process_module_section): Update.
579 * windows-nat.c (struct lm_info_windows): Add text_offset.
580 (windows_xfer_shared_libraries): Update.
581 * windows-tdep.c (windows_xfer_shared_library):
582 Add text_offset_cached argument.
583 * windows-tdep.h (windows_xfer_shared_library): Update.
584
a1237872
SM
5852020-01-21 Simon Marchi <simon.marchi@efficios.com>
586
587 * gdbarch.sh: Add declaration for _initialize_gdbarch.
588
b3ee6dd9
SM
5892020-01-21 Simon Marchi <simon.marchi@efficios.com>
590
591 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
592 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
593 replace with range-based for.
594 (gdbsim_interrupt_inferior): Remove.
595 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
596 with a range-based for. Inline code from
597 gdbsim_interrupt_inferior.
598
f9fac3c8
SM
5992020-01-21 Simon Marchi <simon.marchi@efficios.com>
600
601 * infrun.c (proceed): Fix indentation.
602
f6474de9
TT
6032020-01-21 Tom Tromey <tromey@adacore.com>
604
605 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
606 * python/python.c (python_extension_ops): Update.
607 (gdbpy_colorize): New function.
608 * python/lib/gdb/__init__.py (colorize): New function.
609 * extension.h (ext_lang_colorize): Declare.
610 * extension.c (ext_lang_colorize): New function.
611 * extension-priv.h (struct extension_language_ops) <colorize>: New
612 member.
613 * cli/cli-style.c (_initialize_cli_style): Update help text.
614
f0c702d4
LM
6152020-01-21 Luis Machado <luis.machado@linaro.org>
616
617 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
618 <cond>: Change type to bool.
619 (aarch64_displaced_step_b_cond): Update cond to use bool type.
620 (aarch64_displaced_step_cb): Likewise.
621 (aarch64_displaced_step_tb): Likewise.
622
1ab139e5
LM
6232020-01-21 Luis Machado <luis.machado@linaro.org>
624
625 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
626 output.
627
0c271889
LM
6282020-01-21 Luis Machado <luis.machado@linaro.org>
629
630 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
631 <pc_adjust>: Adjust the documentation.
632 (aarch64_displaced_step_fixup): Check if PC really moved before
633 adjusting it.
634
4d89c1c7
TT
6352020-01-19 Tom Tromey <tom@tromey.com>
636
637 * disasm.c (~gdb_disassembler): New destructor.
638 (gdb_buffered_insn_length): Call disassemble_free_target.
639 * disasm.h (class gdb_disassembler): Declare destructor. Use
640 DISABLE_COPY_AND_ASSIGN.
641
c0ab21c2
TT
6422020-01-19 Tom Tromey <tom@tromey.com>
643
644 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
645 (die_reader_func_ftype): Remove.
646 (cutu_reader): New class.
647 (dw2_get_file_names_reader): Remove "data" parameter.
648 (dw2_get_file_names): Use cutu_reader.
649 (create_debug_type_hash_table): Update.
650 (read_cutu_die_from_dwo): Update comment.
651 (lookup_dwo_unit): Add dwo_name parameter.
652 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
653 die_reader_func_ftype and data parameters.
654 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
655 Remove die_reader_func_ftype and data parameters.
656 (~cutu_reader): New; from init_cutu_and_read_dies.
657 (cutu_reader::cutu_reader): Rename from
658 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
659 and data parameters.
660 (init_cutu_and_read_dies_simple): Remove.
661 (struct process_psymtab_comp_unit_data): Remove.
662 (process_psymtab_comp_unit_reader): Remove data parameter; add
663 want_partial_unit and pretend_language parameters.
664 (process_psymtab_comp_unit): Use cutu_reader.
665 (build_type_psymtabs_reader): Remove data parameter.
666 (build_type_psymtabs_1): Use cutu_reader.
667 (process_skeletonless_type_unit): Likewise.
668 (load_partial_comp_unit_reader): Remove.
669 (load_partial_comp_unit): Use cutu_reader.
670 (load_full_comp_unit_reader): Remove.
671 (load_full_comp_unit): Use cutu_reader.
672 (struct create_dwo_cu_data): Remove.
673 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
674 dwo_unit parameters.
675 (create_cus_hash_table): Use cutu_reader.
676 (struct dwarf2_read_addr_index_data): Remove.
677 (dwarf2_read_addr_index_reader): Remove.
678 (dwarf2_read_addr_index): Use cutu_reader.
679 (read_signatured_type_reader): Remove.
680 (read_signatured_type): Use cutu_reader.
681
45bbae5c
TT
6822020-01-19 Tom Tromey <tom@tromey.com>
683
684 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
685 * tui/tui-wingeneral.h (class tui_suppress_output): New.
686 (tui_wrefresh): Declare.
687 * tui/tui-wingeneral.c (suppress_output): New global.
688 (tui_suppress_output, ~tui_suppress_output): New constructor and
689 destructor.
690 (tui_wrefresh): New function.
691 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
692 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
693 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
694 method.
695 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
696 tui_wrefresh.
697 (tui_data_window::no_refresh): New method.
698 (tui_data_item_window::refresh_window): Call tui_wrefresh.
699 (tui_reg_command): Use tui_suppress_output
700 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
701 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
702 method.
703 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
704
4f13c1c0
TT
7052020-01-19 Tom Tromey <tom@tromey.com>
706
707 * tui/tui-winsource.c (tui_update_source_windows_with_line):
708 Handle case where symtab is null.
709
fa47e446
SM
7102020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
711
712 * linux-fork.c (one_fork_p): Simplify.
713
26f42329
SM
7142020-01-17 Simon Marchi <simon.marchi@efficios.com>
715
716 * top.c (struct qt_args): Remove.
717 (kill_or_detach): Change return type to void, replace `void *`
718 parameter with a proper one.
719 (print_inferior_quit_action): Likewise.
720 (quit_confirm): Use range-based for loop to iterate over inferiors.
721 (quit_force): Likewise.
722
a9ac81b1
SM
7232020-01-17 Simon Marchi <simon.marchi@efficios.com>
724
725 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
726 `void *` parameter with proper parameters.
727 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
728 (print_one_inferior): Change return type to void, replace `void *`
729 parameter with proper parameters.
730 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
731 inferiors.
732 (get_other_inferior): Remove.
733 (mi_cmd_remove_inferior): Use range-based loop to iterate over
734 inferiors.
735
788eca49
SM
7362020-01-17 Simon Marchi <simon.marchi@efficios.com>
737
738 * mi/mi-interp.c (report_initial_inferior): Remove.
739 (mi_interp::init): Use range-based for to iterate over inferiors.
740
d9bc85b6
SM
7412020-01-17 Simon Marchi <simon.marchi@efficios.com>
742
743 * python/py-inferior.c (build_inferior_list): Remove.
744 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
745
40c94099
CB
7462020-01-16 Christian Biesinger <cbiesinger@google.com>
747
748 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
749 (btrace_stitch_trace): Likewise.
750 * charset.c (intermediate_encoding): Likewise (vaild).
751 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
752 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
753 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
754
e0cdfe3c
HD
7552020-01-16 Hannes Domani <ssbssa@yahoo.de>
756
757 * windows-tdep.c (windows_get_tlb_type):
758 Add rtl_user_process_parameters type.
759
790f1718
PA
7602020-01-16 Pedro Alves <palves@redhat.com>
761 Norbert Lange <nolange79@gmail.com>
762
763 PR build/24805
764 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
765 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
766 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
767 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
768 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
769 (ps_plog): Redeclare exported functions with default visibility.
770
3112ed97
NA
7712020-01-16 Nitika Achra <Nitika.Achra@amd.com>
772
773 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
774 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
775
8dc3273e
SM
7762020-01-15 Simon Marchi <simon.marchi@efficios.com>
777
778 * infcmd.c (post_create_inferior): Use get_thread_regcache
779 instead of get_current_regcache.
780
ff47f4f0
TT
7812020-01-14 Tom Tromey <tom@tromey.com>
782
783 PR symtab/12535:
784 * python/python.c (gdbpy_decode_line): Treat empty string the same
785 as no argument.
786
975f45b7
TT
7872020-01-14 Tom Tromey <tom@tromey.com>
788
789 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
790
25e57356
TT
7912020-01-14 Tom Tromey <tom@tromey.com>
792
793 * nat/linux-btrace.c: Don't include <config.h>.
794 * nat/linux-ptrace.c: Don't include <config.h>.
795 * nat/x86-linux-dregs.c: Don't include <config.h>.
796
05ea2a05
TT
7972020-01-14 Tom Tromey <tom@tromey.com>
798
799 * configure: Rebuild.
800 * configure.ac: Move many checks to ../gdbsupport/common.m4.
801
01027315
TT
8022020-01-14 Tom Tromey <tom@tromey.com>
803
804 * nat/x86-linux-dregs.c: Include configh.h.
805 * nat/linux-ptrace.c: Include configh.h.
806 * nat/linux-btrace.c: Include configh.h.
807 * defs.h: Include config.h, bfd.h.
808 * configure.ac: Don't source common.host.
809 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
810 * configure: Rebuild.
811 * acinclude.m4: Update path.
812 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
813 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
814 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
815 (CLIBS): Add LIBSUPPORT.
816 (CDEPS): Likewise.
817 (COMMON_SFILES): Remove gdbsupport files.
818 (HFILES_NO_SRCDIR): Likewise.
819 (stamp-version): Update path to create-version.sh.
820 (ALLDEPFILES): Remove gdbsupport files.
821
b2ceabe8
TT
8222020-01-14 Tom Tromey <tom@tromey.com>
823
824 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
825 USE_WIN32API when needed.
826 * configure.ac (USE_WIN32API): Don't define.
827 (WIN32LIBS): Use WIN32APILIBS.
828 * configure: Rebuild.
829
25c51f71
TT
8302020-01-14 Tom Tromey <tom@tromey.com>
831
832 * configure: Rebuild.
833 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
834
717c684d
BE
8352020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
836
837 * skip.c (skip_function_command): Make skip w/o arguments use the
838 name of the inlined function if pc is inside any inlined function.
839
7da6a5b9
LM
8402020-01-14 Luis Machado <luis.machado@linaro.org>
841
842 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
843 * infrun.c (resume_1): Likewise.
844 (handle_inferior_event): Remove stale comment.
845 * linux-nat.c (linux_nat_target::resume): Update comments.
846 (save_stop_reason): Likewise.
847 (linux_nat_filter_event): Likewise.
848 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
849
44e4c775
AB
8502020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
851
852 * elfread.c (record_minimal_symbol): Set section index to 0 for
853 non-allocatable sections.
854
18a8505e
AT
855
8562020-01-13 Ali Tamur <tamur@google.com>
857
858 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
859 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
860 to gdb::optional. Update comments.
861 (dwo_file): Update comments.
862 (read_attribute): Update API to take an additional out parameter,
863 need_reprocess. This is used to mark attributes that need other
864 attributes (e.g. str_offsets_base) for correct computation which may not
865 have been read yet.
866 (read_attribute_reprocess): New function declaration.
867 (read_addr_index): Likewise.
868 (read_dwo_str_index): Likewise.
869 (read_stub_str_index): Likewise.
870 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
871 (lookup_addr_base): New function definition.
872 (lookup_ranges_base): Likewise.
873 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
874 lookup_ranges_base.
875 (init_cutu_and_read_dies): Update comments.
876 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
877 unit. This is used to inherit parent's str_offsets_base and addr_base.
878 Update comments.
879 (init_cutu_and_read_dies_simple): Reflect API changes.
880 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
881 (create_cus_hash_table): Change API to take parent compile unit.
882 Reflect API changes.
883 (open_and_init_dwo_file): Reflect API changes.
884 (dwarf2_get_pc_bounds): Update comments.
885 (dwarf2_record_block_ranges): Likewise.
886 (read_full_die_1): Change implementation to reprocess attributes that
887 need str_offsets_base and addr_base.
888 (partial_die_info::read): Likewise.
889 (read_attribute_reprocess): New function definition.
890 (read_attribute_value): Change API to take an additional out parameter,
891 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
892 when a non-dwo compile unit has index based attributes.
893 (read_attribute): Reflect API changes.
894 (read_addr_index_1): Reflect API changes. Update comments.
895 (dwarf2_read_addr_index_data): Reflect API changes.
896 (dwarf2_read_addr_index): Likewise.
897 (read_str_index): Change API and implementation. This becomes a helper
898 to be used by the new string index related methods. Update error
899 message and comments.
900 (read_dwo_str_index): New function definition.
901 (read_stub_str_index): Likewise.
902 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
903 * symfile.h (dwarf2_debug_sections): Likewise.
904 * xcoffread.c (dwarf2_debug_sections): Likewise.
905
0cac9354
SM
9062020-01-13 Simon Marchi <simon.marchi@efficios.com>
907
908 * gdbcore.h (struct core_fns) <core_read_registers>: Change
909 core_reg_sect type to gdb_byte *.
910 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
911 * cris-tdep.c (fetch_core_registers): Likewise.
912 * corelow.c (core_target::get_core_register_section): Change
913 type of `contents` to gdb::byte_vector.
914
9a6d629c
AB
9152020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
916
917 * tui/tui-wingeneral.c (box_win): Position the title in the center
918 of the border.
919
d8b2f9e3
SM
9202020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
921
922 * corelow.c (core_target::get_core_register_section): Use
923 std::vector instead of alloca.
924
bb564c58
SM
9252020-01-13 Simon Marchi <simon.marchi@efficios.com>
926
927 * warning.m4: Add -Wmissing-declarations to build_warnings.
928 * configure: Re-generate.
929
6b366111
SM
9302020-01-13 Simon Marchi <simon.marchi@efficios.com>
931
932 * python/python.c (init__gdb_module): Add declaration.
933
6c265988
SM
9342020-01-13 Simon Marchi <simon.marchi@efficios.com>
935
936 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
937 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
938 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
939 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
940 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
941 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
942 * ada-exp.y (_initialize_ada_exp): Add declaration.
943 * ada-lang.c (_initialize_ada_language): Add declaration.
944 * ada-tasks.c (_initialize_tasks): Add declaration.
945 * agent.c (_initialize_agent): Add declaration.
946 * aix-thread.c (_initialize_aix_thread): Add declaration.
947 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
948 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
949 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
950 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
951 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
952 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
953 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
954 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
955 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
956 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
957 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
958 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
959 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
960 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
961 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
962 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
963 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
964 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
965 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
966 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
967 * annotate.c (_initialize_annotate): Add declaration.
968 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
969 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
970 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
971 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
972 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
973 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
974 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
975 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
976 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
977 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
978 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
979 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
980 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
981 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
982 * auto-load.c (_initialize_auto_load): Add declaration.
983 * auxv.c (_initialize_auxv): Add declaration.
984 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
985 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
986 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
987 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
988 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
989 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
990 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
991 * breakpoint.c (_initialize_breakpoint): Add declaration.
992 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
993 * btrace.c (_initialize_btrace): Add declaration.
994 * charset.c (_initialize_charset): Add declaration.
995 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
996 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
997 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
998 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
999 * cli/cli-script.c (_initialize_cli_script): Add declaration.
1000 * cli/cli-style.c (_initialize_cli_style): Add declaration.
1001 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
1002 * coffread.c (_initialize_coffread): Add declaration.
1003 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
1004 * compile/compile.c (_initialize_compile): Add declaration.
1005 * complaints.c (_initialize_complaints): Add declaration.
1006 * completer.c (_initialize_completer): Add declaration.
1007 * copying.c (_initialize_copying): Add declaration.
1008 * corefile.c (_initialize_core): Add declaration.
1009 * corelow.c (_initialize_corelow): Add declaration.
1010 * cp-abi.c (_initialize_cp_abi): Add declaration.
1011 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
1012 * cp-support.c (_initialize_cp_support): Add declaration.
1013 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
1014 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
1015 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
1016 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
1017 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
1018 * ctfread.c (_initialize_ctfread): Add declaration.
1019 * d-lang.c (_initialize_d_language): Add declaration.
1020 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
1021 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
1022 * dbxread.c (_initialize_dbxread): Add declaration.
1023 * dcache.c (_initialize_dcache): Add declaration.
1024 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
1025 * disasm.c (_initialize_disasm): Add declaration.
1026 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
1027 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
1028 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
1029 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
1030 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
1031 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
1032 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
1033 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
1034 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
1035 * elfread.c (_initialize_elfread): Add declaration.
1036 * exec.c (_initialize_exec): Add declaration.
1037 * extension.c (_initialize_extension): Add declaration.
1038 * f-lang.c (_initialize_f_language): Add declaration.
1039 * f-valprint.c (_initialize_f_valprint): Add declaration.
1040 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
1041 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
1042 * filesystem.c (_initialize_filesystem): Add declaration.
1043 * findcmd.c (_initialize_mem_search): Add declaration.
1044 * findvar.c (_initialize_findvar): Add declaration.
1045 * fork-child.c (_initialize_fork_child): Add declaration.
1046 * frame-base.c (_initialize_frame_base): Add declaration.
1047 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
1048 * frame.c (_initialize_frame): Add declaration.
1049 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
1050 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
1051 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
1052 * gcore.c (_initialize_gcore): Add declaration.
1053 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
1054 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
1055 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
1056 * gdbarch.c (_initialize_gdbarch): Add declaration.
1057 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
1058 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
1059 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
1060 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
1061 * go-lang.c (_initialize_go_language): Add declaration.
1062 * go32-nat.c (_initialize_go32_nat): Add declaration.
1063 * guile/guile.c (_initialize_guile): Add declaration.
1064 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
1065 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
1066 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
1067 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
1068 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
1069 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
1070 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
1071 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
1072 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
1073 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
1074 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
1075 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
1076 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
1077 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
1078 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
1079 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
1080 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
1081 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
1082 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
1083 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
1084 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
1085 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
1086 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
1087 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
1088 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
1089 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
1090 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
1091 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
1092 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
1093 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
1094 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
1095 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
1096 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
1097 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
1098 * infcall.c (_initialize_infcall): Add declaration.
1099 * infcmd.c (_initialize_infcmd): Add declaration.
1100 * inflow.c (_initialize_inflow): Add declaration.
1101 * infrun.c (_initialize_infrun): Add declaration.
1102 * interps.c (_initialize_interpreter): Add declaration.
1103 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
1104 * jit.c (_initialize_jit): Add declaration.
1105 * language.c (_initialize_language): Add declaration.
1106 * linux-fork.c (_initialize_linux_fork): Add declaration.
1107 * linux-nat.c (_initialize_linux_nat): Add declaration.
1108 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
1109 * linux-thread-db.c (_initialize_thread_db): Add declaration.
1110 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
1111 * m2-lang.c (_initialize_m2_language): Add declaration.
1112 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
1113 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
1114 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
1115 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
1116 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
1117 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
1118 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
1119 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
1120 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
1121 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
1122 * machoread.c (_initialize_machoread): Add declaration.
1123 * macrocmd.c (_initialize_macrocmd): Add declaration.
1124 * macroscope.c (_initialize_macroscope): Add declaration.
1125 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
1126 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
1127 * maint.c (_initialize_maint_cmds): Add declaration.
1128 * mdebugread.c (_initialize_mdebugread): Add declaration.
1129 * memattr.c (_initialize_mem): Add declaration.
1130 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
1131 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
1132 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
1133 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
1134 * mi/mi-main.c (_initialize_mi_main): Add declaration.
1135 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
1136 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
1137 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
1138 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
1139 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
1140 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
1141 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
1142 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
1143 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
1144 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
1145 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
1146 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
1147 * mipsread.c (_initialize_mipsread): Add declaration.
1148 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
1149 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
1150 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
1151 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
1152 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
1153 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
1154 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
1155 * nto-procfs.c (_initialize_procfs): Add declaration.
1156 * objc-lang.c (_initialize_objc_language): Add declaration.
1157 * observable.c (_initialize_observer): Add declaration.
1158 * opencl-lang.c (_initialize_opencl_language): Add declaration.
1159 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
1160 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
1161 * osabi.c (_initialize_gdb_osabi): Add declaration.
1162 * osdata.c (_initialize_osdata): Add declaration.
1163 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
1164 * parse.c (_initialize_parse): Add declaration.
1165 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
1166 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
1167 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
1168 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
1169 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
1170 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
1171 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
1172 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
1173 * printcmd.c (_initialize_printcmd): Add declaration.
1174 * probe.c (_initialize_probe): Add declaration.
1175 * proc-api.c (_initialize_proc_api): Add declaration.
1176 * proc-events.c (_initialize_proc_events): Add declaration.
1177 * proc-service.c (_initialize_proc_service): Add declaration.
1178 * procfs.c (_initialize_procfs): Add declaration.
1179 * producer.c (_initialize_producer): Add declaration.
1180 * psymtab.c (_initialize_psymtab): Add declaration.
1181 * python/python.c (_initialize_python): Add declaration.
1182 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
1183 * record-btrace.c (_initialize_record_btrace): Add declaration.
1184 * record-full.c (_initialize_record_full): Add declaration.
1185 * record.c (_initialize_record): Add declaration.
1186 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
1187 * regcache.c (_initialize_regcache): Add declaration.
1188 * reggroups.c (_initialize_reggroup): Add declaration.
1189 * remote-notif.c (_initialize_notif): Add declaration.
1190 * remote-sim.c (_initialize_remote_sim): Add declaration.
1191 * remote.c (_initialize_remote): Add declaration.
1192 * reverse.c (_initialize_reverse): Add declaration.
1193 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
1194 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
1195 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
1196 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
1197 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
1198 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
1199 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
1200 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
1201 Add declaration.
1202 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
1203 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
1204 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
1205 * rust-exp.y (_initialize_rust_exp): Add declaration.
1206 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
1207 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
1208 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
1209 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
1210 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
1211 * score-tdep.c (_initialize_score_tdep): Add declaration.
1212 * ser-go32.c (_initialize_ser_dos): Add declaration.
1213 * ser-mingw.c (_initialize_ser_windows): Add declaration.
1214 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
1215 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
1216 * ser-uds.c (_initialize_ser_socket): Add declaration.
1217 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
1218 * serial.c (_initialize_serial): Add declaration.
1219 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
1220 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
1221 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
1222 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
1223 * skip.c (_initialize_step_skip): Add declaration.
1224 * sol-thread.c (_initialize_sol_thread): Add declaration.
1225 * solib-aix.c (_initialize_solib_aix): Add declaration.
1226 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
1227 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
1228 * solib-frv.c (_initialize_frv_solib): Add declaration.
1229 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
1230 * solib-target.c (_initialize_solib_target): Add declaration.
1231 * solib.c (_initialize_solib): Add declaration.
1232 * source-cache.c (_initialize_source_cache): Add declaration.
1233 * source.c (_initialize_source): Add declaration.
1234 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
1235 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
1236 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
1237 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
1238 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
1239 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
1240 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
1241 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
1242 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
1243 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
1244 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
1245 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
1246 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
1247 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
1248 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
1249 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
1250 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
1251 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
1252 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
1253 * stabsread.c (_initialize_stabsread): Add declaration.
1254 * stack.c (_initialize_stack): Add declaration.
1255 * stap-probe.c (_initialize_stap_probe): Add declaration.
1256 * std-regs.c (_initialize_frame_reg): Add declaration.
1257 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
1258 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
1259 * symfile.c (_initialize_symfile): Add declaration.
1260 * symmisc.c (_initialize_symmisc): Add declaration.
1261 * symtab.c (_initialize_symtab): Add declaration.
1262 * target.c (_initialize_target): Add declaration.
1263 * target-connection.c (_initialize_target_connection): Add
1264 declaration.
1265 * target-dcache.c (_initialize_target_dcache): Add declaration.
1266 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
1267 * thread.c (_initialize_thread): Add declaration.
1268 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
1269 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
1270 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
1271 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
1272 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
1273 * tracectf.c (_initialize_ctf): Add declaration.
1274 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
1275 * tracefile.c (_initialize_tracefile): Add declaration.
1276 * tracepoint.c (_initialize_tracepoint): Add declaration.
1277 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
1278 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
1279 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
1280 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
1281 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
1282 * tui/tui-win.c (_initialize_tui_win): Add declaration.
1283 * tui/tui.c (_initialize_tui): Add declaration.
1284 * typeprint.c (_initialize_typeprint): Add declaration.
1285 * ui-style.c (_initialize_ui_style): Add declaration.
1286 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
1287 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
1288 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
1289 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
1290 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
1291 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
1292 * unittests/filtered_iterator-selftests.c
1293 (_initialize_filtered_iterator_selftests): Add declaration.
1294 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
1295 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
1296 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
1297 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
1298 * unittests/main-thread-selftests.c
1299 (_initialize_main_thread_selftests): Add declaration.
1300 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
1301 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
1302 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
1303 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
1304 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
1305 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
1306 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
1307 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
1308 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
1309 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
1310 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
1311 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
1312 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
1313 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
1314 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
1315 declaration.
1316 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
1317 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
1318 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
1319 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
1320 * user-regs.c (_initialize_user_regs): Add declaration.
1321 * utils.c (_initialize_utils): Add declaration.
1322 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
1323 * valops.c (_initialize_valops): Add declaration.
1324 * valprint.c (_initialize_valprint): Add declaration.
1325 * value.c (_initialize_values): Add declaration.
1326 * varobj.c (_initialize_varobj): Add declaration.
1327 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
1328 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
1329 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
1330 * windows-nat.c (_initialize_windows_nat): Add declaration.
1331 (_initialize_check_for_gdb_ini): Add declaration.
1332 (_initialize_loadable): Add declaration.
1333 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
1334 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
1335 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
1336 * xcoffread.c (_initialize_xcoffread): Add declaration.
1337 * xml-support.c (_initialize_xml_support): Add declaration.
1338 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
1339 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
1340 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
1341 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
1342
e2de1eec
SM
13432020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
1344
1345 * regformats/regdat.sh: Generate declaration for init function.
1346
e0037b4c
SM
13472020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
1348
1349 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
1350 up.
1351 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
1352 close_one_inferior>: New methods.
1353 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
1354 pass down target to find_inferior_pid.
1355 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
1356 Pass down target to find_inferior_ptid.
1357 (gdbsim_target::create_inferior): Pass down target to
1358 add_thread_silent.
1359 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
1360 target down to find_inferior_ptid and switch_to_thread.
1361 (gdbsim_target::close): Update to call close_one_inferior.
1362 (struct resume_data): Remove.
1363 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
1364 directly, rather than through a void pointer.
1365 (gdbsim_target::resume): Update to call resume_one_inferior.
1366
58920b5b
SM
13672020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1368
1369 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
1370
4ec89149
PA
13712020-01-12 Pedro Alves <palves@redhat.com>
1372
1373 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
1374 directly for the current inferior instead of
1375 discard_all_inferiors.
1376 (discard_all_inferiors): Delete.
1377
7c392d1d
TT
13782020-01-11 Tom Tromey <tom@tromey.com>
1379
1380 * tui/tui-wingeneral.c (box_win): Check cli_styling.
1381 * tui/tui-winsource.c (tui_source_window_base::refill): Use
1382 deprecated_safe_get_selected_frame.
1383
d9ebdab7
TBA
13842020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1385
1386 * inferior.c (print_inferior): Switch inferior before printing it.
1387
f3c469b9
PA
13882020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
1389 Pedro Alves <palves@redhat.com>
1390
1391 * progspace-and-thread.c (switch_to_program_space_and_thread):
1392 Assert there's an inferior for PSPACE. Use
1393 switch_to_inferior_no_thread to switch the inferior too.
1394 * progspace.c (program_space::~program_space): Call
1395 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
1396 (program_space::free_all_objfiles): Don't call clear_symtab_users
1397 here.
1398 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
1399
65c574f6
PA
14002020-01-10 Pedro Alves <palves@redhat.com>
1401
1402 * NEWS: Mention multi-target debugging, "info connections", and
1403 "add-inferior -no-connection".
1404
2f4fcf00
PA
14052020-01-10 Pedro Alves <palves@redhat.com>
1406
1407 * infrun.c: Include "target-connection.h".
1408 (check_multi_target_resumption): New.
1409 (proceed): Call it.
1410 * target-connection.c (make_target_connection_string): Make
1411 extern.
1412 * target-connection.h (make_target_connection_string): Declare.
1413
121b3efd
PA
14142020-01-10 Pedro Alves <palves@redhat.com>
1415
1416 * Makefile.in (COMMON_SFILES): Add target-connection.c.
1417 * inferior.c (uiout_field_connection): New function.
1418 (print_inferior): Add new "connection-id" column.
1419 (add_inferior_command): Show connection number/string of added
1420 inferior.
1421 * process-stratum-target.h
1422 (process_stratum_target::connection_string): New virtual method.
1423 (process_stratum_target::connection_number): New field.
1424 * remote.c (remote_target::connection_string): New override.
1425 * target-connection.c: New file.
1426 * target-connection.h: New file.
1427 * target.c (decref_target): Remove process_stratum targets from
1428 the connection list.
1429 (target_stack::push): Add process_stratum targets to the
1430 connection list.
1431
4f837581
PA
14322020-01-10 Pedro Alves <palves@redhat.com>
1433
1434 Revert:
1435 2016-04-12 Pedro Alves <palves@redhat.com>
1436 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
1437 Remove references to name.
1438 * serial.h (struct serial) <name>: Delete.
1439
f4ec508e
PA
14402020-01-10 Pedro Alves <palves@redhat.com>
1441
1442 * gdbarch-selftests.c (register_to_value_test): Remove "target
1443 already pushed" check.
1444
5b6d1e4f
PA
14452020-01-10 Pedro Alves <palves@redhat.com>
1446 John Baldwin <jhb@FreeBSD.org>
1447
1448 * aarch64-linux-nat.c
1449 (aarch64_linux_nat_target::thread_architecture): Adjust.
1450 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
1451 (task_command_1): Likewise.
1452 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
1453 (aix_thread_target::wait, aix_thread_target::fetch_registers)
1454 (aix_thread_target::store_registers)
1455 (aix_thread_target::thread_alive): Adjust.
1456 * amd64-fbsd-tdep.c: Include "inferior.h".
1457 (amd64fbsd_get_thread_local_address): Pass down target.
1458 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
1459 thread's gdbarch instead of target_gdbarch.
1460 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
1461 get_last_target_status.
1462 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
1463 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
1464 inferiors.
1465 (update_inserted_breakpoint_locations): Skip if inferiors with no
1466 execution.
1467 (update_global_location_list): When handling moribund locations,
1468 find representative inferior for location's pspace, and use thread
1469 count of its process_stratum target.
1470 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
1471 * bsd-uthread.c (bsd_uthread_target::wait): Use
1472 as_process_stratum_target and adjust thread_change_ptid and
1473 add_thread calls.
1474 (bsd_uthread_target::update_thread_list): Use
1475 as_process_stratum_target and adjust find_thread_ptid,
1476 thread_change_ptid and add_thread calls.
1477 * btrace.c (maint_btrace_packet_history_cmd): Adjust
1478 find_thread_ptid call.
1479 * corelow.c (add_to_thread_list): Adjust add_thread call.
1480 (core_target_open): Adjust add_thread_silent and thread_count
1481 calls.
1482 (core_target::pid_to_str): Adjust find_inferior_ptid call.
1483 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
1484 * event-top.c (async_disconnect): Pop targets from all inferiors.
1485 * exec.c (add_target_sections): Push exec target on all inferiors
1486 sharing the program space.
1487 (remove_target_sections): Remove the exec target from all
1488 inferiors sharing the program space.
1489 (exec_on_vfork): New.
1490 * exec.h (exec_on_vfork): Declare.
1491 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
1492 Pass it down.
1493 (fbsd_nat_target::update_thread_list): Adjust.
1494 (fbsd_nat_target::resume): Adjust.
1495 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
1496 down.
1497 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
1498 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
1499 get_thread_arch_regcache call.
1500 * fork-child.c (gdb_startup_inferior): Pass target down to
1501 startup_inferior and set_executing.
1502 * gdbthread.h (struct process_stratum_target): Forward declare.
1503 (add_thread, add_thread_silent, add_thread_with_info)
1504 (in_thread_list): Add process_stratum_target parameter.
1505 (find_thread_ptid(inferior*, ptid_t)): New overload.
1506 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
1507 parameter.
1508 (all_threads()): Delete overload.
1509 (all_threads, all_non_exited_threads): Add process_stratum_target
1510 parameter.
1511 (all_threads_safe): Use brace initialization.
1512 (thread_count): Add process_stratum_target parameter.
1513 (set_resumed, set_running, set_stop_requested, set_executing)
1514 (threads_are_executing, finish_thread_state): Add
1515 process_stratum_target parameter.
1516 (switch_to_thread): Use is_current_thread.
1517 * i386-fbsd-tdep.c: Include "inferior.h".
1518 (i386fbsd_get_thread_local_address): Pass down target.
1519 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
1520 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
1521 have_inferiors check.
1522 * inf-ptrace.c (inf_ptrace_target::create_inferior)
1523 (inf_ptrace_target::attach): Adjust.
1524 * infcall.c (run_inferior_call): Adjust.
1525 * infcmd.c (run_command_1): Pass target to
1526 scoped_finish_thread_state.
1527 (proceed_thread_callback): Skip inferiors with no execution.
1528 (continue_command): Rename 'all_threads' local to avoid hiding
1529 'all_threads' function. Adjust get_last_target_status call.
1530 (prepare_one_step): Adjust set_running call.
1531 (signal_command): Use user_visible_resume_target. Compare thread
1532 pointers instead of inferior_ptid.
1533 (info_program_command): Adjust to pass down target.
1534 (attach_command): Mark target's 'thread_executing' flag.
1535 (stop_current_target_threads_ns): New, factored out from ...
1536 (interrupt_target_1): ... this. Switch inferior before making
1537 target calls.
1538 * inferior-iter.h
1539 (struct all_inferiors_iterator, struct all_inferiors_range)
1540 (struct all_inferiors_safe_range)
1541 (struct all_non_exited_inferiors_range): Filter on
1542 process_stratum_target too. Remove explicit.
1543 * inferior.c (inferior::inferior): Push dummy target on target
1544 stack.
1545 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
1546 Add process_stratum_target parameter, and pass it down.
1547 (have_live_inferiors): Adjust.
1548 (switch_to_inferior_and_push_target): New.
1549 (add_inferior_command, clone_inferior_command): Handle
1550 "-no-connection" parameter. Use
1551 switch_to_inferior_and_push_target.
1552 (_initialize_inferior): Mention "-no-connection" option in
1553 the help of "add-inferior" and "clone-inferior" commands.
1554 * inferior.h: Include "process-stratum-target.h".
1555 (interrupt_target_1): Use bool.
1556 (struct inferior) <push_target, unpush_target, target_is_pushed,
1557 find_target_beneath, top_target, process_target, target_at,
1558 m_stack>: New.
1559 (discard_all_inferiors): Delete.
1560 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
1561 (all_inferiors, all_non_exited_inferiors): Add
1562 process_stratum_target parameter.
1563 * infrun.c: Include "gdb_select.h" and <unordered_map>.
1564 (target_last_proc_target): New global.
1565 (follow_fork_inferior): Push target on new inferior. Pass target
1566 to add_thread_silent. Call exec_on_vfork. Handle target's
1567 reference count.
1568 (follow_fork): Adjust get_last_target_status call. Also consider
1569 target.
1570 (follow_exec): Push target on new inferior.
1571 (struct execution_control_state) <target>: New field.
1572 (user_visible_resume_target): New.
1573 (do_target_resume): Call target_async.
1574 (resume_1): Set target's threads_executing flag. Consider resume
1575 target.
1576 (commit_resume_all_targets): New.
1577 (proceed): Also consider resume target. Skip threads of inferiors
1578 with no execution. Commit resumtion in all targets.
1579 (start_remote): Pass current inferior to wait_for_inferior.
1580 (infrun_thread_stop_requested): Consider target as well. Pass
1581 thread_info pointer to clear_inline_frame_state instead of ptid.
1582 (infrun_thread_thread_exit): Consider target as well.
1583 (random_pending_event_thread): New inferior parameter. Use it.
1584 (do_target_wait): Rename to ...
1585 (do_target_wait_1): ... this. Add inferior parameter, and pass it
1586 down.
1587 (threads_are_resumed_pending_p, do_target_wait): New.
1588 (prepare_for_detach): Adjust calls.
1589 (wait_for_inferior): New inferior parameter. Handle it. Use
1590 do_target_wait_1 instead of do_target_wait.
1591 (fetch_inferior_event): Adjust. Switch to representative
1592 inferior. Pass target down.
1593 (set_last_target_status): Add process_stratum_target parameter.
1594 Save target in global.
1595 (get_last_target_status): Add process_stratum_target parameter and
1596 handle it.
1597 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
1598 (context_switch): Check inferior_ptid == null_ptid before calling
1599 inferior_thread().
1600 (get_inferior_stop_soon): Pass down target.
1601 (wait_one): Rename to ...
1602 (poll_one_curr_target): ... this.
1603 (struct wait_one_event): New.
1604 (wait_one): New.
1605 (stop_all_threads): Adjust.
1606 (handle_no_resumed, handle_inferior_event): Adjust to consider the
1607 event's target.
1608 (switch_back_to_stepped_thread): Also consider target.
1609 (print_stop_event): Update.
1610 (normal_stop): Update. Also consider the resume target.
1611 * infrun.h (wait_for_inferior): Remove declaration.
1612 (user_visible_resume_target): New declaration.
1613 (get_last_target_status, set_last_target_status): New
1614 process_stratum_target parameter.
1615 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
1616 process_stratum_target parameter, and use it.
1617 (clear_inline_frame_state (thread_info*)): New.
1618 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
1619 process_stratum_target parameter.
1620 (clear_inline_frame_state (thread_info*)): Declare.
1621 * linux-fork.c (delete_checkpoint_command): Pass target down to
1622 find_thread_ptid.
1623 (checkpoint_command): Adjust.
1624 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
1625 instead of just tweaking inferior_ptid.
1626 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
1627 (exit_lwp): Pass target down to find_thread_ptid.
1628 (attach_proc_task_lwp_callback): Pass target down to
1629 add_thread/set_running/set_executing.
1630 (linux_nat_target::attach): Pass target down to
1631 thread_change_ptid.
1632 (get_detach_signal): Pass target down to find_thread_ptid.
1633 Consider last target status's target.
1634 (linux_resume_one_lwp_throw, resume_lwp)
1635 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
1636 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
1637 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
1638 (linux_nat_target::async_wait_fd): New.
1639 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
1640 target down.
1641 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
1642 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
1643 * linux-thread-db.c (struct thread_db_info::process_target): New
1644 field.
1645 (add_thread_db_info): Save target.
1646 (get_thread_db_info): New process_stratum_target parameter. Also
1647 match target.
1648 (delete_thread_db_info): New process_stratum_target parameter.
1649 Also match target.
1650 (thread_from_lwp): Adjust to pass down target.
1651 (thread_db_notice_clone): Pass down target.
1652 (check_thread_db_callback): Pass down target.
1653 (try_thread_db_load_1): Always push the thread_db target.
1654 (try_thread_db_load, record_thread): Pass target down.
1655 (thread_db_target::detach): Pass target down. Always unpush the
1656 thread_db target.
1657 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
1658 target down. Always unpush the thread_db target.
1659 (find_new_threads_callback, thread_db_find_new_threads_2)
1660 (thread_db_target::update_thread_list): Pass target down.
1661 (thread_db_target::pid_to_str): Pass current inferior down.
1662 (thread_db_target::get_thread_local_address): Pass target down.
1663 (thread_db_target::resume, maintenance_check_libthread_db): Pass
1664 target down.
1665 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
1666 * procfs.c (procfs_target::procfs_init_inferior): Declare.
1667 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
1668 (procfs_init_inferior): Rename to ...
1669 (procfs_target::procfs_init_inferior): ... this and adjust.
1670 (procfs_target::create_inferior, procfs_notice_thread)
1671 (procfs_do_thread_registers): Adjust.
1672 * ppc-fbsd-tdep.c: Include "inferior.h".
1673 (ppcfbsd_get_thread_local_address): Pass down target.
1674 * proc-service.c (ps_xfer_memory): Switch current inferior and
1675 program space as well.
1676 (get_ps_regcache): Pass target down.
1677 * process-stratum-target.c
1678 (process_stratum_target::thread_address_space)
1679 (process_stratum_target::thread_architecture): Pass target down.
1680 * process-stratum-target.h
1681 (process_stratum_target::threads_executing): New field.
1682 (as_process_stratum_target): New.
1683 * ravenscar-thread.c
1684 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
1685 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
1686 down.
1687 * record-btrace.c (record_btrace_target::info_record): Adjust.
1688 (record_btrace_target::record_method)
1689 (record_btrace_target::record_is_replaying)
1690 (record_btrace_target::fetch_registers)
1691 (get_thread_current_frame_id, record_btrace_target::resume)
1692 (record_btrace_target::wait, record_btrace_target::stop): Pass
1693 target down.
1694 * record-full.c (record_full_wait_1): Switch to event thread.
1695 Pass target down.
1696 * regcache.c (regcache::regcache)
1697 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
1698 process_stratum_target parameter and handle it.
1699 (current_thread_target): New global.
1700 (get_thread_regcache): Add process_stratum_target parameter and
1701 handle it. Switch inferior before calling target method.
1702 (get_thread_regcache): Pass target down.
1703 (get_thread_regcache_for_ptid): Pass target down.
1704 (registers_changed_ptid): Add process_stratum_target parameter and
1705 handle it.
1706 (registers_changed_thread, registers_changed): Pass target down.
1707 (test_get_thread_arch_aspace_regcache): New.
1708 (current_regcache_test): Define a couple local test_target_ops
1709 instances and use them for testing.
1710 (readwrite_regcache): Pass process_stratum_target parameter.
1711 (cooked_read_test, cooked_write_test): Pass mock_target down.
1712 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
1713 (get_thread_arch_aspace_regcache): Add process_stratum_target
1714 parameter.
1715 (regcache::target): New method.
1716 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
1717 (regcache::registers_changed_ptid): Add process_stratum_target
1718 parameter.
1719 (regcache::m_target): New field.
1720 (registers_changed_ptid): Add process_stratum_target parameter.
1721 * remote.c (remote_state::supports_vCont_probed): New field.
1722 (remote_target::async_wait_fd): New method.
1723 (remote_unpush_and_throw): Add remote_target parameter.
1724 (get_current_remote_target): Adjust.
1725 (remote_target::remote_add_inferior): Push target.
1726 (remote_target::remote_add_thread)
1727 (remote_target::remote_notice_new_inferior)
1728 (get_remote_thread_info): Pass target down.
1729 (remote_target::update_thread_list): Skip threads of inferiors
1730 bound to other targets. (remote_target::close): Don't discard
1731 inferiors. (remote_target::add_current_inferior_and_thread)
1732 (remote_target::process_initial_stop_replies)
1733 (remote_target::start_remote)
1734 (remote_target::remote_serial_quit_handler): Pass down target.
1735 (remote_target::remote_unpush_target): New remote_target
1736 parameter. Unpush the target from all inferiors.
1737 (remote_target::remote_unpush_and_throw): New remote_target
1738 parameter. Pass it down.
1739 (remote_target::open_1): Check whether the current inferior has
1740 execution instead of checking whether any inferior is live. Pass
1741 target down.
1742 (remote_target::remote_detach_1): Pass down target. Use
1743 remote_unpush_target.
1744 (extended_remote_target::attach): Pass down target.
1745 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
1746 (remote_target::append_resumption): Pass down target.
1747 (remote_target::append_pending_thread_resumptions)
1748 (remote_target::remote_resume_with_hc, remote_target::resume)
1749 (remote_target::commit_resume): Pass down target.
1750 (remote_target::remote_stop_ns): Check supports_vCont_probed.
1751 (remote_target::interrupt_query)
1752 (remote_target::remove_new_fork_children)
1753 (remote_target::check_pending_events_prevent_wildcard_vcont)
1754 (remote_target::remote_parse_stop_reply)
1755 (remote_target::process_stop_reply): Pass down target.
1756 (first_remote_resumed_thread): New remote_target parameter. Pass
1757 it down.
1758 (remote_target::wait_as): Pass down target.
1759 (unpush_and_perror): New remote_target parameter. Pass it down.
1760 (remote_target::readchar, remote_target::remote_serial_write)
1761 (remote_target::getpkt_or_notif_sane_1)
1762 (remote_target::kill_new_fork_children, remote_target::kill): Pass
1763 down target.
1764 (remote_target::mourn_inferior): Pass down target. Use
1765 remote_unpush_target.
1766 (remote_target::core_of_thread)
1767 (remote_target::remote_btrace_maybe_reopen): Pass down target.
1768 (remote_target::pid_to_exec_file)
1769 (remote_target::thread_handle_to_thread_info): Pass down target.
1770 (remote_target::async_wait_fd): New.
1771 * riscv-fbsd-tdep.c: Include "inferior.h".
1772 (riscv_fbsd_get_thread_local_address): Pass down target.
1773 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
1774 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
1775 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
1776 Adjust.
1777 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
1778 * solib-svr4.c (enable_break): Pass down target.
1779 * spu-multiarch.c (parse_spufs_run): Pass down target.
1780 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
1781 * target-delegates.c: Regenerate.
1782 * target.c (g_target_stack): Delete.
1783 (current_top_target): Return the current inferior's top target.
1784 (target_has_execution_1): Refer to the passed-in inferior's top
1785 target.
1786 (target_supports_terminal_ours): Check whether the initial
1787 inferior was already created.
1788 (decref_target): New.
1789 (target_stack::push): Incref/decref the target.
1790 (push_target, push_target, unpush_target): Adjust.
1791 (target_stack::unpush): Defref target.
1792 (target_is_pushed): Return bool. Adjust to refer to the current
1793 inferior's target stack.
1794 (dispose_inferior): Delete, and inline parts ...
1795 (target_preopen): ... here. Only dispose of the current inferior.
1796 (target_detach): Hold strong target reference while detaching.
1797 Pass target down.
1798 (target_thread_name): Add assertion.
1799 (target_resume): Pass down target.
1800 (target_ops::beneath, find_target_at): Adjust to refer to the
1801 current inferior's target stack.
1802 (get_dummy_target): New.
1803 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
1804 has a thread running.
1805 (initialize_targets): Rename to ...
1806 (_initialize_target): ... this.
1807 * target.h: Include "gdbsupport/refcounted-object.h".
1808 (struct target_ops): Inherit refcounted_object.
1809 (target_ops::shortname, target_ops::longname): Make const.
1810 (target_ops::async_wait_fd): New method.
1811 (decref_target): Declare.
1812 (struct target_ops_ref_policy): New.
1813 (target_ops_ref): New typedef.
1814 (get_dummy_target): Declare function.
1815 (target_is_pushed): Return bool.
1816 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
1817 (all_matching_threads_iterator::all_matching_threads_iterator):
1818 Handle filter target.
1819 * thread-iter.h (struct all_matching_threads_iterator, struct
1820 all_matching_threads_range, class all_non_exited_threads_range):
1821 Filter by target too. Remove explicit.
1822 * thread.c (threads_executing): Delete.
1823 (inferior_thread): Pass down current inferior.
1824 (clear_thread_inferior_resources): Pass down thread pointer
1825 instead of ptid_t.
1826 (add_thread_silent, add_thread_with_info, add_thread): Add
1827 process_stratum_target parameter. Use it for thread and inferior
1828 searches.
1829 (is_current_thread): New.
1830 (thread_info::deletable): Use it.
1831 (find_thread_ptid, thread_count, in_thread_list)
1832 (thread_change_ptid, set_resumed, set_running): New
1833 process_stratum_target parameter. Pass it down.
1834 (set_executing): New process_stratum_target parameter. Pass it
1835 down. Adjust reference to 'threads_executing'.
1836 (threads_are_executing): New process_stratum_target parameter.
1837 Adjust reference to 'threads_executing'.
1838 (set_stop_requested, finish_thread_state): New
1839 process_stratum_target parameter. Pass it down.
1840 (switch_to_thread): Also match inferior.
1841 (switch_to_thread): New process_stratum_target parameter. Pass it
1842 down.
1843 (update_threads_executing): Reimplement.
1844 * top.c (quit_force): Pop targets from all inferior.
1845 (gdb_init): Don't call initialize_targets.
1846 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
1847 Declare.
1848 (windows_add_thread, windows_delete_thread): Adjust.
1849 (get_windows_debug_event): Rename to ...
1850 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
1851 * tracefile-tfile.c (tfile_target_open): Pass down target.
1852 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
1853 Forward declare.
1854 (switch_to_thread): Add process_stratum_target parameter.
1855 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
1856 parameter. Use it.
1857 (mi_on_resume): Pass target down.
1858 * nat/fork-inferior.c (startup_inferior): Add
1859 process_stratum_target parameter. Pass it down.
1860 * nat/fork-inferior.h (startup_inferior): Add
1861 process_stratum_target parameter.
1862 * python/py-threadevent.c (py_get_event_thread): Pass target down.
1863
75c6c844
PA
18642020-01-10 Pedro Alves <palves@redhat.com>
1865
1866 * remote.c (remote_target::start_remote): Don't set inferior_ptid
1867 directly. Instead find the first thread in the thread list and
1868 use switch_to_thread.
1869
78f2c40a
PA
18702020-01-10 Pedro Alves <palves@redhat.com>
1871
1872 * remote.c (remote_target::remote_add_inferior): Don't bind a
1873 process to the current inferior if the current inferior is already
1874 bound to a process.
1875
e7af6c70
TBA
18762020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1877 Pedro Alves <palves@redhat.com>
1878
1879 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
1880 If no process is specified, return null_ptid instead of
1881 inferior_ptid.
1882 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
1883 TARGET_WAITKIND_SIGNALLED with no pid.
1884
31ba933e
PA
18852020-01-10 Pedro Alves <palves@redhat.com>
1886
1887 * remote.c (first_remote_resumed_thread): New.
1888 (remote_target::wait_as): Use it as default event_ptid instead of
1889 inferior_ptid.
1890
735fc2ca
PA
18912020-01-10 Pedro Alves <palves@redhat.com>
1892
1893 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
1894
c17e02e1
PA
18952020-01-10 Pedro Alves <palves@redhat.com>
1896
1897 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
1898 not -1.
1899
ab1ddbcf
PA
19002020-01-10 Pedro Alves <palves@redhat.com>
1901
1902 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
1903 ptid to get_last_target_status.
1904 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
1905 ptid to get_last_target_status.
1906 * infcmd.c (continue_command): Don't pass a target_waitstatus to
1907 get_last_target_status.
1908 (info_program_command): Don't pass a target_waitstatus to
1909 get_last_target_status.
1910 * infrun.c (init_wait_for_inferior): Use
1911 nullify_last_target_wait_ptid.
1912 (get_last_target_status): Handle nullptr arguments.
1913 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
1914 (print_stop_event): Don't pass a ptid to get_last_target_status.
1915 (normal_stop): Don't pass a ptid to get_last_target_status.
1916 * infrun.h (get_last_target_status, set_last_target_status): Move
1917 comments here and update.
1918 (nullify_last_target_wait_ptid): Declare.
1919 * linux-fork.c (fork_load_infrun_state): Remove local extern
1920 declaration of nullify_last_target_wait_ptid.
1921 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
1922 to get_last_target_status.
1923
f3f8ece4
PA
19242020-01-10 Pedro Alves <palves@redhat.com>
1925
1926 * gdbthread.h (scoped_restore_current_thread)
1927 <dont_restore, restore, m_dont_restore>: Declare.
1928 * thread.c (thread_alive): Add assertion. Return bool.
1929 (switch_to_thread_if_alive): New.
1930 (prune_threads): Switch inferior/thread.
1931 (print_thread_info_1): Switch thread before calling target methods.
1932 (scoped_restore_current_thread::restore): New, factored out from
1933 ...
1934 (scoped_restore_current_thread::~scoped_restore_current_thread):
1935 ... this.
1936 (scoped_restore_current_thread::scoped_restore_current_thread):
1937 Add assertion.
1938 (thread_apply_all_command, thread_select): Use
1939 switch_to_thread_if_alive.
1940 * infrun.c (proceed, restart_threads, handle_signal_stop)
1941 (switch_back_to_stepped_thread): Switch current thread before
1942 calling target methods.
1943
db2d40f7
PA
19442020-01-10 Pedro Alves <palves@redhat.com>
1945
1946 * inferior.c (switch_to_inferior_no_thread): New function,
1947 factored out from ...
1948 (inferior_command): ... here.
1949 * inferior.h (switch_to_inferior_no_thread): Declare.
1950 * mi/mi-main.c (run_one_inferior): Use
1951 switch_to_inferior_no_thread.
1952
bd420a2d
PA
19532020-01-10 Pedro Alves <palves@redhat.com>
1954
1955 * infcmd.c (kill_command): Remove dead code.
1956
ddf5db90
PA
19572020-01-10 Pedro Alves <palves@redhat.com>
1958
1959 * remote.c (remote_target::mourn_inferior): No longer check
1960 whether the target is running.
1961
5018ce90
PA
19622020-01-10 Pedro Alves <palves@redhat.com>
1963
1964 * corelow.c (core_target::has_execution): Change parameter type to
1965 inferior pointer.
1966 * inferior.c (number_of_live_inferiors): Use
1967 inferior::has_execution instead of target_has_execution_1.
1968 * inferior.h (inferior::has_execution): New.
1969 * linux-thread-db.c (thread_db_target::update_thread_list): Use
1970 inferior::has_execution instead of target_has_execution_1.
1971 * process-stratum-target.c
1972 (process_stratum_target::has_execution): Change parameter type to
1973 inferior pointer. Check the inferior's PID instead of
1974 inferior_ptid.
1975 * process-stratum-target.h
1976 (process_stratum_target::has_execution): Change parameter type to
1977 inferior pointer.
1978 * record-full.c (record_full_core_target::has_execution): Change
1979 parameter type to inferior pointer.
1980 * target.c (target_has_execution_1): Change parameter type to
1981 inferior pointer.
1982 (target_has_execution_current): Adjust.
1983 * target.h (target_ops::has_execution): Change parameter type to
1984 inferior pointer.
1985 (target_has_execution_1): Change parameter type to inferior
1986 pointer. Change return type to bool.
1987 * tracefile.h (tracefile_target::has_execution): Change parameter
1988 type to inferior pointer.
1989
74375d18
PA
19902020-01-10 Pedro Alves <palves@redhat.com>
1991
1992 * exceptions.c (print_flush): Remove current_top_target() check.
1993
acdf84a6
PA
19942020-01-10 Pedro Alves <palves@redhat.com>
1995
1996 * remote.c (show_remote_exec_file): Show the current inferior's
1997 exec-file instead of the command variable's value.
1998
ec506636
PA
19992020-01-10 Pedro Alves <palves@redhat.com>
2000
2001 * record-full.c (record_full_resume_ptid): New global.
2002 (record_full_target::resume): Set it.
2003 (record_full_wait_1): Use record_full_resume_ptid instead of
2004 inferior_ptid.
2005
873657b9
PA
20062020-01-10 Pedro Alves <palves@redhat.com>
2007
2008 * gdbthread.h (scoped_restore_current_thread)
2009 <dont_restore, restore, m_dont_restore>: Declare.
2010 * thread.c (thread_alive): Add assertion. Return bool.
2011 (switch_to_thread_if_alive): New.
2012 (prune_threads): Switch inferior/thread.
2013 (print_thread_info_1): Switch thread before calling target methods.
2014 (scoped_restore_current_thread::restore): New, factored out from
2015 ...
2016 (scoped_restore_current_thread::~scoped_restore_current_thread):
2017 ... this.
2018 (scoped_restore_current_thread::scoped_restore_current_thread):
2019 Add assertion.
2020 (thread_apply_all_command, thread_select): Use
2021 switch_to_thread_if_alive.
2022
7f0ae84c
GB
20232020-01-10 George Barrett <bob@bob131.so>
2024
2025 * stap-probe.c (stap_modify_semaphore): Don't check for null
2026 semaphores.
2027 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
2028 for null semaphores.
2029
f5a7c406
AB
20302020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
2031
2032 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
2033 all source windows, and maintain horizontal scroll status while
2034 doing so.
2035
9ae6bf64
TT
20362020-01-09 Tom Tromey <tom@tromey.com>
2037
2038 PR tui/18932:
2039 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
2040 update_source_window, not print_source_lines.
2041
b2efe70c
AB
20422020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
2043
2044 * tui/tui.c (tui_enable): Register tui hooks after calling
2045 tui_display_main.
2046
5f23a082
CB
20472020-01-09 Christian Biesinger <cbiesinger@google.com>
2048
2049 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
2050
3061113b
SM
20512020-01-08 Simon Marchi <simon.marchi@efficios.com>
2052
2053 * thread.c (print_thread_info_1): Fix indentation.
2054
57d75002
CB
20552020-01-09 Christian Biesinger <cbiesinger@google.com>
2056
2057 * symtab.c (general_symbol_info::compute_and_set_names): Move the
2058 unique_xmalloc_ptr outside the if to always free the demangled name.
2059
6a053cb1
TT
20602020-01-08 Tom Tromey <tromey@adacore.com>
2061
2062 * xcoffread.c (enter_line_range, read_xcoff_symtab)
2063 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
2064 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
2065 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
2066 Remove.
2067 (section_offsets): New typedef.
2068 * symtab.c (fixup_section, get_msymbol_address): Update.
2069 * symmisc.c (dump_msymbols): Update.
2070 * symfile.h (relative_addr_info_to_section_offsets)
2071 (symfile_map_offsets_to_segments): Update.
2072 * symfile.c (build_section_addr_info_from_objfile)
2073 (init_objfile_sect_indices): Update.
2074 (struct place_section_arg): Change type of "offsets".
2075 (place_section): Update.
2076 (relative_addr_info_to_section_offsets): Change type of
2077 "section_offsets". Remove "num_sections" parameter.
2078 (default_symfile_offsets, syms_from_objfile_1)
2079 (set_objfile_default_section_offset): Update.
2080 (reread_symbols): No need to preserve section offsets by hand.
2081 (symfile_map_offsets_to_segments): Change type of "offsets".
2082 * stap-probe.c (relocate_address): Update.
2083 * stabsread.h (process_one_symbol): Update.
2084 * solib-target.c (struct lm_info_target) <offsets>: Change type.
2085 (solib_target_relocate_section_addresses): Update.
2086 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
2087 Update.
2088 * solib-frv.c (frv_relocate_main_executable): Update.
2089 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
2090 * solib-aix.c (solib_aix_get_section_offsets): Change return
2091 type.
2092 (solib_aix_solib_create_inferior_hook): Update.
2093 * remote.c (remote_target::get_offsets): Update.
2094 * psymtab.c (find_pc_sect_psymtab): Update.
2095 * psympriv.h (struct partial_symbol) <address, text_low,
2096 text_high>: Update.
2097 * objfiles.h (obj_section_offset): Update.
2098 (struct objfile) <section_offsets>: Change type.
2099 <num_sections>: Remove.
2100 (objfile_relocate): Update.
2101 * objfiles.c (entry_point_address_query): Update
2102 (relocate_one_symbol): Change type of "section_offsets".
2103 (objfile_relocate1, objfile_relocate1): Change type of
2104 "new_offsets".
2105 (objfile_rebase1): Update.
2106 * mipsread.c (mipscoff_symfile_read): Update.
2107 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
2108 parameter.
2109 * mdebugread.c (parse_symbol): Change type of "section_offsets".
2110 (parse_external, psymtab_to_symtab_1): Update.
2111 * machoread.c (macho_symfile_offsets): Update.
2112 * ia64-tdep.c (ia64_find_unwind_table): Update.
2113 * hppa-tdep.c (read_unwind_info): Update.
2114 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
2115 * dwarf2read.c (create_addrmap_from_index)
2116 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
2117 (process_psymtab_comp_unit_reader, add_partial_symbol)
2118 (add_partial_subprogram, process_full_comp_unit)
2119 (read_file_scope, read_func_scope, read_lexical_block_scope)
2120 (read_call_site_scope, dwarf2_rnglists_process)
2121 (dwarf2_ranges_process, dwarf2_ranges_read)
2122 (dwarf_decode_lines_1, var_decode_location, new_symbol)
2123 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
2124 Update.
2125 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
2126 Update.
2127 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
2128 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
2129 (process_one_symbol): Change type of "section_offsets".
2130 * ctfread.c (get_objfile_text_range): Update.
2131 * coffread.c (coff_symtab_read, enter_linenos)
2132 (process_coff_symbol): Update.
2133 * coff-pe-read.c (add_pe_forwarded_sym): Update.
2134 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
2135
456e800a
TT
21362020-01-08 Tom Tromey <tromey@adacore.com>
2137
2138 * dwarf2read.c (parse_macro_definition): Use std::string.
2139 (parse_macro_definition): Likewise.
2140
6dfa2fc2
TT
21412020-01-08 Tom Tromey <tromey@adacore.com>
2142
2143 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
2144 (ATTR_ALLOC_CHUNK): Remove.
2145
421d1616
TT
21462020-01-08 Tom Tromey <tromey@adacore.com>
2147
2148 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
2149
43816ebc
TT
21502020-01-08 Tom Tromey <tromey@adacore.com>
2151
2152 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
2153 (dwarf2_compute_name, open_dwo_file): Likewise.
2154 (process_enumeration_scope): Use std::vector.
2155 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
2156 (partial_die_info::fixup, dwarf2_start_subfile)
2157 (guess_full_die_structure_name, dwarf2_name): Likewise.
2158 (determine_prefix): Update.
2159 (guess_full_die_structure_name): Make return type const.
2160 (partial_die_full_name): Return unique_xmalloc_ptr.
2161 (DW_FIELD_ALLOC_CHUNK): Remove.
2162
4212d509
TT
21632020-01-07 Tom Tromey <tromey@adacore.com>
2164
2165 PR build/24937:
2166 * stap-probe.c (class stap_static_probe_ops): Add constructor.
2167
06a6207a
JT
21682020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
2169
2170 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
2171
153d79c4
AB
21722020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
2173
2174 * stack.c (print_frame_info): Move disassemble_next_line code
2175 inside source_print block.
2176
66182876
EZ
21772020-01-06 Eli Zaretskii <eliz@gnu.org>
2178
2179 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
2180 gdb/signals.h, as we are now using native signal symbols.
2181
cbfa8581
SV
21822020-01-06 Shahab Vahedi <shahab@synopsys.com>
2183
2184 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
2185 overflow by an early check of content vs threshold.
2186 * tui/tui-source.c (tui_source_window::line_is_displayed):
2187 Likewise.
2188
3f602821
EZ
21892020-01-06 Eli Zaretskii <eliz@gnu.org>
2190
2191 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
2192
a08c904d
JT
21932020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
2194
2195 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
2196 export table if no section contains it's RVA.
2197
89a65580
EZ
21982020-01-06 Eli Zaretskii <eliz@gnu.org>
2199
2200 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
2201
8b7fcda2
HD
22022020-01-06 Hannes Domani <ssbssa@yahoo.de>
2203
2204 * source.c (print_source_lines_base): Set last_line_listed.
2205
a61b4f69
SV
22062020-01-06 Shahab Vahedi <shahab@synopsys.com>
2207
2208 * tui/tui-disasm.c: Remove trailing spaces.
2209
559e7e50
EZ
22102020-01-06 Eli Zaretskii <eliz@gnu.org>
2211 Pedro Alves <palves@redhat.com>
2212
2213 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
2214 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
2215 (windows_gdb_signal_to_target): New function, uses the above
2216 enumeration to convert GDB internal signal codes to equivalent
2217 Windows codes.
2218 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
2219 * windows-nat.c: Include "gdb_wait.h".
2220 (get_windows_debug_event): Extract the fatal exception from the
2221 exit status and convert to the equivalent Posix signal number.
2222 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
2223 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
2224 * gdbsupport/gdb_wait.c: New file, implements
2225 windows_status_to_termsig.
2226 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
2227 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
2228
f2302a34
AB
22292020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
2230
2231 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
2232 show_layout.
2233
6a5206eb
LM
22342020-01-05 Luis Machado <luis.machado@linaro.org>
2235
2236 * aarch64-linux-nat.c
2237 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
2238 and bfd_mach_aarch64.
2239
6ec1d75e
PW
22402020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2241
2242 * ui-file.c (stdio_file::can_emit_style_escape)
2243 (tee_file::can_emit_style_escape): Ensure style is used also on
2244 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
2245 to gdb_stdout.
2246 * main.c (set_gdb_data_directory): Use file style to output the
2247 warning that the given pathname is not a directory.
2248 * top.c (show_history_filename, gdb_safe_append_history)
2249 (show_gdb_datadir): Use file style.
2250
44f81a76
HD
22512020-01-03 Hannes Domani <ssbssa@yahoo.de>
2252
2253 * solib-target.c (struct lm_info_target):
2254 Change offsets to be a unique_xmalloc_ptr.
2255 (solib_target_relocate_section_addresses): Update.
2256
25057eb0
HD
22572020-01-03 Hannes Domani <ssbssa@yahoo.de>
2258
2259 * windows-nat.c (windows_clear_solib): Free so_list linked list.
2260
6e2118f5
BE
22612020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
2262
2263 * MAINTAINERS (Write After Approval): Add myself.
2264
8133c7dc
LM
22652020-01-02 Luis Machado <luis.machado@linaro.org>
2266
2267 * proc-service.c (get_ps_regcache): Remove reference to obsolete
2268 Cell BE architecture.
2269 * target.h (struct target_ops) <thread_architecture>: Likewise.
2270
48189bec
HD
22712020-01-01 Hannes Domani <ssbssa@yahoo.de>
2272
2273 * Makefile.in: Use INSTALL_PROGRAM_ENV.
2274
ead1063b
HD
22752020-01-01 Hannes Domani <ssbssa@yahoo.de>
2276
2277 * MAINTAINERS (Write After Approval): Add myself.
2278
e5d78223
JB
22792020-01-01 Joel Brobecker <brobecker@adacore.com>
2280
2281 * gdbarch.sh: Update copyright year range of generated files.
2282
b811d2c2
JB
22832020-01-01 Joel Brobecker <brobecker@adacore.com>
2284
2285 Update copyright year range in all GDB files.
2286
5f4def5c
JB
22872020-01-01 Joel Brobecker <brobecker@adacore.com>
2288
2289 * copyright.py: Convert to Python 3.
2290
51fd4002
JB
22912020-01-01 Joel Brobecker <brobecker@adacore.com>
2292
2293 * copyright.py: Adapt after move of gnulib directory from gdb
2294 directory to toplevel directory.
2295
5fb651f2
JB
22962020-01-01 Joel Brobecker <brobecker@adacore.com>
2297
2298 * copyright.py (main): Exit if run from the wrong directory.
2299
5dd8bf88
JB
23002020-01-01 Joel Brobecker <brobecker@adacore.com>
2301
2302 * top.c (print_gdb_version): Change copyright year to 2020.
2303
9f71dacb 23042020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 2305
9f71dacb 2306 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 2307
9f71dacb 2308For older changes see ChangeLog-2019.
c906108c
SS
2309\f
2310Local Variables:
2311mode: change-log
2312left-margin: 8
2313fill-column: 74
2314version-control: never
57da7796 2315coding: utf-8
c906108c 2316End: