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
This commit is contained in:
Ingo Weinhold 2009-06-17 00:28:36 +00:00
parent e4b912a7f4
commit 995aa3f06a

View File

@ -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;
}