[Haiku-commits] r31075 - haiku/trunk/src/system/kernel/debug

bonefish at mail.berlios.de bonefish at mail.berlios.de
Wed Jun 17 02:28:40 CEST 2009


Author: bonefish
Date: 2009-06-17 02:28:36 +0200 (Wed, 17 Jun 2009)
New Revision: 31075
ViewCVS: http://svn.berlios.de/viewcvs/haiku?rev=31075&view=rev

Modified:
   haiku/trunk/src/system/kernel/debug/user_debugger.cpp
Log:
broadcast_debugged_thread_message(): Only send the message to threads that are
stopped. Besides that the message won't be interesting to the other threads
anyway, we also risk filling the port and blocking the nub thread.


Modified: haiku/trunk/src/system/kernel/debug/user_debugger.cpp
===================================================================
--- haiku/trunk/src/system/kernel/debug/user_debugger.cpp	2009-06-17 00:17:37 UTC (rev 31074)
+++ haiku/trunk/src/system/kernel/debug/user_debugger.cpp	2009-06-17 00:28:36 UTC (rev 31075)
@@ -1354,7 +1354,8 @@
 		struct thread *thread
 			= thread_get_thread_struct_locked(threadInfo.thread);
 		if (thread && thread != nubThread && thread->team == nubThread->team
-			&& thread->debug_info.flags & B_THREAD_DEBUG_INITIALIZED) {
+			&& (thread->debug_info.flags & B_THREAD_DEBUG_INITIALIZED) != 0
+			&& (thread->debug_info.flags & B_THREAD_DEBUG_STOPPED) != 0) {
 			threadDebugPort = thread->debug_info.debug_port;
 			threadID = thread->id;
 		}




More information about the Haiku-commits mailing list