<div dir="ltr">Hi,<div><br></div><div style>I've implemented a debugger backend that implements the gdb remote protocol, and I've noticed that while communication seems OK, right after the connection from LLDB to my implementation the process resumes automatically. </div>

<div style><br></div><div style>I'm guessing that this is not the expected behaviour, but when looking at the logs I did see LLDB sending the "$vCont" packet without any user interaction.</div><div style><br>

</div><div style>I used the following command to connect:</div><div style><font face="courier new, monospace">process connect -p gdb-remote connect://localhost:52168</font><br></div><div style><br></div><div style>And this is an excerpt from the logs:</div>

<div style><div><font face="courier new, monospace">ProcessGDBRemote::UpdateThreadList (pid = 1799)</font></div><div><font face="courier new, monospace">0x7fe2aa2268b0: ThreadGDBRemote::ThreadGDBRemote (pid = 1799, tid = 0x0707)</font></div>

<div><font face="courier new, monospace"><  22> send packet: $qThreadStopInfo707#99</font></div><div><font face="courier new, monospace">size_t GDBRemoteCommunication::WaitForPacketWithTimeoutMicroSecondsNoLock(StringExtractorGDBRemote &, uint32_t): Read (buffer, (sizeof(buffer), timeout_usec = 0xf4240, status = success, error = (null)) => bytes_read = 1</font></div>

<div><font face="courier new, monospace"><   1> read packet: +</font></div><div><font face="courier new, monospace">size_t GDBRemoteCommunication::WaitForPacketWithTimeoutMicroSecondsNoLock(StringExtractorGDBRemote &, uint32_t): Read (buffer, (sizeof(buffer), timeout_usec = 0xf4240, status = success, error = (null)) => bytes_read = 4</font></div>

<div><font face="courier new, monospace"><   4> read packet: $#00</font></div><div><font face="courier new, monospace"><   1> send packet: +</font></div><div><font face="courier new, monospace">error: failed to get response for 'qThreadStopInfo707'</font></div>

<div><font face="courier new, monospace">ProcessGDBRemote::Resume()</font></div><div><font face="courier new, monospace">ProcessGDBRemote::AsyncThread (arg = 0x7fe2ab00d000, pid = 1799) Got an event of type: 1...</font></div>

<div><font face="courier new, monospace">ProcessGDBRemote::AsyncThread (arg = 0x7fe2ab00d000, pid = 1799) got eBroadcastBitAsyncContinue: vCont;c:0707</font></div><div><font face="courier new, monospace">GDBRemoteCommunicationClient::SendContinuePacketAndWaitForResponse ()</font></div>

<div><font face="courier new, monospace">GDBRemoteCommunicationClient::SendContinuePacketAndWaitForResponse () sending continue packet: vCont;c:0707</font></div><div><font face="courier new, monospace"><  16> send packet: $vCont;c:0707#b0</font></div>

<div><font face="courier new, monospace">size_t GDBRemoteCommunication::WaitForPacketWithTimeoutMicroSecondsNoLock(StringExtractorGDBRemote &, uint32_t): Read (buffer, (sizeof(buffer), timeout_usec = 0xf4240, status = success, error = (null)) => bytes_read = 1</font></div>

<div><font face="courier new, monospace"><   1> read packet: +</font></div><div><font face="courier new, monospace">GDBRemoteCommunicationClient::SendContinuePacketAndWaitForResponse () WaitForPacket(vCont;c:0707)</font></div>

<div><font face="courier new, monospace">size_t GDBRemoteCommunication::WaitForPacketWithTimeoutMicroSecondsNoLock(StringExtractorGDBRemote &, uint32_t): Read (buffer, (sizeof(buffer), timeout_usec = 0xffffffff, status = success, error = (null)) => bytes_read = 7</font></div>

<div><font face="courier new, monospace"><   7> read packet: $W00#b7</font></div><div><font face="courier new, monospace"><   1> send packet: +</font></div><div><font face="courier new, monospace">GDBRemoteCommunicationClient::SendContinuePacketAndWaitForResponse () got packet: W00</font></div>

<div><font face="courier new, monospace">GDBRemoteCommunicationClient::SendContinuePacketAndWaitForResponse () => exited</font></div><div><font face="courier new, monospace">ProcessGDBRemote::AsyncThread (arg = 0x7fe2ab00d000, pid = 1799) thread exiting...</font></div>

<div><br></div><div style>Any ideas why this is happening?</div><div style><br></div><div style>Thanks,</div><div style>Benjamin.</div></div></div>