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