From: Aleksandar Ristovski Date: Fri, 16 Oct 2015 15:12:21 +0000 (-0400) Subject: gdbserver: Reset current_thread when the thread is removed. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=833dcd29758287ac7799d9c022c0994f7c16608e;p=binutils-gdb.git gdbserver: Reset current_thread when the thread is removed. Reset current_thread and make sure 'remove_process' is used after all associated threads have been removed first. gdb/gdbserver/ChangeLog: * inferiors.c (thread_pid_matches_callback): New function. (find_thread_process): New function. (remove_thread): Reset current_thread. (remove_process): Assert threads have been removed first. --- diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 3adbff6d69d..3f4fa604702 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,10 @@ +2015-10-16 Aleksandar Ristovski + + * inferiors.c (thread_pid_matches_callback): New function. + (find_thread_process): New function. + (remove_thread): Reset current_thread. + (remove_process): Assert threads have been removed first. + 2015-10-15 Yao Qi * linux-aarch64-low.c (aarch64_insert_point): Set len to 2