summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationHistory.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-09-16 20:02:57 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-09-16 20:02:57 +0000
commit4e053ff1d188bae61f6f7d20c591a462b32a9992 (patch)
tree3a2841efa6c6e99971ba852ad55a19d9ca6f7f2d /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationHistory.cpp
parenta7e9059967c4bff83ae6c3b595828bbbc8aaf82e (diff)
downloadbcm5719-llvm-4e053ff1d188bae61f6f7d20c591a462b32a9992.tar.gz
bcm5719-llvm-4e053ff1d188bae61f6f7d20c591a462b32a9992.zip
[NFC] Move dumping into GDBRemotePacket
This moves the dumping logic from the GDBRemoteCommunicationHistory class into the GDBRemotePacket so that it can be reused from the reproducer command object. llvm-svn: 372028
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationHistory.cpp')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationHistory.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationHistory.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationHistory.cpp
index 898a6ec6851..d2cc32f63f2 100644
--- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationHistory.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationHistory.cpp
@@ -72,11 +72,8 @@ void GDBRemoteCommunicationHistory::Dump(Stream &strm) const {
if (entry.type == GDBRemotePacket::ePacketTypeInvalid ||
entry.packet.data.empty())
break;
- strm.Printf("history[%u] tid=0x%4.4" PRIx64 " <%4u> %s packet: %s\n",
- entry.packet_idx, entry.tid, entry.bytes_transmitted,
- (entry.type == GDBRemotePacket::ePacketTypeSend) ? "send"
- : "read",
- entry.packet.data.c_str());
+ strm.Printf("history[%u] ", entry.packet_idx);
+ entry.Dump(strm);
}
}
OpenPOWER on IntegriCloud