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