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