[Lldb-commits] [lldb] r137287 - /lldb/trunk/tools/debugserver/source/MacOSX/MachThread.cpp

Jim Ingham jingham at apple.com
Wed Aug 10 17:38:52 PDT 2011


Author: jingham
Date: Wed Aug 10 19:38:52 2011
New Revision: 137287

URL: http://llvm.org/viewvc/llvm-project?rev=137287&view=rev
Log:
In the case where we are trying to resume a thread all the way to 0, if we get

Modified:
    lldb/trunk/tools/debugserver/source/MacOSX/MachThread.cpp

Modified: lldb/trunk/tools/debugserver/source/MacOSX/MachThread.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/debugserver/source/MacOSX/MachThread.cpp?rev=137287&r1=137286&r2=137287&view=diff
==============================================================================
--- lldb/trunk/tools/debugserver/source/MacOSX/MachThread.cpp (original)
+++ lldb/trunk/tools/debugserver/source/MacOSX/MachThread.cpp Wed Aug 10 19:38:52 2011
@@ -119,7 +119,6 @@
                     times_to_resume = m_basic_info.suspend_count;
                 else
                     times_to_resume = 0;
-                return false; // ??? 
             }
         }
     }
@@ -161,7 +160,10 @@
             if (err.Success())
                 ++m_suspend_count;
             if (DNBLogCheckLogBit(LOG_THREAD) || err.Fail())
+            {
                 err.LogThreaded("::thread_suspend (%4.4x)", m_tid);
+                return false;
+            }
         }
     }
     return true;





More information about the lldb-commits mailing list