From b5b0969c37558ed2603706a8af09207db5642ed9 Mon Sep 17 00:00:00 2001 From: Nav Date: Sun, 29 May 2022 17:18:56 +0100 Subject: [PATCH] Support for vFlashDone GDB command packet --- src/DebugServer/Gdb/CommandPackets/CommandPacket.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/DebugServer/Gdb/CommandPackets/CommandPacket.cpp b/src/DebugServer/Gdb/CommandPackets/CommandPacket.cpp index 0c1f20c1..7835e9c4 100644 --- a/src/DebugServer/Gdb/CommandPackets/CommandPacket.cpp +++ b/src/DebugServer/Gdb/CommandPackets/CommandPacket.cpp @@ -56,6 +56,12 @@ namespace Bloom::DebugServer::Gdb::CommandPackets return; } + if (packetString.find("vFlashDone") == 0) { + Logger::debug("Handling vFlashDone"); + debugSession.connection.writePacket(OkResponsePacket()); + return; + } + Logger::debug("Unknown GDB RSP packet: " + packetString + " - returning empty response"); // Respond with an empty packet