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