diff options
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp index 89b723849fc..394b55231a8 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp @@ -199,13 +199,13 @@ GDBRemoteCommunication::SendContinuePacketAndWaitForResponse log->Printf ("GDBRemoteCommunication::%s ()", __FUNCTION__); Mutex::Locker locker(m_sequence_mutex); -// ScopedValueChanger<bool> restore_running_to_false (m_is_running, false); StateType state = eStateRunning; if (SendPacket(payload, packet_length) == 0) state = eStateInvalid; - m_is_running.SetValue (true, eBroadcastAlways); + BroadcastEvent(eBroadcastBitRunPacketSent, NULL); + m_is_running.SetValue (true, eBroadcastNever); while (state == eStateRunning) { @@ -357,7 +357,7 @@ GDBRemoteCommunication::SendContinuePacketAndWaitForResponse if (log) log->Printf ("GDBRemoteCommunication::%s () => %s", __FUNCTION__, StateAsCString(state)); response.SetFilePos(0); - m_is_running.SetValue (false, eBroadcastOnChange); + m_is_running.SetValue (false, eBroadcastAlways); return state; } @@ -858,16 +858,3 @@ GDBRemoteCommunication::DeallocateMemory (addr_t addr, uint32_t timeout_seconds) return false; } -bool -GDBRemoteCommunication::WaitForIsRunning (uint32_t timeout_sec) -{ - TimeValue timeout; - if (timeout_sec) - { - timeout = TimeValue::Now(); - timeout.OffsetWithSeconds (timeout_sec); - } - return m_is_running.WaitForValueEqualTo (true, &timeout, NULL); -} - - |