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