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