update_thread_user_debug_flag(): Don't set the THREAD_FLAGS_DEBUG_THREAD thread

flag, when B_THREAD_DEBUG_SINGLE_STEP is set. Not sure, if there ever was a
reason to do that, but there isn't now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39200 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2010-10-30 10:33:04 +00:00
parent bc9665753b
commit ee7817042b
+2 -3
View File
@@ -133,10 +133,9 @@ debugger_write(port_id port, int32 code, const void *buffer, size_t bufferSize,
static void
update_thread_user_debug_flag(struct thread* thread)
{
if (atomic_get(&thread->debug_info.flags)
& (B_THREAD_DEBUG_STOP | B_THREAD_DEBUG_SINGLE_STEP)) {
if ((atomic_get(&thread->debug_info.flags) & B_THREAD_DEBUG_STOP) != 0)
atomic_or(&thread->flags, THREAD_FLAGS_DEBUG_THREAD);
} else
else
atomic_and(&thread->flags, ~THREAD_FLAGS_DEBUG_THREAD);
}