summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationReplayServer.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-07-01 21:25:34 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-07-01 21:25:34 +0000
commit730bed5c83314a02f623d81cf0a9fb9c0f642697 (patch)
tree6cbd4952a476445eed42a2a11bcfd169ba15a93c /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationReplayServer.cpp
parent3f722d40c55c9cffd52706570d096b9012b56a0b (diff)
downloadbcm5719-llvm-730bed5c83314a02f623d81cf0a9fb9c0f642697.tar.gz
bcm5719-llvm-730bed5c83314a02f623d81cf0a9fb9c0f642697.zip
[Reproducer] Assert on unexpected packet
I'm not able to reproduce the reproducer flakiness we're seeing on GreenDragon. I want to add this assert to find out if the GDB remote packets are somehow getting out of sync when this happens. llvm-svn: 364852
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationReplayServer.cpp')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationReplayServer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationReplayServer.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationReplayServer.cpp
index 5cdf572bd5a..b7763d86c20 100644
--- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationReplayServer.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationReplayServer.cpp
@@ -142,6 +142,7 @@ GDBRemoteCommunicationReplayServer::GetPacketAndSendResponse(
entry.packet.data);
LLDB_LOG(log, "GDBRemoteCommunicationReplayServer actual packet: '{0}'",
packet.GetStringRef());
+ assert(false && "Encountered unexpected packet during replay");
return PacketResult::ErrorSendFailed;
}
OpenPOWER on IntegriCloud