summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/gdb-remote
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2010-12-03 00:27:48 +0000
committerGreg Clayton <gclayton@apple.com>2010-12-03 00:27:48 +0000
commit621801846e4a72ac9c6aaee09fe59956b0135ed6 (patch)
treecbe49b14251f5a6fdf4515d20bd074de1474393b /lldb/source/Plugins/Process/gdb-remote
parenta97599011164f7887f03744071ff633aa9ea374a (diff)
downloadbcm5719-llvm-621801846e4a72ac9c6aaee09fe59956b0135ed6.tar.gz
bcm5719-llvm-621801846e4a72ac9c6aaee09fe59956b0135ed6.zip
Fixed DoResume to watch for the correct return value from WaitForIsRunning to avoid spurious errors due to previous fix.
llvm-svn: 120762
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
index 5496a02343a..e7a879bd5a5 100644
--- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
@@ -880,10 +880,8 @@ ProcessGDBRemote::DoResume ()
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;
}
OpenPOWER on IntegriCloud