gdbserver: Reset current_thread when the thread is removed.
authorAleksandar Ristovski <aristovski@qnx.com>
Fri, 16 Oct 2015 15:12:21 +0000 (11:12 -0400)
committerAleksandar Ristovski <aristovski@qnx.com>
Fri, 16 Oct 2015 15:13:31 +0000 (11:13 -0400)
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.

gdb/gdbserver/ChangeLog

index 3adbff6d69d5ddb0ba14c880c463ee51553dbf52..3f4fa604702c1936c56be5ed2037192700717a7e 100644 (file)
@@ -1,3 +1,10 @@
+2015-10-16  Aleksandar Ristovski  <aristovski@qnx.com>
+
+       * 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  <yao.qi@linaro.org>
 
        * linux-aarch64-low.c (aarch64_insert_point): Set len to 2