[haiku-commits] r39200 - haiku/trunk/src/system/kernel/debug

  • From: ingo_weinhold@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 30 Oct 2010 12:33:04 +0200 (CEST)

Author: bonefish
Date: 2010-10-30 12:33:04 +0200 (Sat, 30 Oct 2010)
New Revision: 39200
Changeset: http://dev.haiku-os.org/changeset/39200

Modified:
   haiku/trunk/src/system/kernel/debug/user_debugger.cpp
Log:
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.


Modified: haiku/trunk/src/system/kernel/debug/user_debugger.cpp
===================================================================
--- haiku/trunk/src/system/kernel/debug/user_debugger.cpp       2010-10-30 
09:43:26 UTC (rev 39199)
+++ haiku/trunk/src/system/kernel/debug/user_debugger.cpp       2010-10-30 
10:33:04 UTC (rev 39200)
@@ -133,10 +133,9 @@
 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);
 }
 


Other related posts:

  • » [haiku-commits] r39200 - haiku/trunk/src/system/kernel/debug - ingo_weinhold