diff options
| author | Greg Clayton <gclayton@apple.com> | 2011-10-27 22:04:16 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2011-10-27 22:04:16 +0000 |
| commit | e889ad65ccc07708af91cc17038604ddd3326aa0 (patch) | |
| tree | 806d2df0c0d46a6b31954106149710c32fe5380b /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp | |
| parent | 3628c6454608ab3e2742b33adbfecf2b7e9e6b5e (diff) | |
| download | llvm-e889ad65ccc07708af91cc17038604ddd3326aa0.zip llvm-e889ad65ccc07708af91cc17038604ddd3326aa0.tar.gz llvm-e889ad65ccc07708af91cc17038604ddd3326aa0.tar.bz2 | |
<rdar://problem/10357230>
Fixed an issue where async packets were incurring a delay even though they
were sent correctly. We now properly broadcast the private run state being
resumed correctly. Also fixed logging to reflect what is happening.
llvm-svn: 143154
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp')
| -rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp index 1f2ad79..85f56dd 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp @@ -290,6 +290,16 @@ GDBRemoteCommunicationClient::SendPacketAndWaitForResponse // Make sure we wait until the continue packet has been sent again... if (m_private_is_running.WaitForValueEqualTo (true, &timeout_time, &timed_out)) { + if (log) + { + if (timed_out) + log->Printf ("async: timed out waiting for process to resume, but process was resumed"); + else + log->Printf ("async: async packet sent"); + } + } + else + { if (log) log->Printf ("async: timed out waiting for process to resume"); } @@ -379,7 +389,7 @@ GDBRemoteCommunicationClient::SendContinuePacketAndWaitForResponse if (SendPacket(continue_packet.c_str(), continue_packet.size()) == 0) state = eStateInvalid; - m_private_is_running.SetValue (true, eBroadcastNever); + m_private_is_running.SetValue (true, eBroadcastAlways); } got_stdout = false; |
