]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Preserve selected thread in all-stop w/ background execution
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
873657b9
PA
12020-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
7f0ae84c
GB
182020-01-10 George Barrett <bob@bob131.so>
19
20 * stap-probe.c (stap_modify_semaphore): Don't check for null
21 semaphores.
22 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
23 for null semaphores.
24
f5a7c406
AB
252020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
26
27 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
28 all source windows, and maintain horizontal scroll status while
29 doing so.
30
9ae6bf64
TT
312020-01-09 Tom Tromey <tom@tromey.com>
32
33 PR tui/18932:
34 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
35 update_source_window, not print_source_lines.
36
b2efe70c
AB
372020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
38
39 * tui/tui.c (tui_enable): Register tui hooks after calling
40 tui_display_main.
41
5f23a082
CB
422020-01-09 Christian Biesinger <cbiesinger@google.com>
43
44 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
45
3061113b
SM
462020-01-08 Simon Marchi <simon.marchi@efficios.com>
47
48 * thread.c (print_thread_info_1): Fix indentation.
49
57d75002
CB
502020-01-09 Christian Biesinger <cbiesinger@google.com>
51
52 * symtab.c (general_symbol_info::compute_and_set_names): Move the
53 unique_xmalloc_ptr outside the if to always free the demangled name.
54
6a053cb1
TT
552020-01-08 Tom Tromey <tromey@adacore.com>
56
57 * xcoffread.c (enter_line_range, read_xcoff_symtab)
58 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
59 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
60 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
61 Remove.
62 (section_offsets): New typedef.
63 * symtab.c (fixup_section, get_msymbol_address): Update.
64 * symmisc.c (dump_msymbols): Update.
65 * symfile.h (relative_addr_info_to_section_offsets)
66 (symfile_map_offsets_to_segments): Update.
67 * symfile.c (build_section_addr_info_from_objfile)
68 (init_objfile_sect_indices): Update.
69 (struct place_section_arg): Change type of "offsets".
70 (place_section): Update.
71 (relative_addr_info_to_section_offsets): Change type of
72 "section_offsets". Remove "num_sections" parameter.
73 (default_symfile_offsets, syms_from_objfile_1)
74 (set_objfile_default_section_offset): Update.
75 (reread_symbols): No need to preserve section offsets by hand.
76 (symfile_map_offsets_to_segments): Change type of "offsets".
77 * stap-probe.c (relocate_address): Update.
78 * stabsread.h (process_one_symbol): Update.
79 * solib-target.c (struct lm_info_target) <offsets>: Change type.
80 (solib_target_relocate_section_addresses): Update.
81 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
82 Update.
83 * solib-frv.c (frv_relocate_main_executable): Update.
84 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
85 * solib-aix.c (solib_aix_get_section_offsets): Change return
86 type.
87 (solib_aix_solib_create_inferior_hook): Update.
88 * remote.c (remote_target::get_offsets): Update.
89 * psymtab.c (find_pc_sect_psymtab): Update.
90 * psympriv.h (struct partial_symbol) <address, text_low,
91 text_high>: Update.
92 * objfiles.h (obj_section_offset): Update.
93 (struct objfile) <section_offsets>: Change type.
94 <num_sections>: Remove.
95 (objfile_relocate): Update.
96 * objfiles.c (entry_point_address_query): Update
97 (relocate_one_symbol): Change type of "section_offsets".
98 (objfile_relocate1, objfile_relocate1): Change type of
99 "new_offsets".
100 (objfile_rebase1): Update.
101 * mipsread.c (mipscoff_symfile_read): Update.
102 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
103 parameter.
104 * mdebugread.c (parse_symbol): Change type of "section_offsets".
105 (parse_external, psymtab_to_symtab_1): Update.
106 * machoread.c (macho_symfile_offsets): Update.
107 * ia64-tdep.c (ia64_find_unwind_table): Update.
108 * hppa-tdep.c (read_unwind_info): Update.
109 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
110 * dwarf2read.c (create_addrmap_from_index)
111 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
112 (process_psymtab_comp_unit_reader, add_partial_symbol)
113 (add_partial_subprogram, process_full_comp_unit)
114 (read_file_scope, read_func_scope, read_lexical_block_scope)
115 (read_call_site_scope, dwarf2_rnglists_process)
116 (dwarf2_ranges_process, dwarf2_ranges_read)
117 (dwarf_decode_lines_1, var_decode_location, new_symbol)
118 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
119 Update.
120 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
121 Update.
122 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
123 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
124 (process_one_symbol): Change type of "section_offsets".
125 * ctfread.c (get_objfile_text_range): Update.
126 * coffread.c (coff_symtab_read, enter_linenos)
127 (process_coff_symbol): Update.
128 * coff-pe-read.c (add_pe_forwarded_sym): Update.
129 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
130
456e800a
TT
1312020-01-08 Tom Tromey <tromey@adacore.com>
132
133 * dwarf2read.c (parse_macro_definition): Use std::string.
134 (parse_macro_definition): Likewise.
135
6dfa2fc2
TT
1362020-01-08 Tom Tromey <tromey@adacore.com>
137
138 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
139 (ATTR_ALLOC_CHUNK): Remove.
140
421d1616
TT
1412020-01-08 Tom Tromey <tromey@adacore.com>
142
143 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
144
43816ebc
TT
1452020-01-08 Tom Tromey <tromey@adacore.com>
146
147 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
148 (dwarf2_compute_name, open_dwo_file): Likewise.
149 (process_enumeration_scope): Use std::vector.
150 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
151 (partial_die_info::fixup, dwarf2_start_subfile)
152 (guess_full_die_structure_name, dwarf2_name): Likewise.
153 (determine_prefix): Update.
154 (guess_full_die_structure_name): Make return type const.
155 (partial_die_full_name): Return unique_xmalloc_ptr.
156 (DW_FIELD_ALLOC_CHUNK): Remove.
157
4212d509
TT
1582020-01-07 Tom Tromey <tromey@adacore.com>
159
160 PR build/24937:
161 * stap-probe.c (class stap_static_probe_ops): Add constructor.
162
06a6207a
JT
1632020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
164
165 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
166
153d79c4
AB
1672020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
168
169 * stack.c (print_frame_info): Move disassemble_next_line code
170 inside source_print block.
171
66182876
EZ
1722020-01-06 Eli Zaretskii <eliz@gnu.org>
173
174 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
175 gdb/signals.h, as we are now using native signal symbols.
176
cbfa8581
SV
1772020-01-06 Shahab Vahedi <shahab@synopsys.com>
178
179 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
180 overflow by an early check of content vs threshold.
181 * tui/tui-source.c (tui_source_window::line_is_displayed):
182 Likewise.
183
3f602821
EZ
1842020-01-06 Eli Zaretskii <eliz@gnu.org>
185
186 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
187
a08c904d
JT
1882020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
189
190 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
191 export table if no section contains it's RVA.
192
89a65580
EZ
1932020-01-06 Eli Zaretskii <eliz@gnu.org>
194
195 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
196
8b7fcda2
HD
1972020-01-06 Hannes Domani <ssbssa@yahoo.de>
198
199 * source.c (print_source_lines_base): Set last_line_listed.
200
a61b4f69
SV
2012020-01-06 Shahab Vahedi <shahab@synopsys.com>
202
203 * tui/tui-disasm.c: Remove trailing spaces.
204
559e7e50
EZ
2052020-01-06 Eli Zaretskii <eliz@gnu.org>
206 Pedro Alves <palves@redhat.com>
207
208 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
209 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
210 (windows_gdb_signal_to_target): New function, uses the above
211 enumeration to convert GDB internal signal codes to equivalent
212 Windows codes.
213 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
214 * windows-nat.c: Include "gdb_wait.h".
215 (get_windows_debug_event): Extract the fatal exception from the
216 exit status and convert to the equivalent Posix signal number.
217 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
218 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
219 * gdbsupport/gdb_wait.c: New file, implements
220 windows_status_to_termsig.
221 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
222 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
223
f2302a34
AB
2242020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
225
226 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
227 show_layout.
228
6a5206eb
LM
2292020-01-05 Luis Machado <luis.machado@linaro.org>
230
231 * aarch64-linux-nat.c
232 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
233 and bfd_mach_aarch64.
234
6ec1d75e
PW
2352020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
236
237 * ui-file.c (stdio_file::can_emit_style_escape)
238 (tee_file::can_emit_style_escape): Ensure style is used also on
239 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
240 to gdb_stdout.
241 * main.c (set_gdb_data_directory): Use file style to output the
242 warning that the given pathname is not a directory.
243 * top.c (show_history_filename, gdb_safe_append_history)
244 (show_gdb_datadir): Use file style.
245
44f81a76
HD
2462020-01-03 Hannes Domani <ssbssa@yahoo.de>
247
248 * solib-target.c (struct lm_info_target):
249 Change offsets to be a unique_xmalloc_ptr.
250 (solib_target_relocate_section_addresses): Update.
251
25057eb0
HD
2522020-01-03 Hannes Domani <ssbssa@yahoo.de>
253
254 * windows-nat.c (windows_clear_solib): Free so_list linked list.
255
6e2118f5
BE
2562020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
257
258 * MAINTAINERS (Write After Approval): Add myself.
259
8133c7dc
LM
2602020-01-02 Luis Machado <luis.machado@linaro.org>
261
262 * proc-service.c (get_ps_regcache): Remove reference to obsolete
263 Cell BE architecture.
264 * target.h (struct target_ops) <thread_architecture>: Likewise.
265
48189bec
HD
2662020-01-01 Hannes Domani <ssbssa@yahoo.de>
267
268 * Makefile.in: Use INSTALL_PROGRAM_ENV.
269
ead1063b
HD
2702020-01-01 Hannes Domani <ssbssa@yahoo.de>
271
272 * MAINTAINERS (Write After Approval): Add myself.
273
e5d78223
JB
2742020-01-01 Joel Brobecker <brobecker@adacore.com>
275
276 * gdbarch.sh: Update copyright year range of generated files.
277
b811d2c2
JB
2782020-01-01 Joel Brobecker <brobecker@adacore.com>
279
280 Update copyright year range in all GDB files.
281
5f4def5c
JB
2822020-01-01 Joel Brobecker <brobecker@adacore.com>
283
284 * copyright.py: Convert to Python 3.
285
51fd4002
JB
2862020-01-01 Joel Brobecker <brobecker@adacore.com>
287
288 * copyright.py: Adapt after move of gnulib directory from gdb
289 directory to toplevel directory.
290
5fb651f2
JB
2912020-01-01 Joel Brobecker <brobecker@adacore.com>
292
293 * copyright.py (main): Exit if run from the wrong directory.
294
5dd8bf88
JB
2952020-01-01 Joel Brobecker <brobecker@adacore.com>
296
297 * top.c (print_gdb_version): Change copyright year to 2020.
298
9f71dacb 2992020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 300
9f71dacb 301 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 302
9f71dacb 303For older changes see ChangeLog-2019.
c906108c
SS
304\f
305Local Variables:
306mode: change-log
307left-margin: 8
308fill-column: 74
309version-control: never
57da7796 310coding: utf-8
c906108c 311End: