[Lldb-commits] [lldb] r189484 - Clear 'packet_str' before putting new packet.
Hafiz Abid Qadeer
hafiz_abid at mentor.com
Wed Aug 28 08:10:37 PDT 2013
Author: abidh
Date: Wed Aug 28 10:10:37 2013
New Revision: 189484
URL: http://llvm.org/viewvc/llvm-project?rev=189484&view=rev
Log:
Clear 'packet_str' before putting new packet.
Modified:
lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
Modified: lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp?rev=189484&r1=189483&r2=189484&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp (original)
+++ lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp Wed Aug 28 10:10:37 2013
@@ -465,6 +465,8 @@ GDBRemoteCommunication::CheckForPacket (
m_history.AddPacket (m_bytes.c_str(), total_length, History::ePacketTypeRecv, total_length);
+ // Clear packet_str in case there is some existing data in it.
+ packet_str.clear();
// Copy the packet from m_bytes to packet_str expanding the
// run-length encoding in the process.
// Reserve enough byte for the most common case (no RLE used)
More information about the lldb-commits
mailing list