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