[Lldb-commits] [lldb] r120762 - /lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp

Greg Clayton gclayton at apple.com
Thu Dec 2 16:27:48 PST 2010


Author: gclayton
Date: Thu Dec  2 18:27:48 2010
New Revision: 120762

URL: http://llvm.org/viewvc/llvm-project?rev=120762&view=rev
Log:
Fixed DoResume to watch for the correct return value from WaitForIsRunning to avoid spurious errors due to previous fix.

Modified:
    lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp

Modified: lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp?rev=120762&r1=120761&r2=120762&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp (original)
+++ lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp Thu Dec  2 18:27:48 2010
@@ -880,10 +880,8 @@
     ProcessGDBRemoteLog::LogIf (GDBR_LOG_PROCESS, "ProcessGDBRemote::Resume()");
     m_async_broadcaster.BroadcastEvent (eBroadcastBitAsyncContinue, new EventDataBytes (m_continue_packet.GetData(), m_continue_packet.GetSize()));
     const uint32_t timedout_sec = 1;
-    if (m_gdb_comm.WaitForIsRunning (timedout_sec))
-    {
+    if (m_gdb_comm.WaitForIsRunning (timedout_sec) == false)
         error.SetErrorString("Resume timed out.");
-    }
     return error;
 }
 





More information about the lldb-commits mailing list