diff options
author | Greg Clayton <gclayton@apple.com> | 2010-12-03 00:27:48 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2010-12-03 00:27:48 +0000 |
commit | 621801846e4a72ac9c6aaee09fe59956b0135ed6 (patch) | |
tree | cbe49b14251f5a6fdf4515d20bd074de1474393b /lldb/source/Plugins/Process/gdb-remote | |
parent | a97599011164f7887f03744071ff633aa9ea374a (diff) | |
download | bcm5719-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.cpp | 4 |
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; } |