[Lldb-commits] [lldb] r206350 - m_interrupt_sent wasn't being initialized, and wasn't being reset after an

Jim Ingham jingham at apple.com
Tue Apr 15 19:24:17 PDT 2014


Author: jingham
Date: Tue Apr 15 21:24:17 2014
New Revision: 206350

URL: http://llvm.org/viewvc/llvm-project?rev=206350&view=rev
Log:
m_interrupt_sent wasn't being initialized, and wasn't being reset after an
interrupt.  Do both of those.

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

Modified: lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp?rev=206350&r1=206349&r2=206350&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp (original)
+++ lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp Tue Apr 15 21:24:17 2014
@@ -94,6 +94,7 @@ GDBRemoteCommunicationClient::GDBRemoteC
     m_async_result (PacketResult::Success),
     m_async_response (),
     m_async_signal (-1),
+    m_interrupt_sent (false),
     m_thread_id_to_used_usec_map (),
     m_host_arch(),
     m_process_arch(),
@@ -799,6 +800,8 @@ GDBRemoteCommunicationClient::SendContin
                 log->Printf ("GDBRemoteCommunicationClient::%s () sending continue packet: %s", __FUNCTION__, continue_packet.c_str());
             if (SendPacketNoLock(continue_packet.c_str(), continue_packet.size()) != PacketResult::Success)
                 state = eStateInvalid;
+            else
+                m_interrupt_sent = false;
         
             m_private_is_running.SetValue (true, eBroadcastAlways);
         }





More information about the lldb-commits mailing list