[Lldb-commits] [lldb] r364852 - [Reproducer] Assert on unexpected packet

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Mon Jul 1 14:25:34 PDT 2019


Author: jdevlieghere
Date: Mon Jul  1 14:25:34 2019
New Revision: 364852

URL: http://llvm.org/viewvc/llvm-project?rev=364852&view=rev
Log:
[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.

Modified:
    lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationReplayServer.cpp

Modified: lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationReplayServer.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationReplayServer.cpp?rev=364852&r1=364851&r2=364852&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationReplayServer.cpp (original)
+++ lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationReplayServer.cpp Mon Jul  1 14:25:34 2019
@@ -142,6 +142,7 @@ GDBRemoteCommunicationReplayServer::GetP
                  entry.packet.data);
         LLDB_LOG(log, "GDBRemoteCommunicationReplayServer actual packet: '{0}'",
                  packet.GetStringRef());
+        assert(false && "Encountered unexpected packet during replay");
         return PacketResult::ErrorSendFailed;
       }
 




More information about the lldb-commits mailing list