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