diff --git a/src/DebugServers/GdbRsp/CommandPackets/WriteGeneralRegister.cpp b/src/DebugServers/GdbRsp/CommandPackets/WriteGeneralRegister.cpp index 81b237ec..d323b330 100644 --- a/src/DebugServers/GdbRsp/CommandPackets/WriteGeneralRegister.cpp +++ b/src/DebugServers/GdbRsp/CommandPackets/WriteGeneralRegister.cpp @@ -9,7 +9,7 @@ void WriteGeneralRegister::init() { // The P packet updates a single register auto packet = std::string(this->data.begin(), this->data.end()); - if (packet.size() < 6) { + if (packet.size() < 4) { throw Exception("Invalid P command packet - insufficient data in packet."); }