X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2FChangeLog;h=49501dfd4f2edf52933d35ea0fccd62841114708;hb=c17e02e1b55b5e9cbdc6581f05bfec96dc8436f4;hp=1472cd4aabd028d1d71dcb14bd7244f54bacca18;hpb=421d1616230a78449dc2f5abb60f03d38b96c3cf;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1472cd4aab..49501dfd4f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,254 @@ +2020-01-10 Pedro Alves + + * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is + not -1. + +2020-01-10 Pedro Alves + + * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a + ptid to get_last_target_status. + * break-catch-syscall.c (print_it_catch_syscall): Don't pass a + ptid to get_last_target_status. + * infcmd.c (continue_command): Don't pass a target_waitstatus to + get_last_target_status. + (info_program_command): Don't pass a target_waitstatus to + get_last_target_status. + * infrun.c (init_wait_for_inferior): Use + nullify_last_target_wait_ptid. + (get_last_target_status): Handle nullptr arguments. + (nullify_last_target_wait_ptid): Clear target_last_waitstatus. + (print_stop_event): Don't pass a ptid to get_last_target_status. + (normal_stop): Don't pass a ptid to get_last_target_status. + * infrun.h (get_last_target_status, set_last_target_status): Move + comments here and update. + (nullify_last_target_wait_ptid): Declare. + * linux-fork.c (fork_load_infrun_state): Remove local extern + declaration of nullify_last_target_wait_ptid. + * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus + to get_last_target_status. + +2020-01-10 Pedro Alves + + * gdbthread.h (scoped_restore_current_thread) + : Declare. + * thread.c (thread_alive): Add assertion. Return bool. + (switch_to_thread_if_alive): New. + (prune_threads): Switch inferior/thread. + (print_thread_info_1): Switch thread before calling target methods. + (scoped_restore_current_thread::restore): New, factored out from + ... + (scoped_restore_current_thread::~scoped_restore_current_thread): + ... this. + (scoped_restore_current_thread::scoped_restore_current_thread): + Add assertion. + (thread_apply_all_command, thread_select): Use + switch_to_thread_if_alive. + * infrun.c (proceed, restart_threads, handle_signal_stop) + (switch_back_to_stepped_thread): Switch current thread before + calling target methods. + +2020-01-10 Pedro Alves + + * inferior.c (switch_to_inferior_no_thread): New function, + factored out from ... + (inferior_command): ... here. + * inferior.h (switch_to_inferior_no_thread): Declare. + * mi/mi-main.c (run_one_inferior): Use + switch_to_inferior_no_thread. + +2020-01-10 Pedro Alves + + * infcmd.c (kill_command): Remove dead code. + +2020-01-10 Pedro Alves + + * remote.c (remote_target::mourn_inferior): No longer check + whether the target is running. + +2020-01-10 Pedro Alves + + * corelow.c (core_target::has_execution): Change parameter type to + inferior pointer. + * inferior.c (number_of_live_inferiors): Use + inferior::has_execution instead of target_has_execution_1. + * inferior.h (inferior::has_execution): New. + * linux-thread-db.c (thread_db_target::update_thread_list): Use + inferior::has_execution instead of target_has_execution_1. + * process-stratum-target.c + (process_stratum_target::has_execution): Change parameter type to + inferior pointer. Check the inferior's PID instead of + inferior_ptid. + * process-stratum-target.h + (process_stratum_target::has_execution): Change parameter type to + inferior pointer. + * record-full.c (record_full_core_target::has_execution): Change + parameter type to inferior pointer. + * target.c (target_has_execution_1): Change parameter type to + inferior pointer. + (target_has_execution_current): Adjust. + * target.h (target_ops::has_execution): Change parameter type to + inferior pointer. + (target_has_execution_1): Change parameter type to inferior + pointer. Change return type to bool. + * tracefile.h (tracefile_target::has_execution): Change parameter + type to inferior pointer. + +2020-01-10 Pedro Alves + + * exceptions.c (print_flush): Remove current_top_target() check. + +2020-01-10 Pedro Alves + + * remote.c (show_remote_exec_file): Show the current inferior's + exec-file instead of the command variable's value. + +2020-01-10 Pedro Alves + + * record-full.c (record_full_resume_ptid): New global. + (record_full_target::resume): Set it. + (record_full_wait_1): Use record_full_resume_ptid instead of + inferior_ptid. + +2020-01-10 Pedro Alves + + * gdbthread.h (scoped_restore_current_thread) + : Declare. + * thread.c (thread_alive): Add assertion. Return bool. + (switch_to_thread_if_alive): New. + (prune_threads): Switch inferior/thread. + (print_thread_info_1): Switch thread before calling target methods. + (scoped_restore_current_thread::restore): New, factored out from + ... + (scoped_restore_current_thread::~scoped_restore_current_thread): + ... this. + (scoped_restore_current_thread::scoped_restore_current_thread): + Add assertion. + (thread_apply_all_command, thread_select): Use + switch_to_thread_if_alive. + +2020-01-10 George Barrett + + * stap-probe.c (stap_modify_semaphore): Don't check for null + semaphores. + (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check + for null semaphores. + +2020-01-09 Andrew Burgess + + * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update + all source windows, and maintain horizontal scroll status while + doing so. + +2020-01-09 Tom Tromey + + PR tui/18932: + * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call + update_source_window, not print_source_lines. + +2020-01-09 Andrew Burgess + + * tui/tui.c (tui_enable): Register tui hooks after calling + tui_display_main. + +2020-01-09 Christian Biesinger + + * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW. + +2020-01-08 Simon Marchi + + * thread.c (print_thread_info_1): Fix indentation. + +2020-01-09 Christian Biesinger + + * symtab.c (general_symbol_info::compute_and_set_names): Move the + unique_xmalloc_ptr outside the if to always free the demangled name. + +2020-01-08 Tom Tromey + + * xcoffread.c (enter_line_range, read_xcoff_symtab) + (process_xcoff_symbol, xcoff_symfile_offsets): Update. + * symtab.h (MSYMBOL_VALUE_ADDRESS): Update. + (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS): + Remove. + (section_offsets): New typedef. + * symtab.c (fixup_section, get_msymbol_address): Update. + * symmisc.c (dump_msymbols): Update. + * symfile.h (relative_addr_info_to_section_offsets) + (symfile_map_offsets_to_segments): Update. + * symfile.c (build_section_addr_info_from_objfile) + (init_objfile_sect_indices): Update. + (struct place_section_arg): Change type of "offsets". + (place_section): Update. + (relative_addr_info_to_section_offsets): Change type of + "section_offsets". Remove "num_sections" parameter. + (default_symfile_offsets, syms_from_objfile_1) + (set_objfile_default_section_offset): Update. + (reread_symbols): No need to preserve section offsets by hand. + (symfile_map_offsets_to_segments): Change type of "offsets". + * stap-probe.c (relocate_address): Update. + * stabsread.h (process_one_symbol): Update. + * solib-target.c (struct lm_info_target) : Change type. + (solib_target_relocate_section_addresses): Update. + * solib-svr4.c (enable_break, svr4_relocate_main_executable): + Update. + * solib-frv.c (frv_relocate_main_executable): Update. + * solib-dsbt.c (dsbt_relocate_main_executable): Update. + * solib-aix.c (solib_aix_get_section_offsets): Change return + type. + (solib_aix_solib_create_inferior_hook): Update. + * remote.c (remote_target::get_offsets): Update. + * psymtab.c (find_pc_sect_psymtab): Update. + * psympriv.h (struct partial_symbol) : Update. + * objfiles.h (obj_section_offset): Update. + (struct objfile) : Change type. + : Remove. + (objfile_relocate): Update. + * objfiles.c (entry_point_address_query): Update + (relocate_one_symbol): Change type of "section_offsets". + (objfile_relocate1, objfile_relocate1): Change type of + "new_offsets". + (objfile_rebase1): Update. + * mipsread.c (mipscoff_symfile_read): Update. + (read_alphacoff_dynamic_symtab): Remove "section_offsets" + parameter. + * mdebugread.c (parse_symbol): Change type of "section_offsets". + (parse_external, psymtab_to_symtab_1): Update. + * machoread.c (macho_symfile_offsets): Update. + * ia64-tdep.c (ia64_find_unwind_table): Update. + * hppa-tdep.c (read_unwind_info): Update. + * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update. + * dwarf2read.c (create_addrmap_from_index) + (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab) + (process_psymtab_comp_unit_reader, add_partial_symbol) + (add_partial_subprogram, process_full_comp_unit) + (read_file_scope, read_func_scope, read_lexical_block_scope) + (read_call_site_scope, dwarf2_rnglists_process) + (dwarf2_ranges_process, dwarf2_ranges_read) + (dwarf_decode_lines_1, var_decode_location, new_symbol) + (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset): + Update. + * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde): + Update. + * dtrace-probe.c (dtrace_probe::get_relocated_address): Update. + * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update. + (process_one_symbol): Change type of "section_offsets". + * ctfread.c (get_objfile_text_range): Update. + * coffread.c (coff_symtab_read, enter_linenos) + (process_coff_symbol): Update. + * coff-pe-read.c (add_pe_forwarded_sym): Update. + * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update. + +2020-01-08 Tom Tromey + + * dwarf2read.c (parse_macro_definition): Use std::string. + (parse_macro_definition): Likewise. + +2020-01-08 Tom Tromey + + * dwarf2read.c (abbrev_table_read_table): Use std::vector. + (ATTR_ALLOC_CHUNK): Remove. + 2020-01-08 Tom Tromey * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.