]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb: Enable stdin on exception in execute_gdb_command
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
1ba1ac88
AB
12020-01-24 Graham Markall <graham.markall@embecosm.com>
2
3 PR gdb/23718
4 * gdb/python/python.c (execute_gdb_command): Call
5 async_enable_stdin in catch block.
6
f3364a6d
AB
72020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
8
9 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10 SWITCH_THRU_ALL_UIS.
11
733d0a67
AB
122020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13
14 PR tui/9765
15 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
16 comment, add extra parameter, and update to store previous symbol
17 when appropriate.
18 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
19 add extra parameter.
20 * tui/tui-disasm.c (tui_disassemble): Update header comment,
21 remove unneeded parameter, add try/catch around gdb_print_insn,
22 rewrite to add items to asm_lines vector.
23 (tui_find_backward_disassembly_start_address): New function.
24 (tui_find_disassembly_address): Updated throughout.
25 (tui_disasm_window::set_contents): Update for changes to
26 tui_disassemble.
27 (tui_disasm_window::do_scroll_vertical): No need to adjust the
28 number of lines to scroll.
29
b3b3bada
SM
302020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
31
32 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
33 (SECT_OFF_DATA): Likewise.
34 (SECT_OFF_RODATA): Likewise.
35 (SECT_OFF_TEXT): Likewise.
36 (SECT_OFF_BSS): Likewise.
37 (struct objfile) <text_section_offset, data_section_offset>: New
38 methods.
39 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
40 objfile::text_section_offset.
41 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
42 * coffread.c (coff_symtab_read): Likewise.
43 (enter_linenos): Likewise.
44 (process_coff_symbol): Likewise.
45 * ctfread.c (get_objfile_text_range): Likewise.
46 * dtrace-probe.c (dtrace_probe::get_relocated_address):
47 Use objfile::data_section_offset.
48 * dwarf2-frame.c (execute_cfa_program): Use
49 objfile::text_section_offset.
50 (dwarf2_frame_find_fde): Likewise.
51 * dwarf2read.c (create_addrmap_from_index): Likewise.
52 (create_addrmap_from_aranges): Likewise.
53 (dw2_find_pc_sect_compunit_symtab): Likewise.
54 (process_psymtab_comp_unit_reader): Likewise.
55 (add_partial_symbol): Likewise.
56 (add_partial_subprogram): Likewise.
57 (process_full_comp_unit): Likewise.
58 (read_file_scope): Likewise.
59 (read_func_scope): Likewise.
60 (read_lexical_block_scope): Likewise.
61 (read_call_site_scope): Likewise.
62 (dwarf2_rnglists_process): Likewise.
63 (dwarf2_ranges_process): Likewise.
64 (dwarf2_ranges_read): Likewise.
65 (dwarf_decode_lines_1): Likewise.
66 (new_symbol): Likewise.
67 (dwarf2_fetch_die_loc_sect_off): Likewise.
68 (dwarf2_per_cu_text_offset): Likewise.
69 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
70 * hppa-tdep.c (read_unwind_info): Likewise.
71 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
72 * psympriv.h (struct partial_symtab): Likewise.
73 * psymtab.c (find_pc_sect_psymtab): Likewise.
74 * solib-svr4.c (enable_break): Likewise.
75 * stap-probe.c (relocate_address): Use
76 objfile::data_section_offset.
77 * xcoffread.c (enter_line_range): Use
78 objfile::text_section_offset.
79 (read_xcoff_symtab): Likewise.
80
ab53f382
SM
812020-01-23 Simon Marchi <simon.marchi@efficios.com>
82
83 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
84 declaration to narrower scopes.
85
e7eee665
SM
862020-01-23 Simon Marchi <simon.marchi@efficios.com>
87
88 * darwin-nat.h (struct darwin_exception_msg, enum
89 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
90 Move up.
91 (class darwin_nat_target) <wait_1, check_new_threads,
92 decode_exception_message, decode_message, stop_inferior,
93 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
94 * darwin-nat.c (darwin_check_new_threads): Rename to...
95 (darwin_nat_target::check_new_threads): ... this.
96 (darwin_suspend_inferior_it): Remove.
97 (darwin_decode_exception_message): Rename to...
98 (darwin_nat_target::decode_exception_message): ... this.
99 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
100 (darwin_decode_message): Rename to...
101 (darwin_nat_target::decode_message): ... this.
102 (cancel_breakpoint): Rename to...
103 (darwin_nat_target::cancel_breakpoint): ... this.
104 (darwin_wait): Rename to...
105 (darwin_nat_target::wait_1): ... this. Use range-based for loop
106 instead of iterate_over_inferiors.
107 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
108 (darwin_stop_inferior): Rename to...
109 (darwin_nat_target::stop_inferior): ... this.
110 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
111 (darwin_init_thread_list): Rename to...
112 (darwin_nat_target::init_thread_list): ... this.
113 (darwin_ptrace_him): Rename to...
114 (darwin_nat_target::ptrace_him): ... this.
115 (darwin_nat_target::create_inferior): Pass lambda function to
116 fork_inferior.
117 (darwin_nat_target::detach): Call stop_inferior instead of
118 darwin_stop_inferior.
119 * fork-inferior.h (fork_inferior): Change init_trace_fun
120 parameter to gdb::function_view.
121 * fork-inferior.c (fork_inferior): Likewise.
122
c162ed3e
HD
1232020-01-23 Hannes Domani <ssbssa@yahoo.de>
124
125 * i386-cygwin-tdep.c (core_process_module_section): Update.
126 * windows-nat.c (struct lm_info_windows): Add text_offset.
127 (windows_xfer_shared_libraries): Update.
128 * windows-tdep.c (windows_xfer_shared_library):
129 Add text_offset_cached argument.
130 * windows-tdep.h (windows_xfer_shared_library): Update.
131
a1237872
SM
1322020-01-21 Simon Marchi <simon.marchi@efficios.com>
133
134 * gdbarch.sh: Add declaration for _initialize_gdbarch.
135
b3ee6dd9
SM
1362020-01-21 Simon Marchi <simon.marchi@efficios.com>
137
138 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
139 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
140 replace with range-based for.
141 (gdbsim_interrupt_inferior): Remove.
142 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
143 with a range-based for. Inline code from
144 gdbsim_interrupt_inferior.
145
f9fac3c8
SM
1462020-01-21 Simon Marchi <simon.marchi@efficios.com>
147
148 * infrun.c (proceed): Fix indentation.
149
f6474de9
TT
1502020-01-21 Tom Tromey <tromey@adacore.com>
151
152 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
153 * python/python.c (python_extension_ops): Update.
154 (gdbpy_colorize): New function.
155 * python/lib/gdb/__init__.py (colorize): New function.
156 * extension.h (ext_lang_colorize): Declare.
157 * extension.c (ext_lang_colorize): New function.
158 * extension-priv.h (struct extension_language_ops) <colorize>: New
159 member.
160 * cli/cli-style.c (_initialize_cli_style): Update help text.
161
f0c702d4
LM
1622020-01-21 Luis Machado <luis.machado@linaro.org>
163
164 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
165 <cond>: Change type to bool.
166 (aarch64_displaced_step_b_cond): Update cond to use bool type.
167 (aarch64_displaced_step_cb): Likewise.
168 (aarch64_displaced_step_tb): Likewise.
169
1ab139e5
LM
1702020-01-21 Luis Machado <luis.machado@linaro.org>
171
172 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
173 output.
174
0c271889
LM
1752020-01-21 Luis Machado <luis.machado@linaro.org>
176
177 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
178 <pc_adjust>: Adjust the documentation.
179 (aarch64_displaced_step_fixup): Check if PC really moved before
180 adjusting it.
181
4d89c1c7
TT
1822020-01-19 Tom Tromey <tom@tromey.com>
183
184 * disasm.c (~gdb_disassembler): New destructor.
185 (gdb_buffered_insn_length): Call disassemble_free_target.
186 * disasm.h (class gdb_disassembler): Declare destructor. Use
187 DISABLE_COPY_AND_ASSIGN.
188
c0ab21c2
TT
1892020-01-19 Tom Tromey <tom@tromey.com>
190
191 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
192 (die_reader_func_ftype): Remove.
193 (cutu_reader): New class.
194 (dw2_get_file_names_reader): Remove "data" parameter.
195 (dw2_get_file_names): Use cutu_reader.
196 (create_debug_type_hash_table): Update.
197 (read_cutu_die_from_dwo): Update comment.
198 (lookup_dwo_unit): Add dwo_name parameter.
199 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
200 die_reader_func_ftype and data parameters.
201 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
202 Remove die_reader_func_ftype and data parameters.
203 (~cutu_reader): New; from init_cutu_and_read_dies.
204 (cutu_reader::cutu_reader): Rename from
205 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
206 and data parameters.
207 (init_cutu_and_read_dies_simple): Remove.
208 (struct process_psymtab_comp_unit_data): Remove.
209 (process_psymtab_comp_unit_reader): Remove data parameter; add
210 want_partial_unit and pretend_language parameters.
211 (process_psymtab_comp_unit): Use cutu_reader.
212 (build_type_psymtabs_reader): Remove data parameter.
213 (build_type_psymtabs_1): Use cutu_reader.
214 (process_skeletonless_type_unit): Likewise.
215 (load_partial_comp_unit_reader): Remove.
216 (load_partial_comp_unit): Use cutu_reader.
217 (load_full_comp_unit_reader): Remove.
218 (load_full_comp_unit): Use cutu_reader.
219 (struct create_dwo_cu_data): Remove.
220 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
221 dwo_unit parameters.
222 (create_cus_hash_table): Use cutu_reader.
223 (struct dwarf2_read_addr_index_data): Remove.
224 (dwarf2_read_addr_index_reader): Remove.
225 (dwarf2_read_addr_index): Use cutu_reader.
226 (read_signatured_type_reader): Remove.
227 (read_signatured_type): Use cutu_reader.
228
45bbae5c
TT
2292020-01-19 Tom Tromey <tom@tromey.com>
230
231 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
232 * tui/tui-wingeneral.h (class tui_suppress_output): New.
233 (tui_wrefresh): Declare.
234 * tui/tui-wingeneral.c (suppress_output): New global.
235 (tui_suppress_output, ~tui_suppress_output): New constructor and
236 destructor.
237 (tui_wrefresh): New function.
238 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
239 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
240 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
241 method.
242 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
243 tui_wrefresh.
244 (tui_data_window::no_refresh): New method.
245 (tui_data_item_window::refresh_window): Call tui_wrefresh.
246 (tui_reg_command): Use tui_suppress_output
247 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
248 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
249 method.
250 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
251
4f13c1c0
TT
2522020-01-19 Tom Tromey <tom@tromey.com>
253
254 * tui/tui-winsource.c (tui_update_source_windows_with_line):
255 Handle case where symtab is null.
256
fa47e446
SM
2572020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
258
259 * linux-fork.c (one_fork_p): Simplify.
260
26f42329
SM
2612020-01-17 Simon Marchi <simon.marchi@efficios.com>
262
263 * top.c (struct qt_args): Remove.
264 (kill_or_detach): Change return type to void, replace `void *`
265 parameter with a proper one.
266 (print_inferior_quit_action): Likewise.
267 (quit_confirm): Use range-based for loop to iterate over inferiors.
268 (quit_force): Likewise.
269
a9ac81b1
SM
2702020-01-17 Simon Marchi <simon.marchi@efficios.com>
271
272 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
273 `void *` parameter with proper parameters.
274 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
275 (print_one_inferior): Change return type to void, replace `void *`
276 parameter with proper parameters.
277 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
278 inferiors.
279 (get_other_inferior): Remove.
280 (mi_cmd_remove_inferior): Use range-based loop to iterate over
281 inferiors.
282
788eca49
SM
2832020-01-17 Simon Marchi <simon.marchi@efficios.com>
284
285 * mi/mi-interp.c (report_initial_inferior): Remove.
286 (mi_interp::init): Use range-based for to iterate over inferiors.
287
d9bc85b6
SM
2882020-01-17 Simon Marchi <simon.marchi@efficios.com>
289
290 * python/py-inferior.c (build_inferior_list): Remove.
291 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
292
40c94099
CB
2932020-01-16 Christian Biesinger <cbiesinger@google.com>
294
295 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
296 (btrace_stitch_trace): Likewise.
297 * charset.c (intermediate_encoding): Likewise (vaild).
298 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
299 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
300 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
301
e0cdfe3c
HD
3022020-01-16 Hannes Domani <ssbssa@yahoo.de>
303
304 * windows-tdep.c (windows_get_tlb_type):
305 Add rtl_user_process_parameters type.
306
790f1718
PA
3072020-01-16 Pedro Alves <palves@redhat.com>
308 Norbert Lange <nolange79@gmail.com>
309
310 PR build/24805
311 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
312 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
313 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
314 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
315 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
316 (ps_plog): Redeclare exported functions with default visibility.
317
3112ed97
NA
3182020-01-16 Nitika Achra <Nitika.Achra@amd.com>
319
320 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
321 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
322
8dc3273e
SM
3232020-01-15 Simon Marchi <simon.marchi@efficios.com>
324
325 * infcmd.c (post_create_inferior): Use get_thread_regcache
326 instead of get_current_regcache.
327
ff47f4f0
TT
3282020-01-14 Tom Tromey <tom@tromey.com>
329
330 PR symtab/12535:
331 * python/python.c (gdbpy_decode_line): Treat empty string the same
332 as no argument.
333
975f45b7
TT
3342020-01-14 Tom Tromey <tom@tromey.com>
335
336 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
337
25e57356
TT
3382020-01-14 Tom Tromey <tom@tromey.com>
339
340 * nat/linux-btrace.c: Don't include <config.h>.
341 * nat/linux-ptrace.c: Don't include <config.h>.
342 * nat/x86-linux-dregs.c: Don't include <config.h>.
343
05ea2a05
TT
3442020-01-14 Tom Tromey <tom@tromey.com>
345
346 * configure: Rebuild.
347 * configure.ac: Move many checks to ../gdbsupport/common.m4.
348
01027315
TT
3492020-01-14 Tom Tromey <tom@tromey.com>
350
351 * nat/x86-linux-dregs.c: Include configh.h.
352 * nat/linux-ptrace.c: Include configh.h.
353 * nat/linux-btrace.c: Include configh.h.
354 * defs.h: Include config.h, bfd.h.
355 * configure.ac: Don't source common.host.
356 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
357 * configure: Rebuild.
358 * acinclude.m4: Update path.
359 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
360 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
361 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
362 (CLIBS): Add LIBSUPPORT.
363 (CDEPS): Likewise.
364 (COMMON_SFILES): Remove gdbsupport files.
365 (HFILES_NO_SRCDIR): Likewise.
366 (stamp-version): Update path to create-version.sh.
367 (ALLDEPFILES): Remove gdbsupport files.
368
b2ceabe8
TT
3692020-01-14 Tom Tromey <tom@tromey.com>
370
371 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
372 USE_WIN32API when needed.
373 * configure.ac (USE_WIN32API): Don't define.
374 (WIN32LIBS): Use WIN32APILIBS.
375 * configure: Rebuild.
376
25c51f71
TT
3772020-01-14 Tom Tromey <tom@tromey.com>
378
379 * configure: Rebuild.
380 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
381
717c684d
BE
3822020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
383
384 * skip.c (skip_function_command): Make skip w/o arguments use the
385 name of the inlined function if pc is inside any inlined function.
386
7da6a5b9
LM
3872020-01-14 Luis Machado <luis.machado@linaro.org>
388
389 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
390 * infrun.c (resume_1): Likewise.
391 (handle_inferior_event): Remove stale comment.
392 * linux-nat.c (linux_nat_target::resume): Update comments.
393 (save_stop_reason): Likewise.
394 (linux_nat_filter_event): Likewise.
395 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
396
44e4c775
AB
3972020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
398
399 * elfread.c (record_minimal_symbol): Set section index to 0 for
400 non-allocatable sections.
401
18a8505e
AT
402
4032020-01-13 Ali Tamur <tamur@google.com>
404
405 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
406 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
407 to gdb::optional. Update comments.
408 (dwo_file): Update comments.
409 (read_attribute): Update API to take an additional out parameter,
410 need_reprocess. This is used to mark attributes that need other
411 attributes (e.g. str_offsets_base) for correct computation which may not
412 have been read yet.
413 (read_attribute_reprocess): New function declaration.
414 (read_addr_index): Likewise.
415 (read_dwo_str_index): Likewise.
416 (read_stub_str_index): Likewise.
417 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
418 (lookup_addr_base): New function definition.
419 (lookup_ranges_base): Likewise.
420 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
421 lookup_ranges_base.
422 (init_cutu_and_read_dies): Update comments.
423 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
424 unit. This is used to inherit parent's str_offsets_base and addr_base.
425 Update comments.
426 (init_cutu_and_read_dies_simple): Reflect API changes.
427 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
428 (create_cus_hash_table): Change API to take parent compile unit.
429 Reflect API changes.
430 (open_and_init_dwo_file): Reflect API changes.
431 (dwarf2_get_pc_bounds): Update comments.
432 (dwarf2_record_block_ranges): Likewise.
433 (read_full_die_1): Change implementation to reprocess attributes that
434 need str_offsets_base and addr_base.
435 (partial_die_info::read): Likewise.
436 (read_attribute_reprocess): New function definition.
437 (read_attribute_value): Change API to take an additional out parameter,
438 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
439 when a non-dwo compile unit has index based attributes.
440 (read_attribute): Reflect API changes.
441 (read_addr_index_1): Reflect API changes. Update comments.
442 (dwarf2_read_addr_index_data): Reflect API changes.
443 (dwarf2_read_addr_index): Likewise.
444 (read_str_index): Change API and implementation. This becomes a helper
445 to be used by the new string index related methods. Update error
446 message and comments.
447 (read_dwo_str_index): New function definition.
448 (read_stub_str_index): Likewise.
449 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
450 * symfile.h (dwarf2_debug_sections): Likewise.
451 * xcoffread.c (dwarf2_debug_sections): Likewise.
452
0cac9354
SM
4532020-01-13 Simon Marchi <simon.marchi@efficios.com>
454
455 * gdbcore.h (struct core_fns) <core_read_registers>: Change
456 core_reg_sect type to gdb_byte *.
457 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
458 * cris-tdep.c (fetch_core_registers): Likewise.
459 * corelow.c (core_target::get_core_register_section): Change
460 type of `contents` to gdb::byte_vector.
461
9a6d629c
AB
4622020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
463
464 * tui/tui-wingeneral.c (box_win): Position the title in the center
465 of the border.
466
d8b2f9e3
SM
4672020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
468
469 * corelow.c (core_target::get_core_register_section): Use
470 std::vector instead of alloca.
471
bb564c58
SM
4722020-01-13 Simon Marchi <simon.marchi@efficios.com>
473
474 * warning.m4: Add -Wmissing-declarations to build_warnings.
475 * configure: Re-generate.
476
6b366111
SM
4772020-01-13 Simon Marchi <simon.marchi@efficios.com>
478
479 * python/python.c (init__gdb_module): Add declaration.
480
6c265988
SM
4812020-01-13 Simon Marchi <simon.marchi@efficios.com>
482
483 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
484 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
485 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
486 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
487 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
488 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
489 * ada-exp.y (_initialize_ada_exp): Add declaration.
490 * ada-lang.c (_initialize_ada_language): Add declaration.
491 * ada-tasks.c (_initialize_tasks): Add declaration.
492 * agent.c (_initialize_agent): Add declaration.
493 * aix-thread.c (_initialize_aix_thread): Add declaration.
494 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
495 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
496 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
497 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
498 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
499 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
500 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
501 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
502 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
503 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
504 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
505 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
506 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
507 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
508 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
509 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
510 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
511 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
512 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
513 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
514 * annotate.c (_initialize_annotate): Add declaration.
515 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
516 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
517 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
518 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
519 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
520 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
521 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
522 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
523 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
524 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
525 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
526 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
527 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
528 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
529 * auto-load.c (_initialize_auto_load): Add declaration.
530 * auxv.c (_initialize_auxv): Add declaration.
531 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
532 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
533 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
534 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
535 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
536 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
537 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
538 * breakpoint.c (_initialize_breakpoint): Add declaration.
539 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
540 * btrace.c (_initialize_btrace): Add declaration.
541 * charset.c (_initialize_charset): Add declaration.
542 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
543 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
544 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
545 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
546 * cli/cli-script.c (_initialize_cli_script): Add declaration.
547 * cli/cli-style.c (_initialize_cli_style): Add declaration.
548 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
549 * coffread.c (_initialize_coffread): Add declaration.
550 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
551 * compile/compile.c (_initialize_compile): Add declaration.
552 * complaints.c (_initialize_complaints): Add declaration.
553 * completer.c (_initialize_completer): Add declaration.
554 * copying.c (_initialize_copying): Add declaration.
555 * corefile.c (_initialize_core): Add declaration.
556 * corelow.c (_initialize_corelow): Add declaration.
557 * cp-abi.c (_initialize_cp_abi): Add declaration.
558 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
559 * cp-support.c (_initialize_cp_support): Add declaration.
560 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
561 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
562 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
563 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
564 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
565 * ctfread.c (_initialize_ctfread): Add declaration.
566 * d-lang.c (_initialize_d_language): Add declaration.
567 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
568 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
569 * dbxread.c (_initialize_dbxread): Add declaration.
570 * dcache.c (_initialize_dcache): Add declaration.
571 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
572 * disasm.c (_initialize_disasm): Add declaration.
573 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
574 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
575 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
576 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
577 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
578 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
579 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
580 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
581 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
582 * elfread.c (_initialize_elfread): Add declaration.
583 * exec.c (_initialize_exec): Add declaration.
584 * extension.c (_initialize_extension): Add declaration.
585 * f-lang.c (_initialize_f_language): Add declaration.
586 * f-valprint.c (_initialize_f_valprint): Add declaration.
587 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
588 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
589 * filesystem.c (_initialize_filesystem): Add declaration.
590 * findcmd.c (_initialize_mem_search): Add declaration.
591 * findvar.c (_initialize_findvar): Add declaration.
592 * fork-child.c (_initialize_fork_child): Add declaration.
593 * frame-base.c (_initialize_frame_base): Add declaration.
594 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
595 * frame.c (_initialize_frame): Add declaration.
596 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
597 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
598 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
599 * gcore.c (_initialize_gcore): Add declaration.
600 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
601 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
602 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
603 * gdbarch.c (_initialize_gdbarch): Add declaration.
604 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
605 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
606 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
607 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
608 * go-lang.c (_initialize_go_language): Add declaration.
609 * go32-nat.c (_initialize_go32_nat): Add declaration.
610 * guile/guile.c (_initialize_guile): Add declaration.
611 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
612 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
613 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
614 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
615 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
616 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
617 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
618 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
619 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
620 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
621 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
622 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
623 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
624 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
625 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
626 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
627 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
628 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
629 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
630 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
631 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
632 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
633 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
634 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
635 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
636 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
637 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
638 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
639 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
640 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
641 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
642 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
643 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
644 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
645 * infcall.c (_initialize_infcall): Add declaration.
646 * infcmd.c (_initialize_infcmd): Add declaration.
647 * inflow.c (_initialize_inflow): Add declaration.
648 * infrun.c (_initialize_infrun): Add declaration.
649 * interps.c (_initialize_interpreter): Add declaration.
650 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
651 * jit.c (_initialize_jit): Add declaration.
652 * language.c (_initialize_language): Add declaration.
653 * linux-fork.c (_initialize_linux_fork): Add declaration.
654 * linux-nat.c (_initialize_linux_nat): Add declaration.
655 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
656 * linux-thread-db.c (_initialize_thread_db): Add declaration.
657 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
658 * m2-lang.c (_initialize_m2_language): Add declaration.
659 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
660 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
661 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
662 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
663 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
664 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
665 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
666 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
667 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
668 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
669 * machoread.c (_initialize_machoread): Add declaration.
670 * macrocmd.c (_initialize_macrocmd): Add declaration.
671 * macroscope.c (_initialize_macroscope): Add declaration.
672 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
673 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
674 * maint.c (_initialize_maint_cmds): Add declaration.
675 * mdebugread.c (_initialize_mdebugread): Add declaration.
676 * memattr.c (_initialize_mem): Add declaration.
677 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
678 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
679 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
680 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
681 * mi/mi-main.c (_initialize_mi_main): Add declaration.
682 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
683 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
684 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
685 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
686 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
687 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
688 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
689 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
690 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
691 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
692 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
693 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
694 * mipsread.c (_initialize_mipsread): Add declaration.
695 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
696 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
697 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
698 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
699 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
700 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
701 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
702 * nto-procfs.c (_initialize_procfs): Add declaration.
703 * objc-lang.c (_initialize_objc_language): Add declaration.
704 * observable.c (_initialize_observer): Add declaration.
705 * opencl-lang.c (_initialize_opencl_language): Add declaration.
706 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
707 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
708 * osabi.c (_initialize_gdb_osabi): Add declaration.
709 * osdata.c (_initialize_osdata): Add declaration.
710 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
711 * parse.c (_initialize_parse): Add declaration.
712 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
713 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
714 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
715 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
716 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
717 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
718 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
719 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
720 * printcmd.c (_initialize_printcmd): Add declaration.
721 * probe.c (_initialize_probe): Add declaration.
722 * proc-api.c (_initialize_proc_api): Add declaration.
723 * proc-events.c (_initialize_proc_events): Add declaration.
724 * proc-service.c (_initialize_proc_service): Add declaration.
725 * procfs.c (_initialize_procfs): Add declaration.
726 * producer.c (_initialize_producer): Add declaration.
727 * psymtab.c (_initialize_psymtab): Add declaration.
728 * python/python.c (_initialize_python): Add declaration.
729 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
730 * record-btrace.c (_initialize_record_btrace): Add declaration.
731 * record-full.c (_initialize_record_full): Add declaration.
732 * record.c (_initialize_record): Add declaration.
733 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
734 * regcache.c (_initialize_regcache): Add declaration.
735 * reggroups.c (_initialize_reggroup): Add declaration.
736 * remote-notif.c (_initialize_notif): Add declaration.
737 * remote-sim.c (_initialize_remote_sim): Add declaration.
738 * remote.c (_initialize_remote): Add declaration.
739 * reverse.c (_initialize_reverse): Add declaration.
740 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
741 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
742 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
743 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
744 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
745 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
746 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
747 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
748 Add declaration.
749 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
750 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
751 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
752 * rust-exp.y (_initialize_rust_exp): Add declaration.
753 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
754 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
755 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
756 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
757 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
758 * score-tdep.c (_initialize_score_tdep): Add declaration.
759 * ser-go32.c (_initialize_ser_dos): Add declaration.
760 * ser-mingw.c (_initialize_ser_windows): Add declaration.
761 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
762 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
763 * ser-uds.c (_initialize_ser_socket): Add declaration.
764 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
765 * serial.c (_initialize_serial): Add declaration.
766 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
767 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
768 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
769 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
770 * skip.c (_initialize_step_skip): Add declaration.
771 * sol-thread.c (_initialize_sol_thread): Add declaration.
772 * solib-aix.c (_initialize_solib_aix): Add declaration.
773 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
774 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
775 * solib-frv.c (_initialize_frv_solib): Add declaration.
776 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
777 * solib-target.c (_initialize_solib_target): Add declaration.
778 * solib.c (_initialize_solib): Add declaration.
779 * source-cache.c (_initialize_source_cache): Add declaration.
780 * source.c (_initialize_source): Add declaration.
781 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
782 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
783 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
784 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
785 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
786 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
787 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
788 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
789 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
790 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
791 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
792 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
793 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
794 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
795 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
796 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
797 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
798 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
799 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
800 * stabsread.c (_initialize_stabsread): Add declaration.
801 * stack.c (_initialize_stack): Add declaration.
802 * stap-probe.c (_initialize_stap_probe): Add declaration.
803 * std-regs.c (_initialize_frame_reg): Add declaration.
804 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
805 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
806 * symfile.c (_initialize_symfile): Add declaration.
807 * symmisc.c (_initialize_symmisc): Add declaration.
808 * symtab.c (_initialize_symtab): Add declaration.
809 * target.c (_initialize_target): Add declaration.
810 * target-connection.c (_initialize_target_connection): Add
811 declaration.
812 * target-dcache.c (_initialize_target_dcache): Add declaration.
813 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
814 * thread.c (_initialize_thread): Add declaration.
815 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
816 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
817 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
818 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
819 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
820 * tracectf.c (_initialize_ctf): Add declaration.
821 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
822 * tracefile.c (_initialize_tracefile): Add declaration.
823 * tracepoint.c (_initialize_tracepoint): Add declaration.
824 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
825 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
826 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
827 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
828 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
829 * tui/tui-win.c (_initialize_tui_win): Add declaration.
830 * tui/tui.c (_initialize_tui): Add declaration.
831 * typeprint.c (_initialize_typeprint): Add declaration.
832 * ui-style.c (_initialize_ui_style): Add declaration.
833 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
834 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
835 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
836 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
837 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
838 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
839 * unittests/filtered_iterator-selftests.c
840 (_initialize_filtered_iterator_selftests): Add declaration.
841 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
842 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
843 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
844 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
845 * unittests/main-thread-selftests.c
846 (_initialize_main_thread_selftests): Add declaration.
847 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
848 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
849 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
850 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
851 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
852 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
853 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
854 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
855 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
856 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
857 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
858 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
859 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
860 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
861 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
862 declaration.
863 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
864 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
865 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
866 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
867 * user-regs.c (_initialize_user_regs): Add declaration.
868 * utils.c (_initialize_utils): Add declaration.
869 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
870 * valops.c (_initialize_valops): Add declaration.
871 * valprint.c (_initialize_valprint): Add declaration.
872 * value.c (_initialize_values): Add declaration.
873 * varobj.c (_initialize_varobj): Add declaration.
874 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
875 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
876 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
877 * windows-nat.c (_initialize_windows_nat): Add declaration.
878 (_initialize_check_for_gdb_ini): Add declaration.
879 (_initialize_loadable): Add declaration.
880 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
881 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
882 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
883 * xcoffread.c (_initialize_xcoffread): Add declaration.
884 * xml-support.c (_initialize_xml_support): Add declaration.
885 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
886 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
887 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
888 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
889
e2de1eec
SM
8902020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
891
892 * regformats/regdat.sh: Generate declaration for init function.
893
e0037b4c
SM
8942020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
895
896 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
897 up.
898 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
899 close_one_inferior>: New methods.
900 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
901 pass down target to find_inferior_pid.
902 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
903 Pass down target to find_inferior_ptid.
904 (gdbsim_target::create_inferior): Pass down target to
905 add_thread_silent.
906 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
907 target down to find_inferior_ptid and switch_to_thread.
908 (gdbsim_target::close): Update to call close_one_inferior.
909 (struct resume_data): Remove.
910 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
911 directly, rather than through a void pointer.
912 (gdbsim_target::resume): Update to call resume_one_inferior.
913
58920b5b
SM
9142020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
915
916 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
917
4ec89149
PA
9182020-01-12 Pedro Alves <palves@redhat.com>
919
920 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
921 directly for the current inferior instead of
922 discard_all_inferiors.
923 (discard_all_inferiors): Delete.
924
7c392d1d
TT
9252020-01-11 Tom Tromey <tom@tromey.com>
926
927 * tui/tui-wingeneral.c (box_win): Check cli_styling.
928 * tui/tui-winsource.c (tui_source_window_base::refill): Use
929 deprecated_safe_get_selected_frame.
930
d9ebdab7
TBA
9312020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
932
933 * inferior.c (print_inferior): Switch inferior before printing it.
934
f3c469b9
PA
9352020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
936 Pedro Alves <palves@redhat.com>
937
938 * progspace-and-thread.c (switch_to_program_space_and_thread):
939 Assert there's an inferior for PSPACE. Use
940 switch_to_inferior_no_thread to switch the inferior too.
941 * progspace.c (program_space::~program_space): Call
942 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
943 (program_space::free_all_objfiles): Don't call clear_symtab_users
944 here.
945 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
946
65c574f6
PA
9472020-01-10 Pedro Alves <palves@redhat.com>
948
949 * NEWS: Mention multi-target debugging, "info connections", and
950 "add-inferior -no-connection".
951
2f4fcf00
PA
9522020-01-10 Pedro Alves <palves@redhat.com>
953
954 * infrun.c: Include "target-connection.h".
955 (check_multi_target_resumption): New.
956 (proceed): Call it.
957 * target-connection.c (make_target_connection_string): Make
958 extern.
959 * target-connection.h (make_target_connection_string): Declare.
960
121b3efd
PA
9612020-01-10 Pedro Alves <palves@redhat.com>
962
963 * Makefile.in (COMMON_SFILES): Add target-connection.c.
964 * inferior.c (uiout_field_connection): New function.
965 (print_inferior): Add new "connection-id" column.
966 (add_inferior_command): Show connection number/string of added
967 inferior.
968 * process-stratum-target.h
969 (process_stratum_target::connection_string): New virtual method.
970 (process_stratum_target::connection_number): New field.
971 * remote.c (remote_target::connection_string): New override.
972 * target-connection.c: New file.
973 * target-connection.h: New file.
974 * target.c (decref_target): Remove process_stratum targets from
975 the connection list.
976 (target_stack::push): Add process_stratum targets to the
977 connection list.
978
4f837581
PA
9792020-01-10 Pedro Alves <palves@redhat.com>
980
981 Revert:
982 2016-04-12 Pedro Alves <palves@redhat.com>
983 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
984 Remove references to name.
985 * serial.h (struct serial) <name>: Delete.
986
f4ec508e
PA
9872020-01-10 Pedro Alves <palves@redhat.com>
988
989 * gdbarch-selftests.c (register_to_value_test): Remove "target
990 already pushed" check.
991
5b6d1e4f
PA
9922020-01-10 Pedro Alves <palves@redhat.com>
993 John Baldwin <jhb@FreeBSD.org>
994
995 * aarch64-linux-nat.c
996 (aarch64_linux_nat_target::thread_architecture): Adjust.
997 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
998 (task_command_1): Likewise.
999 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
1000 (aix_thread_target::wait, aix_thread_target::fetch_registers)
1001 (aix_thread_target::store_registers)
1002 (aix_thread_target::thread_alive): Adjust.
1003 * amd64-fbsd-tdep.c: Include "inferior.h".
1004 (amd64fbsd_get_thread_local_address): Pass down target.
1005 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
1006 thread's gdbarch instead of target_gdbarch.
1007 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
1008 get_last_target_status.
1009 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
1010 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
1011 inferiors.
1012 (update_inserted_breakpoint_locations): Skip if inferiors with no
1013 execution.
1014 (update_global_location_list): When handling moribund locations,
1015 find representative inferior for location's pspace, and use thread
1016 count of its process_stratum target.
1017 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
1018 * bsd-uthread.c (bsd_uthread_target::wait): Use
1019 as_process_stratum_target and adjust thread_change_ptid and
1020 add_thread calls.
1021 (bsd_uthread_target::update_thread_list): Use
1022 as_process_stratum_target and adjust find_thread_ptid,
1023 thread_change_ptid and add_thread calls.
1024 * btrace.c (maint_btrace_packet_history_cmd): Adjust
1025 find_thread_ptid call.
1026 * corelow.c (add_to_thread_list): Adjust add_thread call.
1027 (core_target_open): Adjust add_thread_silent and thread_count
1028 calls.
1029 (core_target::pid_to_str): Adjust find_inferior_ptid call.
1030 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
1031 * event-top.c (async_disconnect): Pop targets from all inferiors.
1032 * exec.c (add_target_sections): Push exec target on all inferiors
1033 sharing the program space.
1034 (remove_target_sections): Remove the exec target from all
1035 inferiors sharing the program space.
1036 (exec_on_vfork): New.
1037 * exec.h (exec_on_vfork): Declare.
1038 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
1039 Pass it down.
1040 (fbsd_nat_target::update_thread_list): Adjust.
1041 (fbsd_nat_target::resume): Adjust.
1042 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
1043 down.
1044 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
1045 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
1046 get_thread_arch_regcache call.
1047 * fork-child.c (gdb_startup_inferior): Pass target down to
1048 startup_inferior and set_executing.
1049 * gdbthread.h (struct process_stratum_target): Forward declare.
1050 (add_thread, add_thread_silent, add_thread_with_info)
1051 (in_thread_list): Add process_stratum_target parameter.
1052 (find_thread_ptid(inferior*, ptid_t)): New overload.
1053 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
1054 parameter.
1055 (all_threads()): Delete overload.
1056 (all_threads, all_non_exited_threads): Add process_stratum_target
1057 parameter.
1058 (all_threads_safe): Use brace initialization.
1059 (thread_count): Add process_stratum_target parameter.
1060 (set_resumed, set_running, set_stop_requested, set_executing)
1061 (threads_are_executing, finish_thread_state): Add
1062 process_stratum_target parameter.
1063 (switch_to_thread): Use is_current_thread.
1064 * i386-fbsd-tdep.c: Include "inferior.h".
1065 (i386fbsd_get_thread_local_address): Pass down target.
1066 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
1067 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
1068 have_inferiors check.
1069 * inf-ptrace.c (inf_ptrace_target::create_inferior)
1070 (inf_ptrace_target::attach): Adjust.
1071 * infcall.c (run_inferior_call): Adjust.
1072 * infcmd.c (run_command_1): Pass target to
1073 scoped_finish_thread_state.
1074 (proceed_thread_callback): Skip inferiors with no execution.
1075 (continue_command): Rename 'all_threads' local to avoid hiding
1076 'all_threads' function. Adjust get_last_target_status call.
1077 (prepare_one_step): Adjust set_running call.
1078 (signal_command): Use user_visible_resume_target. Compare thread
1079 pointers instead of inferior_ptid.
1080 (info_program_command): Adjust to pass down target.
1081 (attach_command): Mark target's 'thread_executing' flag.
1082 (stop_current_target_threads_ns): New, factored out from ...
1083 (interrupt_target_1): ... this. Switch inferior before making
1084 target calls.
1085 * inferior-iter.h
1086 (struct all_inferiors_iterator, struct all_inferiors_range)
1087 (struct all_inferiors_safe_range)
1088 (struct all_non_exited_inferiors_range): Filter on
1089 process_stratum_target too. Remove explicit.
1090 * inferior.c (inferior::inferior): Push dummy target on target
1091 stack.
1092 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
1093 Add process_stratum_target parameter, and pass it down.
1094 (have_live_inferiors): Adjust.
1095 (switch_to_inferior_and_push_target): New.
1096 (add_inferior_command, clone_inferior_command): Handle
1097 "-no-connection" parameter. Use
1098 switch_to_inferior_and_push_target.
1099 (_initialize_inferior): Mention "-no-connection" option in
1100 the help of "add-inferior" and "clone-inferior" commands.
1101 * inferior.h: Include "process-stratum-target.h".
1102 (interrupt_target_1): Use bool.
1103 (struct inferior) <push_target, unpush_target, target_is_pushed,
1104 find_target_beneath, top_target, process_target, target_at,
1105 m_stack>: New.
1106 (discard_all_inferiors): Delete.
1107 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
1108 (all_inferiors, all_non_exited_inferiors): Add
1109 process_stratum_target parameter.
1110 * infrun.c: Include "gdb_select.h" and <unordered_map>.
1111 (target_last_proc_target): New global.
1112 (follow_fork_inferior): Push target on new inferior. Pass target
1113 to add_thread_silent. Call exec_on_vfork. Handle target's
1114 reference count.
1115 (follow_fork): Adjust get_last_target_status call. Also consider
1116 target.
1117 (follow_exec): Push target on new inferior.
1118 (struct execution_control_state) <target>: New field.
1119 (user_visible_resume_target): New.
1120 (do_target_resume): Call target_async.
1121 (resume_1): Set target's threads_executing flag. Consider resume
1122 target.
1123 (commit_resume_all_targets): New.
1124 (proceed): Also consider resume target. Skip threads of inferiors
1125 with no execution. Commit resumtion in all targets.
1126 (start_remote): Pass current inferior to wait_for_inferior.
1127 (infrun_thread_stop_requested): Consider target as well. Pass
1128 thread_info pointer to clear_inline_frame_state instead of ptid.
1129 (infrun_thread_thread_exit): Consider target as well.
1130 (random_pending_event_thread): New inferior parameter. Use it.
1131 (do_target_wait): Rename to ...
1132 (do_target_wait_1): ... this. Add inferior parameter, and pass it
1133 down.
1134 (threads_are_resumed_pending_p, do_target_wait): New.
1135 (prepare_for_detach): Adjust calls.
1136 (wait_for_inferior): New inferior parameter. Handle it. Use
1137 do_target_wait_1 instead of do_target_wait.
1138 (fetch_inferior_event): Adjust. Switch to representative
1139 inferior. Pass target down.
1140 (set_last_target_status): Add process_stratum_target parameter.
1141 Save target in global.
1142 (get_last_target_status): Add process_stratum_target parameter and
1143 handle it.
1144 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
1145 (context_switch): Check inferior_ptid == null_ptid before calling
1146 inferior_thread().
1147 (get_inferior_stop_soon): Pass down target.
1148 (wait_one): Rename to ...
1149 (poll_one_curr_target): ... this.
1150 (struct wait_one_event): New.
1151 (wait_one): New.
1152 (stop_all_threads): Adjust.
1153 (handle_no_resumed, handle_inferior_event): Adjust to consider the
1154 event's target.
1155 (switch_back_to_stepped_thread): Also consider target.
1156 (print_stop_event): Update.
1157 (normal_stop): Update. Also consider the resume target.
1158 * infrun.h (wait_for_inferior): Remove declaration.
1159 (user_visible_resume_target): New declaration.
1160 (get_last_target_status, set_last_target_status): New
1161 process_stratum_target parameter.
1162 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
1163 process_stratum_target parameter, and use it.
1164 (clear_inline_frame_state (thread_info*)): New.
1165 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
1166 process_stratum_target parameter.
1167 (clear_inline_frame_state (thread_info*)): Declare.
1168 * linux-fork.c (delete_checkpoint_command): Pass target down to
1169 find_thread_ptid.
1170 (checkpoint_command): Adjust.
1171 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
1172 instead of just tweaking inferior_ptid.
1173 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
1174 (exit_lwp): Pass target down to find_thread_ptid.
1175 (attach_proc_task_lwp_callback): Pass target down to
1176 add_thread/set_running/set_executing.
1177 (linux_nat_target::attach): Pass target down to
1178 thread_change_ptid.
1179 (get_detach_signal): Pass target down to find_thread_ptid.
1180 Consider last target status's target.
1181 (linux_resume_one_lwp_throw, resume_lwp)
1182 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
1183 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
1184 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
1185 (linux_nat_target::async_wait_fd): New.
1186 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
1187 target down.
1188 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
1189 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
1190 * linux-thread-db.c (struct thread_db_info::process_target): New
1191 field.
1192 (add_thread_db_info): Save target.
1193 (get_thread_db_info): New process_stratum_target parameter. Also
1194 match target.
1195 (delete_thread_db_info): New process_stratum_target parameter.
1196 Also match target.
1197 (thread_from_lwp): Adjust to pass down target.
1198 (thread_db_notice_clone): Pass down target.
1199 (check_thread_db_callback): Pass down target.
1200 (try_thread_db_load_1): Always push the thread_db target.
1201 (try_thread_db_load, record_thread): Pass target down.
1202 (thread_db_target::detach): Pass target down. Always unpush the
1203 thread_db target.
1204 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
1205 target down. Always unpush the thread_db target.
1206 (find_new_threads_callback, thread_db_find_new_threads_2)
1207 (thread_db_target::update_thread_list): Pass target down.
1208 (thread_db_target::pid_to_str): Pass current inferior down.
1209 (thread_db_target::get_thread_local_address): Pass target down.
1210 (thread_db_target::resume, maintenance_check_libthread_db): Pass
1211 target down.
1212 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
1213 * procfs.c (procfs_target::procfs_init_inferior): Declare.
1214 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
1215 (procfs_init_inferior): Rename to ...
1216 (procfs_target::procfs_init_inferior): ... this and adjust.
1217 (procfs_target::create_inferior, procfs_notice_thread)
1218 (procfs_do_thread_registers): Adjust.
1219 * ppc-fbsd-tdep.c: Include "inferior.h".
1220 (ppcfbsd_get_thread_local_address): Pass down target.
1221 * proc-service.c (ps_xfer_memory): Switch current inferior and
1222 program space as well.
1223 (get_ps_regcache): Pass target down.
1224 * process-stratum-target.c
1225 (process_stratum_target::thread_address_space)
1226 (process_stratum_target::thread_architecture): Pass target down.
1227 * process-stratum-target.h
1228 (process_stratum_target::threads_executing): New field.
1229 (as_process_stratum_target): New.
1230 * ravenscar-thread.c
1231 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
1232 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
1233 down.
1234 * record-btrace.c (record_btrace_target::info_record): Adjust.
1235 (record_btrace_target::record_method)
1236 (record_btrace_target::record_is_replaying)
1237 (record_btrace_target::fetch_registers)
1238 (get_thread_current_frame_id, record_btrace_target::resume)
1239 (record_btrace_target::wait, record_btrace_target::stop): Pass
1240 target down.
1241 * record-full.c (record_full_wait_1): Switch to event thread.
1242 Pass target down.
1243 * regcache.c (regcache::regcache)
1244 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
1245 process_stratum_target parameter and handle it.
1246 (current_thread_target): New global.
1247 (get_thread_regcache): Add process_stratum_target parameter and
1248 handle it. Switch inferior before calling target method.
1249 (get_thread_regcache): Pass target down.
1250 (get_thread_regcache_for_ptid): Pass target down.
1251 (registers_changed_ptid): Add process_stratum_target parameter and
1252 handle it.
1253 (registers_changed_thread, registers_changed): Pass target down.
1254 (test_get_thread_arch_aspace_regcache): New.
1255 (current_regcache_test): Define a couple local test_target_ops
1256 instances and use them for testing.
1257 (readwrite_regcache): Pass process_stratum_target parameter.
1258 (cooked_read_test, cooked_write_test): Pass mock_target down.
1259 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
1260 (get_thread_arch_aspace_regcache): Add process_stratum_target
1261 parameter.
1262 (regcache::target): New method.
1263 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
1264 (regcache::registers_changed_ptid): Add process_stratum_target
1265 parameter.
1266 (regcache::m_target): New field.
1267 (registers_changed_ptid): Add process_stratum_target parameter.
1268 * remote.c (remote_state::supports_vCont_probed): New field.
1269 (remote_target::async_wait_fd): New method.
1270 (remote_unpush_and_throw): Add remote_target parameter.
1271 (get_current_remote_target): Adjust.
1272 (remote_target::remote_add_inferior): Push target.
1273 (remote_target::remote_add_thread)
1274 (remote_target::remote_notice_new_inferior)
1275 (get_remote_thread_info): Pass target down.
1276 (remote_target::update_thread_list): Skip threads of inferiors
1277 bound to other targets. (remote_target::close): Don't discard
1278 inferiors. (remote_target::add_current_inferior_and_thread)
1279 (remote_target::process_initial_stop_replies)
1280 (remote_target::start_remote)
1281 (remote_target::remote_serial_quit_handler): Pass down target.
1282 (remote_target::remote_unpush_target): New remote_target
1283 parameter. Unpush the target from all inferiors.
1284 (remote_target::remote_unpush_and_throw): New remote_target
1285 parameter. Pass it down.
1286 (remote_target::open_1): Check whether the current inferior has
1287 execution instead of checking whether any inferior is live. Pass
1288 target down.
1289 (remote_target::remote_detach_1): Pass down target. Use
1290 remote_unpush_target.
1291 (extended_remote_target::attach): Pass down target.
1292 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
1293 (remote_target::append_resumption): Pass down target.
1294 (remote_target::append_pending_thread_resumptions)
1295 (remote_target::remote_resume_with_hc, remote_target::resume)
1296 (remote_target::commit_resume): Pass down target.
1297 (remote_target::remote_stop_ns): Check supports_vCont_probed.
1298 (remote_target::interrupt_query)
1299 (remote_target::remove_new_fork_children)
1300 (remote_target::check_pending_events_prevent_wildcard_vcont)
1301 (remote_target::remote_parse_stop_reply)
1302 (remote_target::process_stop_reply): Pass down target.
1303 (first_remote_resumed_thread): New remote_target parameter. Pass
1304 it down.
1305 (remote_target::wait_as): Pass down target.
1306 (unpush_and_perror): New remote_target parameter. Pass it down.
1307 (remote_target::readchar, remote_target::remote_serial_write)
1308 (remote_target::getpkt_or_notif_sane_1)
1309 (remote_target::kill_new_fork_children, remote_target::kill): Pass
1310 down target.
1311 (remote_target::mourn_inferior): Pass down target. Use
1312 remote_unpush_target.
1313 (remote_target::core_of_thread)
1314 (remote_target::remote_btrace_maybe_reopen): Pass down target.
1315 (remote_target::pid_to_exec_file)
1316 (remote_target::thread_handle_to_thread_info): Pass down target.
1317 (remote_target::async_wait_fd): New.
1318 * riscv-fbsd-tdep.c: Include "inferior.h".
1319 (riscv_fbsd_get_thread_local_address): Pass down target.
1320 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
1321 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
1322 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
1323 Adjust.
1324 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
1325 * solib-svr4.c (enable_break): Pass down target.
1326 * spu-multiarch.c (parse_spufs_run): Pass down target.
1327 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
1328 * target-delegates.c: Regenerate.
1329 * target.c (g_target_stack): Delete.
1330 (current_top_target): Return the current inferior's top target.
1331 (target_has_execution_1): Refer to the passed-in inferior's top
1332 target.
1333 (target_supports_terminal_ours): Check whether the initial
1334 inferior was already created.
1335 (decref_target): New.
1336 (target_stack::push): Incref/decref the target.
1337 (push_target, push_target, unpush_target): Adjust.
1338 (target_stack::unpush): Defref target.
1339 (target_is_pushed): Return bool. Adjust to refer to the current
1340 inferior's target stack.
1341 (dispose_inferior): Delete, and inline parts ...
1342 (target_preopen): ... here. Only dispose of the current inferior.
1343 (target_detach): Hold strong target reference while detaching.
1344 Pass target down.
1345 (target_thread_name): Add assertion.
1346 (target_resume): Pass down target.
1347 (target_ops::beneath, find_target_at): Adjust to refer to the
1348 current inferior's target stack.
1349 (get_dummy_target): New.
1350 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
1351 has a thread running.
1352 (initialize_targets): Rename to ...
1353 (_initialize_target): ... this.
1354 * target.h: Include "gdbsupport/refcounted-object.h".
1355 (struct target_ops): Inherit refcounted_object.
1356 (target_ops::shortname, target_ops::longname): Make const.
1357 (target_ops::async_wait_fd): New method.
1358 (decref_target): Declare.
1359 (struct target_ops_ref_policy): New.
1360 (target_ops_ref): New typedef.
1361 (get_dummy_target): Declare function.
1362 (target_is_pushed): Return bool.
1363 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
1364 (all_matching_threads_iterator::all_matching_threads_iterator):
1365 Handle filter target.
1366 * thread-iter.h (struct all_matching_threads_iterator, struct
1367 all_matching_threads_range, class all_non_exited_threads_range):
1368 Filter by target too. Remove explicit.
1369 * thread.c (threads_executing): Delete.
1370 (inferior_thread): Pass down current inferior.
1371 (clear_thread_inferior_resources): Pass down thread pointer
1372 instead of ptid_t.
1373 (add_thread_silent, add_thread_with_info, add_thread): Add
1374 process_stratum_target parameter. Use it for thread and inferior
1375 searches.
1376 (is_current_thread): New.
1377 (thread_info::deletable): Use it.
1378 (find_thread_ptid, thread_count, in_thread_list)
1379 (thread_change_ptid, set_resumed, set_running): New
1380 process_stratum_target parameter. Pass it down.
1381 (set_executing): New process_stratum_target parameter. Pass it
1382 down. Adjust reference to 'threads_executing'.
1383 (threads_are_executing): New process_stratum_target parameter.
1384 Adjust reference to 'threads_executing'.
1385 (set_stop_requested, finish_thread_state): New
1386 process_stratum_target parameter. Pass it down.
1387 (switch_to_thread): Also match inferior.
1388 (switch_to_thread): New process_stratum_target parameter. Pass it
1389 down.
1390 (update_threads_executing): Reimplement.
1391 * top.c (quit_force): Pop targets from all inferior.
1392 (gdb_init): Don't call initialize_targets.
1393 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
1394 Declare.
1395 (windows_add_thread, windows_delete_thread): Adjust.
1396 (get_windows_debug_event): Rename to ...
1397 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
1398 * tracefile-tfile.c (tfile_target_open): Pass down target.
1399 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
1400 Forward declare.
1401 (switch_to_thread): Add process_stratum_target parameter.
1402 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
1403 parameter. Use it.
1404 (mi_on_resume): Pass target down.
1405 * nat/fork-inferior.c (startup_inferior): Add
1406 process_stratum_target parameter. Pass it down.
1407 * nat/fork-inferior.h (startup_inferior): Add
1408 process_stratum_target parameter.
1409 * python/py-threadevent.c (py_get_event_thread): Pass target down.
1410
75c6c844
PA
14112020-01-10 Pedro Alves <palves@redhat.com>
1412
1413 * remote.c (remote_target::start_remote): Don't set inferior_ptid
1414 directly. Instead find the first thread in the thread list and
1415 use switch_to_thread.
1416
78f2c40a
PA
14172020-01-10 Pedro Alves <palves@redhat.com>
1418
1419 * remote.c (remote_target::remote_add_inferior): Don't bind a
1420 process to the current inferior if the current inferior is already
1421 bound to a process.
1422
e7af6c70
TBA
14232020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1424 Pedro Alves <palves@redhat.com>
1425
1426 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
1427 If no process is specified, return null_ptid instead of
1428 inferior_ptid.
1429 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
1430 TARGET_WAITKIND_SIGNALLED with no pid.
1431
31ba933e
PA
14322020-01-10 Pedro Alves <palves@redhat.com>
1433
1434 * remote.c (first_remote_resumed_thread): New.
1435 (remote_target::wait_as): Use it as default event_ptid instead of
1436 inferior_ptid.
1437
735fc2ca
PA
14382020-01-10 Pedro Alves <palves@redhat.com>
1439
1440 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
1441
c17e02e1
PA
14422020-01-10 Pedro Alves <palves@redhat.com>
1443
1444 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
1445 not -1.
1446
ab1ddbcf
PA
14472020-01-10 Pedro Alves <palves@redhat.com>
1448
1449 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
1450 ptid to get_last_target_status.
1451 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
1452 ptid to get_last_target_status.
1453 * infcmd.c (continue_command): Don't pass a target_waitstatus to
1454 get_last_target_status.
1455 (info_program_command): Don't pass a target_waitstatus to
1456 get_last_target_status.
1457 * infrun.c (init_wait_for_inferior): Use
1458 nullify_last_target_wait_ptid.
1459 (get_last_target_status): Handle nullptr arguments.
1460 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
1461 (print_stop_event): Don't pass a ptid to get_last_target_status.
1462 (normal_stop): Don't pass a ptid to get_last_target_status.
1463 * infrun.h (get_last_target_status, set_last_target_status): Move
1464 comments here and update.
1465 (nullify_last_target_wait_ptid): Declare.
1466 * linux-fork.c (fork_load_infrun_state): Remove local extern
1467 declaration of nullify_last_target_wait_ptid.
1468 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
1469 to get_last_target_status.
1470
f3f8ece4
PA
14712020-01-10 Pedro Alves <palves@redhat.com>
1472
1473 * gdbthread.h (scoped_restore_current_thread)
1474 <dont_restore, restore, m_dont_restore>: Declare.
1475 * thread.c (thread_alive): Add assertion. Return bool.
1476 (switch_to_thread_if_alive): New.
1477 (prune_threads): Switch inferior/thread.
1478 (print_thread_info_1): Switch thread before calling target methods.
1479 (scoped_restore_current_thread::restore): New, factored out from
1480 ...
1481 (scoped_restore_current_thread::~scoped_restore_current_thread):
1482 ... this.
1483 (scoped_restore_current_thread::scoped_restore_current_thread):
1484 Add assertion.
1485 (thread_apply_all_command, thread_select): Use
1486 switch_to_thread_if_alive.
1487 * infrun.c (proceed, restart_threads, handle_signal_stop)
1488 (switch_back_to_stepped_thread): Switch current thread before
1489 calling target methods.
1490
db2d40f7
PA
14912020-01-10 Pedro Alves <palves@redhat.com>
1492
1493 * inferior.c (switch_to_inferior_no_thread): New function,
1494 factored out from ...
1495 (inferior_command): ... here.
1496 * inferior.h (switch_to_inferior_no_thread): Declare.
1497 * mi/mi-main.c (run_one_inferior): Use
1498 switch_to_inferior_no_thread.
1499
bd420a2d
PA
15002020-01-10 Pedro Alves <palves@redhat.com>
1501
1502 * infcmd.c (kill_command): Remove dead code.
1503
ddf5db90
PA
15042020-01-10 Pedro Alves <palves@redhat.com>
1505
1506 * remote.c (remote_target::mourn_inferior): No longer check
1507 whether the target is running.
1508
5018ce90
PA
15092020-01-10 Pedro Alves <palves@redhat.com>
1510
1511 * corelow.c (core_target::has_execution): Change parameter type to
1512 inferior pointer.
1513 * inferior.c (number_of_live_inferiors): Use
1514 inferior::has_execution instead of target_has_execution_1.
1515 * inferior.h (inferior::has_execution): New.
1516 * linux-thread-db.c (thread_db_target::update_thread_list): Use
1517 inferior::has_execution instead of target_has_execution_1.
1518 * process-stratum-target.c
1519 (process_stratum_target::has_execution): Change parameter type to
1520 inferior pointer. Check the inferior's PID instead of
1521 inferior_ptid.
1522 * process-stratum-target.h
1523 (process_stratum_target::has_execution): Change parameter type to
1524 inferior pointer.
1525 * record-full.c (record_full_core_target::has_execution): Change
1526 parameter type to inferior pointer.
1527 * target.c (target_has_execution_1): Change parameter type to
1528 inferior pointer.
1529 (target_has_execution_current): Adjust.
1530 * target.h (target_ops::has_execution): Change parameter type to
1531 inferior pointer.
1532 (target_has_execution_1): Change parameter type to inferior
1533 pointer. Change return type to bool.
1534 * tracefile.h (tracefile_target::has_execution): Change parameter
1535 type to inferior pointer.
1536
74375d18
PA
15372020-01-10 Pedro Alves <palves@redhat.com>
1538
1539 * exceptions.c (print_flush): Remove current_top_target() check.
1540
acdf84a6
PA
15412020-01-10 Pedro Alves <palves@redhat.com>
1542
1543 * remote.c (show_remote_exec_file): Show the current inferior's
1544 exec-file instead of the command variable's value.
1545
ec506636
PA
15462020-01-10 Pedro Alves <palves@redhat.com>
1547
1548 * record-full.c (record_full_resume_ptid): New global.
1549 (record_full_target::resume): Set it.
1550 (record_full_wait_1): Use record_full_resume_ptid instead of
1551 inferior_ptid.
1552
873657b9
PA
15532020-01-10 Pedro Alves <palves@redhat.com>
1554
1555 * gdbthread.h (scoped_restore_current_thread)
1556 <dont_restore, restore, m_dont_restore>: Declare.
1557 * thread.c (thread_alive): Add assertion. Return bool.
1558 (switch_to_thread_if_alive): New.
1559 (prune_threads): Switch inferior/thread.
1560 (print_thread_info_1): Switch thread before calling target methods.
1561 (scoped_restore_current_thread::restore): New, factored out from
1562 ...
1563 (scoped_restore_current_thread::~scoped_restore_current_thread):
1564 ... this.
1565 (scoped_restore_current_thread::scoped_restore_current_thread):
1566 Add assertion.
1567 (thread_apply_all_command, thread_select): Use
1568 switch_to_thread_if_alive.
1569
7f0ae84c
GB
15702020-01-10 George Barrett <bob@bob131.so>
1571
1572 * stap-probe.c (stap_modify_semaphore): Don't check for null
1573 semaphores.
1574 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
1575 for null semaphores.
1576
f5a7c406
AB
15772020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
1578
1579 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
1580 all source windows, and maintain horizontal scroll status while
1581 doing so.
1582
9ae6bf64
TT
15832020-01-09 Tom Tromey <tom@tromey.com>
1584
1585 PR tui/18932:
1586 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
1587 update_source_window, not print_source_lines.
1588
b2efe70c
AB
15892020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
1590
1591 * tui/tui.c (tui_enable): Register tui hooks after calling
1592 tui_display_main.
1593
5f23a082
CB
15942020-01-09 Christian Biesinger <cbiesinger@google.com>
1595
1596 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
1597
3061113b
SM
15982020-01-08 Simon Marchi <simon.marchi@efficios.com>
1599
1600 * thread.c (print_thread_info_1): Fix indentation.
1601
57d75002
CB
16022020-01-09 Christian Biesinger <cbiesinger@google.com>
1603
1604 * symtab.c (general_symbol_info::compute_and_set_names): Move the
1605 unique_xmalloc_ptr outside the if to always free the demangled name.
1606
6a053cb1
TT
16072020-01-08 Tom Tromey <tromey@adacore.com>
1608
1609 * xcoffread.c (enter_line_range, read_xcoff_symtab)
1610 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
1611 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
1612 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
1613 Remove.
1614 (section_offsets): New typedef.
1615 * symtab.c (fixup_section, get_msymbol_address): Update.
1616 * symmisc.c (dump_msymbols): Update.
1617 * symfile.h (relative_addr_info_to_section_offsets)
1618 (symfile_map_offsets_to_segments): Update.
1619 * symfile.c (build_section_addr_info_from_objfile)
1620 (init_objfile_sect_indices): Update.
1621 (struct place_section_arg): Change type of "offsets".
1622 (place_section): Update.
1623 (relative_addr_info_to_section_offsets): Change type of
1624 "section_offsets". Remove "num_sections" parameter.
1625 (default_symfile_offsets, syms_from_objfile_1)
1626 (set_objfile_default_section_offset): Update.
1627 (reread_symbols): No need to preserve section offsets by hand.
1628 (symfile_map_offsets_to_segments): Change type of "offsets".
1629 * stap-probe.c (relocate_address): Update.
1630 * stabsread.h (process_one_symbol): Update.
1631 * solib-target.c (struct lm_info_target) <offsets>: Change type.
1632 (solib_target_relocate_section_addresses): Update.
1633 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
1634 Update.
1635 * solib-frv.c (frv_relocate_main_executable): Update.
1636 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
1637 * solib-aix.c (solib_aix_get_section_offsets): Change return
1638 type.
1639 (solib_aix_solib_create_inferior_hook): Update.
1640 * remote.c (remote_target::get_offsets): Update.
1641 * psymtab.c (find_pc_sect_psymtab): Update.
1642 * psympriv.h (struct partial_symbol) <address, text_low,
1643 text_high>: Update.
1644 * objfiles.h (obj_section_offset): Update.
1645 (struct objfile) <section_offsets>: Change type.
1646 <num_sections>: Remove.
1647 (objfile_relocate): Update.
1648 * objfiles.c (entry_point_address_query): Update
1649 (relocate_one_symbol): Change type of "section_offsets".
1650 (objfile_relocate1, objfile_relocate1): Change type of
1651 "new_offsets".
1652 (objfile_rebase1): Update.
1653 * mipsread.c (mipscoff_symfile_read): Update.
1654 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
1655 parameter.
1656 * mdebugread.c (parse_symbol): Change type of "section_offsets".
1657 (parse_external, psymtab_to_symtab_1): Update.
1658 * machoread.c (macho_symfile_offsets): Update.
1659 * ia64-tdep.c (ia64_find_unwind_table): Update.
1660 * hppa-tdep.c (read_unwind_info): Update.
1661 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
1662 * dwarf2read.c (create_addrmap_from_index)
1663 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
1664 (process_psymtab_comp_unit_reader, add_partial_symbol)
1665 (add_partial_subprogram, process_full_comp_unit)
1666 (read_file_scope, read_func_scope, read_lexical_block_scope)
1667 (read_call_site_scope, dwarf2_rnglists_process)
1668 (dwarf2_ranges_process, dwarf2_ranges_read)
1669 (dwarf_decode_lines_1, var_decode_location, new_symbol)
1670 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
1671 Update.
1672 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
1673 Update.
1674 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
1675 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
1676 (process_one_symbol): Change type of "section_offsets".
1677 * ctfread.c (get_objfile_text_range): Update.
1678 * coffread.c (coff_symtab_read, enter_linenos)
1679 (process_coff_symbol): Update.
1680 * coff-pe-read.c (add_pe_forwarded_sym): Update.
1681 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
1682
456e800a
TT
16832020-01-08 Tom Tromey <tromey@adacore.com>
1684
1685 * dwarf2read.c (parse_macro_definition): Use std::string.
1686 (parse_macro_definition): Likewise.
1687
6dfa2fc2
TT
16882020-01-08 Tom Tromey <tromey@adacore.com>
1689
1690 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
1691 (ATTR_ALLOC_CHUNK): Remove.
1692
421d1616
TT
16932020-01-08 Tom Tromey <tromey@adacore.com>
1694
1695 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
1696
43816ebc
TT
16972020-01-08 Tom Tromey <tromey@adacore.com>
1698
1699 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
1700 (dwarf2_compute_name, open_dwo_file): Likewise.
1701 (process_enumeration_scope): Use std::vector.
1702 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
1703 (partial_die_info::fixup, dwarf2_start_subfile)
1704 (guess_full_die_structure_name, dwarf2_name): Likewise.
1705 (determine_prefix): Update.
1706 (guess_full_die_structure_name): Make return type const.
1707 (partial_die_full_name): Return unique_xmalloc_ptr.
1708 (DW_FIELD_ALLOC_CHUNK): Remove.
1709
4212d509
TT
17102020-01-07 Tom Tromey <tromey@adacore.com>
1711
1712 PR build/24937:
1713 * stap-probe.c (class stap_static_probe_ops): Add constructor.
1714
06a6207a
JT
17152020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
1716
1717 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
1718
153d79c4
AB
17192020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
1720
1721 * stack.c (print_frame_info): Move disassemble_next_line code
1722 inside source_print block.
1723
66182876
EZ
17242020-01-06 Eli Zaretskii <eliz@gnu.org>
1725
1726 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
1727 gdb/signals.h, as we are now using native signal symbols.
1728
cbfa8581
SV
17292020-01-06 Shahab Vahedi <shahab@synopsys.com>
1730
1731 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
1732 overflow by an early check of content vs threshold.
1733 * tui/tui-source.c (tui_source_window::line_is_displayed):
1734 Likewise.
1735
3f602821
EZ
17362020-01-06 Eli Zaretskii <eliz@gnu.org>
1737
1738 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
1739
a08c904d
JT
17402020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
1741
1742 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
1743 export table if no section contains it's RVA.
1744
89a65580
EZ
17452020-01-06 Eli Zaretskii <eliz@gnu.org>
1746
1747 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
1748
8b7fcda2
HD
17492020-01-06 Hannes Domani <ssbssa@yahoo.de>
1750
1751 * source.c (print_source_lines_base): Set last_line_listed.
1752
a61b4f69
SV
17532020-01-06 Shahab Vahedi <shahab@synopsys.com>
1754
1755 * tui/tui-disasm.c: Remove trailing spaces.
1756
559e7e50
EZ
17572020-01-06 Eli Zaretskii <eliz@gnu.org>
1758 Pedro Alves <palves@redhat.com>
1759
1760 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
1761 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
1762 (windows_gdb_signal_to_target): New function, uses the above
1763 enumeration to convert GDB internal signal codes to equivalent
1764 Windows codes.
1765 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
1766 * windows-nat.c: Include "gdb_wait.h".
1767 (get_windows_debug_event): Extract the fatal exception from the
1768 exit status and convert to the equivalent Posix signal number.
1769 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
1770 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
1771 * gdbsupport/gdb_wait.c: New file, implements
1772 windows_status_to_termsig.
1773 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
1774 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
1775
f2302a34
AB
17762020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
1777
1778 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
1779 show_layout.
1780
6a5206eb
LM
17812020-01-05 Luis Machado <luis.machado@linaro.org>
1782
1783 * aarch64-linux-nat.c
1784 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
1785 and bfd_mach_aarch64.
1786
6ec1d75e
PW
17872020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1788
1789 * ui-file.c (stdio_file::can_emit_style_escape)
1790 (tee_file::can_emit_style_escape): Ensure style is used also on
1791 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
1792 to gdb_stdout.
1793 * main.c (set_gdb_data_directory): Use file style to output the
1794 warning that the given pathname is not a directory.
1795 * top.c (show_history_filename, gdb_safe_append_history)
1796 (show_gdb_datadir): Use file style.
1797
44f81a76
HD
17982020-01-03 Hannes Domani <ssbssa@yahoo.de>
1799
1800 * solib-target.c (struct lm_info_target):
1801 Change offsets to be a unique_xmalloc_ptr.
1802 (solib_target_relocate_section_addresses): Update.
1803
25057eb0
HD
18042020-01-03 Hannes Domani <ssbssa@yahoo.de>
1805
1806 * windows-nat.c (windows_clear_solib): Free so_list linked list.
1807
6e2118f5
BE
18082020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
1809
1810 * MAINTAINERS (Write After Approval): Add myself.
1811
8133c7dc
LM
18122020-01-02 Luis Machado <luis.machado@linaro.org>
1813
1814 * proc-service.c (get_ps_regcache): Remove reference to obsolete
1815 Cell BE architecture.
1816 * target.h (struct target_ops) <thread_architecture>: Likewise.
1817
48189bec
HD
18182020-01-01 Hannes Domani <ssbssa@yahoo.de>
1819
1820 * Makefile.in: Use INSTALL_PROGRAM_ENV.
1821
ead1063b
HD
18222020-01-01 Hannes Domani <ssbssa@yahoo.de>
1823
1824 * MAINTAINERS (Write After Approval): Add myself.
1825
e5d78223
JB
18262020-01-01 Joel Brobecker <brobecker@adacore.com>
1827
1828 * gdbarch.sh: Update copyright year range of generated files.
1829
b811d2c2
JB
18302020-01-01 Joel Brobecker <brobecker@adacore.com>
1831
1832 Update copyright year range in all GDB files.
1833
5f4def5c
JB
18342020-01-01 Joel Brobecker <brobecker@adacore.com>
1835
1836 * copyright.py: Convert to Python 3.
1837
51fd4002
JB
18382020-01-01 Joel Brobecker <brobecker@adacore.com>
1839
1840 * copyright.py: Adapt after move of gnulib directory from gdb
1841 directory to toplevel directory.
1842
5fb651f2
JB
18432020-01-01 Joel Brobecker <brobecker@adacore.com>
1844
1845 * copyright.py (main): Exit if run from the wrong directory.
1846
5dd8bf88
JB
18472020-01-01 Joel Brobecker <brobecker@adacore.com>
1848
1849 * top.c (print_gdb_version): Change copyright year to 2020.
1850
9f71dacb 18512020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 1852
9f71dacb 1853 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 1854
9f71dacb 1855For older changes see ChangeLog-2019.
c906108c
SS
1856\f
1857Local Variables:
1858mode: change-log
1859left-margin: 8
1860fill-column: 74
1861version-control: never
57da7796 1862coding: utf-8
c906108c 1863End: