This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] gdbserver: Reset current_thread when the thread is removed.


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=833dcd29758287ac7799d9c022c0994f7c16608e

commit 833dcd29758287ac7799d9c022c0994f7c16608e
Author: Aleksandar Ristovski <aristovski@qnx.com>
Date:   Fri Oct 16 11:12:21 2015 -0400

    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:
---
 gdb/gdbserver/ChangeLog | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 3adbff6..3f4fa60 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]