X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2FChangeLog;h=4163c869afed4c1f63b140240b8b21ebdb42ddac;hb=78f2c40a12179d26d3065c09f054b7e751b2732f;hp=3b5f9aab48cf7161ae93b34ad9953b38455f74a9;hpb=bd420a2dfff64978feb1659d3b77c7601b98463f;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3b5f9aab48..4163c869af 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,86 @@ +2020-01-10 Pedro Alves + + * remote.c (remote_target::remote_add_inferior): Don't bind a + process to the current inferior if the current inferior is already + bound to a process. + +2020-01-10 Tankut Baris Aktemur + Pedro Alves + + * remote.c (remote_target::remote_parse_stop_reply) : + If no process is specified, return null_ptid instead of + inferior_ptid. + (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED / + TARGET_WAITKIND_SIGNALLED with no pid. + +2020-01-10 Pedro Alves + + * remote.c (first_remote_resumed_thread): New. + (remote_target::wait_as): Use it as default event_ptid instead of + inferior_ptid. + +2020-01-10 Pedro Alves + + * infrun.c (handle_no_resumed): Use all_non_exited_inferiors. + +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.