Use all_non_exited_inferiors in infrun.c
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
735fc2ca
PA
12020-01-10 Pedro Alves <palves@redhat.com>
2
3 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
4
c17e02e1
PA
52020-01-10 Pedro Alves <palves@redhat.com>
6
7 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
8 not -1.
9
ab1ddbcf
PA
102020-01-10 Pedro Alves <palves@redhat.com>
11
12 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13 ptid to get_last_target_status.
14 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
15 ptid to get_last_target_status.
16 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17 get_last_target_status.
18 (info_program_command): Don't pass a target_waitstatus to
19 get_last_target_status.
20 * infrun.c (init_wait_for_inferior): Use
21 nullify_last_target_wait_ptid.
22 (get_last_target_status): Handle nullptr arguments.
23 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
24 (print_stop_event): Don't pass a ptid to get_last_target_status.
25 (normal_stop): Don't pass a ptid to get_last_target_status.
26 * infrun.h (get_last_target_status, set_last_target_status): Move
27 comments here and update.
28 (nullify_last_target_wait_ptid): Declare.
29 * linux-fork.c (fork_load_infrun_state): Remove local extern
30 declaration of nullify_last_target_wait_ptid.
31 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
32 to get_last_target_status.
33
f3f8ece4
PA
342020-01-10 Pedro Alves <palves@redhat.com>
35
36 * gdbthread.h (scoped_restore_current_thread)
37 <dont_restore, restore, m_dont_restore>: Declare.
38 * thread.c (thread_alive): Add assertion. Return bool.
39 (switch_to_thread_if_alive): New.
40 (prune_threads): Switch inferior/thread.
41 (print_thread_info_1): Switch thread before calling target methods.
42 (scoped_restore_current_thread::restore): New, factored out from
43 ...
44 (scoped_restore_current_thread::~scoped_restore_current_thread):
45 ... this.
46 (scoped_restore_current_thread::scoped_restore_current_thread):
47 Add assertion.
48 (thread_apply_all_command, thread_select): Use
49 switch_to_thread_if_alive.
50 * infrun.c (proceed, restart_threads, handle_signal_stop)
51 (switch_back_to_stepped_thread): Switch current thread before
52 calling target methods.
53
db2d40f7
PA
542020-01-10 Pedro Alves <palves@redhat.com>
55
56 * inferior.c (switch_to_inferior_no_thread): New function,
57 factored out from ...
58 (inferior_command): ... here.
59 * inferior.h (switch_to_inferior_no_thread): Declare.
60 * mi/mi-main.c (run_one_inferior): Use
61 switch_to_inferior_no_thread.
62
bd420a2d
PA
632020-01-10 Pedro Alves <palves@redhat.com>
64
65 * infcmd.c (kill_command): Remove dead code.
66
ddf5db90
PA
672020-01-10 Pedro Alves <palves@redhat.com>
68
69 * remote.c (remote_target::mourn_inferior): No longer check
70 whether the target is running.
71
5018ce90
PA
722020-01-10 Pedro Alves <palves@redhat.com>
73
74 * corelow.c (core_target::has_execution): Change parameter type to
75 inferior pointer.
76 * inferior.c (number_of_live_inferiors): Use
77 inferior::has_execution instead of target_has_execution_1.
78 * inferior.h (inferior::has_execution): New.
79 * linux-thread-db.c (thread_db_target::update_thread_list): Use
80 inferior::has_execution instead of target_has_execution_1.
81 * process-stratum-target.c
82 (process_stratum_target::has_execution): Change parameter type to
83 inferior pointer. Check the inferior's PID instead of
84 inferior_ptid.
85 * process-stratum-target.h
86 (process_stratum_target::has_execution): Change parameter type to
87 inferior pointer.
88 * record-full.c (record_full_core_target::has_execution): Change
89 parameter type to inferior pointer.
90 * target.c (target_has_execution_1): Change parameter type to
91 inferior pointer.
92 (target_has_execution_current): Adjust.
93 * target.h (target_ops::has_execution): Change parameter type to
94 inferior pointer.
95 (target_has_execution_1): Change parameter type to inferior
96 pointer. Change return type to bool.
97 * tracefile.h (tracefile_target::has_execution): Change parameter
98 type to inferior pointer.
99
74375d18
PA
1002020-01-10 Pedro Alves <palves@redhat.com>
101
102 * exceptions.c (print_flush): Remove current_top_target() check.
103
acdf84a6
PA
1042020-01-10 Pedro Alves <palves@redhat.com>
105
106 * remote.c (show_remote_exec_file): Show the current inferior's
107 exec-file instead of the command variable's value.
108
ec506636
PA
1092020-01-10 Pedro Alves <palves@redhat.com>
110
111 * record-full.c (record_full_resume_ptid): New global.
112 (record_full_target::resume): Set it.
113 (record_full_wait_1): Use record_full_resume_ptid instead of
114 inferior_ptid.
115
873657b9
PA
1162020-01-10 Pedro Alves <palves@redhat.com>
117
118 * gdbthread.h (scoped_restore_current_thread)
119 <dont_restore, restore, m_dont_restore>: Declare.
120 * thread.c (thread_alive): Add assertion. Return bool.
121 (switch_to_thread_if_alive): New.
122 (prune_threads): Switch inferior/thread.
123 (print_thread_info_1): Switch thread before calling target methods.
124 (scoped_restore_current_thread::restore): New, factored out from
125 ...
126 (scoped_restore_current_thread::~scoped_restore_current_thread):
127 ... this.
128 (scoped_restore_current_thread::scoped_restore_current_thread):
129 Add assertion.
130 (thread_apply_all_command, thread_select): Use
131 switch_to_thread_if_alive.
132
7f0ae84c
GB
1332020-01-10 George Barrett <bob@bob131.so>
134
135 * stap-probe.c (stap_modify_semaphore): Don't check for null
136 semaphores.
137 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
138 for null semaphores.
139
f5a7c406
AB
1402020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
141
142 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
143 all source windows, and maintain horizontal scroll status while
144 doing so.
145
9ae6bf64
TT
1462020-01-09 Tom Tromey <tom@tromey.com>
147
148 PR tui/18932:
149 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
150 update_source_window, not print_source_lines.
151
b2efe70c
AB
1522020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
153
154 * tui/tui.c (tui_enable): Register tui hooks after calling
155 tui_display_main.
156
5f23a082
CB
1572020-01-09 Christian Biesinger <cbiesinger@google.com>
158
159 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
160
3061113b
SM
1612020-01-08 Simon Marchi <simon.marchi@efficios.com>
162
163 * thread.c (print_thread_info_1): Fix indentation.
164
57d75002
CB
1652020-01-09 Christian Biesinger <cbiesinger@google.com>
166
167 * symtab.c (general_symbol_info::compute_and_set_names): Move the
168 unique_xmalloc_ptr outside the if to always free the demangled name.
169
6a053cb1
TT
1702020-01-08 Tom Tromey <tromey@adacore.com>
171
172 * xcoffread.c (enter_line_range, read_xcoff_symtab)
173 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
174 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
175 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
176 Remove.
177 (section_offsets): New typedef.
178 * symtab.c (fixup_section, get_msymbol_address): Update.
179 * symmisc.c (dump_msymbols): Update.
180 * symfile.h (relative_addr_info_to_section_offsets)
181 (symfile_map_offsets_to_segments): Update.
182 * symfile.c (build_section_addr_info_from_objfile)
183 (init_objfile_sect_indices): Update.
184 (struct place_section_arg): Change type of "offsets".
185 (place_section): Update.
186 (relative_addr_info_to_section_offsets): Change type of
187 "section_offsets". Remove "num_sections" parameter.
188 (default_symfile_offsets, syms_from_objfile_1)
189 (set_objfile_default_section_offset): Update.
190 (reread_symbols): No need to preserve section offsets by hand.
191 (symfile_map_offsets_to_segments): Change type of "offsets".
192 * stap-probe.c (relocate_address): Update.
193 * stabsread.h (process_one_symbol): Update.
194 * solib-target.c (struct lm_info_target) <offsets>: Change type.
195 (solib_target_relocate_section_addresses): Update.
196 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
197 Update.
198 * solib-frv.c (frv_relocate_main_executable): Update.
199 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
200 * solib-aix.c (solib_aix_get_section_offsets): Change return
201 type.
202 (solib_aix_solib_create_inferior_hook): Update.
203 * remote.c (remote_target::get_offsets): Update.
204 * psymtab.c (find_pc_sect_psymtab): Update.
205 * psympriv.h (struct partial_symbol) <address, text_low,
206 text_high>: Update.
207 * objfiles.h (obj_section_offset): Update.
208 (struct objfile) <section_offsets>: Change type.
209 <num_sections>: Remove.
210 (objfile_relocate): Update.
211 * objfiles.c (entry_point_address_query): Update
212 (relocate_one_symbol): Change type of "section_offsets".
213 (objfile_relocate1, objfile_relocate1): Change type of
214 "new_offsets".
215 (objfile_rebase1): Update.
216 * mipsread.c (mipscoff_symfile_read): Update.
217 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
218 parameter.
219 * mdebugread.c (parse_symbol): Change type of "section_offsets".
220 (parse_external, psymtab_to_symtab_1): Update.
221 * machoread.c (macho_symfile_offsets): Update.
222 * ia64-tdep.c (ia64_find_unwind_table): Update.
223 * hppa-tdep.c (read_unwind_info): Update.
224 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
225 * dwarf2read.c (create_addrmap_from_index)
226 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
227 (process_psymtab_comp_unit_reader, add_partial_symbol)
228 (add_partial_subprogram, process_full_comp_unit)
229 (read_file_scope, read_func_scope, read_lexical_block_scope)
230 (read_call_site_scope, dwarf2_rnglists_process)
231 (dwarf2_ranges_process, dwarf2_ranges_read)
232 (dwarf_decode_lines_1, var_decode_location, new_symbol)
233 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
234 Update.
235 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
236 Update.
237 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
238 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
239 (process_one_symbol): Change type of "section_offsets".
240 * ctfread.c (get_objfile_text_range): Update.
241 * coffread.c (coff_symtab_read, enter_linenos)
242 (process_coff_symbol): Update.
243 * coff-pe-read.c (add_pe_forwarded_sym): Update.
244 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
245
456e800a
TT
2462020-01-08 Tom Tromey <tromey@adacore.com>
247
248 * dwarf2read.c (parse_macro_definition): Use std::string.
249 (parse_macro_definition): Likewise.
250
6dfa2fc2
TT
2512020-01-08 Tom Tromey <tromey@adacore.com>
252
253 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
254 (ATTR_ALLOC_CHUNK): Remove.
255
421d1616
TT
2562020-01-08 Tom Tromey <tromey@adacore.com>
257
258 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
259
43816ebc
TT
2602020-01-08 Tom Tromey <tromey@adacore.com>
261
262 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
263 (dwarf2_compute_name, open_dwo_file): Likewise.
264 (process_enumeration_scope): Use std::vector.
265 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
266 (partial_die_info::fixup, dwarf2_start_subfile)
267 (guess_full_die_structure_name, dwarf2_name): Likewise.
268 (determine_prefix): Update.
269 (guess_full_die_structure_name): Make return type const.
270 (partial_die_full_name): Return unique_xmalloc_ptr.
271 (DW_FIELD_ALLOC_CHUNK): Remove.
272
4212d509
TT
2732020-01-07 Tom Tromey <tromey@adacore.com>
274
275 PR build/24937:
276 * stap-probe.c (class stap_static_probe_ops): Add constructor.
277
06a6207a
JT
2782020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
279
280 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
281
153d79c4
AB
2822020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
283
284 * stack.c (print_frame_info): Move disassemble_next_line code
285 inside source_print block.
286
66182876
EZ
2872020-01-06 Eli Zaretskii <eliz@gnu.org>
288
289 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
290 gdb/signals.h, as we are now using native signal symbols.
291
cbfa8581
SV
2922020-01-06 Shahab Vahedi <shahab@synopsys.com>
293
294 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
295 overflow by an early check of content vs threshold.
296 * tui/tui-source.c (tui_source_window::line_is_displayed):
297 Likewise.
298
3f602821
EZ
2992020-01-06 Eli Zaretskii <eliz@gnu.org>
300
301 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
302
a08c904d
JT
3032020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
304
305 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
306 export table if no section contains it's RVA.
307
89a65580
EZ
3082020-01-06 Eli Zaretskii <eliz@gnu.org>
309
310 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
311
8b7fcda2
HD
3122020-01-06 Hannes Domani <ssbssa@yahoo.de>
313
314 * source.c (print_source_lines_base): Set last_line_listed.
315
a61b4f69
SV
3162020-01-06 Shahab Vahedi <shahab@synopsys.com>
317
318 * tui/tui-disasm.c: Remove trailing spaces.
319
559e7e50
EZ
3202020-01-06 Eli Zaretskii <eliz@gnu.org>
321 Pedro Alves <palves@redhat.com>
322
323 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
324 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
325 (windows_gdb_signal_to_target): New function, uses the above
326 enumeration to convert GDB internal signal codes to equivalent
327 Windows codes.
328 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
329 * windows-nat.c: Include "gdb_wait.h".
330 (get_windows_debug_event): Extract the fatal exception from the
331 exit status and convert to the equivalent Posix signal number.
332 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
333 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
334 * gdbsupport/gdb_wait.c: New file, implements
335 windows_status_to_termsig.
336 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
337 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
338
f2302a34
AB
3392020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
340
341 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
342 show_layout.
343
6a5206eb
LM
3442020-01-05 Luis Machado <luis.machado@linaro.org>
345
346 * aarch64-linux-nat.c
347 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
348 and bfd_mach_aarch64.
349
6ec1d75e
PW
3502020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
351
352 * ui-file.c (stdio_file::can_emit_style_escape)
353 (tee_file::can_emit_style_escape): Ensure style is used also on
354 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
355 to gdb_stdout.
356 * main.c (set_gdb_data_directory): Use file style to output the
357 warning that the given pathname is not a directory.
358 * top.c (show_history_filename, gdb_safe_append_history)
359 (show_gdb_datadir): Use file style.
360
44f81a76
HD
3612020-01-03 Hannes Domani <ssbssa@yahoo.de>
362
363 * solib-target.c (struct lm_info_target):
364 Change offsets to be a unique_xmalloc_ptr.
365 (solib_target_relocate_section_addresses): Update.
366
25057eb0
HD
3672020-01-03 Hannes Domani <ssbssa@yahoo.de>
368
369 * windows-nat.c (windows_clear_solib): Free so_list linked list.
370
6e2118f5
BE
3712020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
372
373 * MAINTAINERS (Write After Approval): Add myself.
374
8133c7dc
LM
3752020-01-02 Luis Machado <luis.machado@linaro.org>
376
377 * proc-service.c (get_ps_regcache): Remove reference to obsolete
378 Cell BE architecture.
379 * target.h (struct target_ops) <thread_architecture>: Likewise.
380
48189bec
HD
3812020-01-01 Hannes Domani <ssbssa@yahoo.de>
382
383 * Makefile.in: Use INSTALL_PROGRAM_ENV.
384
ead1063b
HD
3852020-01-01 Hannes Domani <ssbssa@yahoo.de>
386
387 * MAINTAINERS (Write After Approval): Add myself.
388
e5d78223
JB
3892020-01-01 Joel Brobecker <brobecker@adacore.com>
390
391 * gdbarch.sh: Update copyright year range of generated files.
392
b811d2c2
JB
3932020-01-01 Joel Brobecker <brobecker@adacore.com>
394
395 Update copyright year range in all GDB files.
396
5f4def5c
JB
3972020-01-01 Joel Brobecker <brobecker@adacore.com>
398
399 * copyright.py: Convert to Python 3.
400
51fd4002
JB
4012020-01-01 Joel Brobecker <brobecker@adacore.com>
402
403 * copyright.py: Adapt after move of gnulib directory from gdb
404 directory to toplevel directory.
405
5fb651f2
JB
4062020-01-01 Joel Brobecker <brobecker@adacore.com>
407
408 * copyright.py (main): Exit if run from the wrong directory.
409
5dd8bf88
JB
4102020-01-01 Joel Brobecker <brobecker@adacore.com>
411
412 * top.c (print_gdb_version): Change copyright year to 2020.
413
9f71dacb 4142020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 415
9f71dacb 416 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 417
9f71dacb 418For older changes see ChangeLog-2019.
c906108c
SS
419\f
420Local Variables:
421mode: change-log
422left-margin: 8
423fill-column: 74
424version-control: never
57da7796 425coding: utf-8
c906108c 426End:
This page took 2.443268 seconds and 4 git commands to generate.