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