summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2011-05-20 03:15:54 +0000
committerGreg Clayton <gclayton@apple.com>2011-05-20 03:15:54 +0000
commit5fe15d2d52fa34f7ba12f3320dc6420148a13d3e (patch)
tree0bcbaa126d452b9c5a99387048490d01189766e8 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
parentfe4f9d5977f58f25a2df0515e796e71686701b2f (diff)
downloadbcm5719-llvm-5fe15d2d52fa34f7ba12f3320dc6420148a13d3e.tar.gz
bcm5719-llvm-5fe15d2d52fa34f7ba12f3320dc6420148a13d3e.zip
Fixed an issue in GDBRemoteCommunicationClient where we weren't listening to
the "payload_length" argument for the "payload" packet data. This meant we could end up sending random extra data with a packet depending on how the packet was constructed. Fixed GDBRemoteRegisterContext to properly save and restore all registers. Previous fixes had been added to work around the "payload_length" issues fixed above and aren't needed anymore. Fix logging in GDBRemoteCommunication to make sure we log the correct packet data being sent by using the packet length when dumping the packet contents. Added register definitions for 'arm-lldb' in the "disasm-gdb-remote.pl" script so if you have a register dump from the GDB remote that doesn't include the qRegisterInfo packets, you can manually tell the script which registers are which. llvm-svn: 131715
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
index bfb4755931b..314d51f55aa 100644
--- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
@@ -252,7 +252,7 @@ GDBRemoteCommunicationClient::SendPacketAndWaitForResponse
if (GetSequenceMutex (locker))
{
- if (SendPacketNoLock (payload, strlen(payload)))
+ if (SendPacketNoLock (payload, payload_length))
return WaitForPacketNoLock (response, &timeout_time);
}
else
@@ -1597,8 +1597,8 @@ GDBRemoteCommunicationClient::GetThreadStopInfo (uint32_t tid, StringExtractorGD
m_supports_qThreadStopInfo = false;
}
}
- if (SetCurrentThread (tid))
- return GetStopReply (response);
+// if (SetCurrentThread (tid))
+// return GetStopReply (response);
return false;
}
OpenPOWER on IntegriCloud