From 8d4f4195463a2b5f0638ce099a84509581390622 Mon Sep 17 00:00:00 2001 From: RSDuck Date: Fri, 8 Nov 2024 18:57:44 +0100 Subject: [PATCH] correct assert in gdb stub --- src/debug/GdbProto.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/debug/GdbProto.cpp b/src/debug/GdbProto.cpp index a69538db..33f11dd9 100644 --- a/src/debug/GdbProto.cpp +++ b/src/debug/GdbProto.cpp @@ -113,7 +113,7 @@ Gdb::ReadResult GdbStub::ParseAndSetupPacket() ReadResult result, prevResult; while (true) { - ReadResult result = TryParsePacket(i, packetStart, packetSize, packetContentSize); + result = TryParsePacket(i, packetStart, packetSize, packetContentSize); if (result == ReadResult::NoPacket) break; if (result != ReadResult::CmdRecvd && result != ReadResult::Break)