From 995aa3f06a7242685b1e31f467fc573b00d4b475 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Wed, 17 Jun 2009 00:28:36 +0000 Subject: [PATCH] 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. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31075 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/debug/user_debugger.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/system/kernel/debug/user_debugger.cpp b/src/system/kernel/debug/user_debugger.cpp index 67b4df61a9..caeae4891d 100644 --- a/src/system/kernel/debug/user_debugger.cpp +++ b/src/system/kernel/debug/user_debugger.cpp @@ -1354,7 +1354,8 @@ broadcast_debugged_thread_message(struct thread *nubThread, int32 code, 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; }