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