diff --git a/src/DebugServer/Gdb/CommandPackets/WriteRegisterMonitor.cpp b/src/DebugServer/Gdb/CommandPackets/WriteRegisterMonitor.cpp index 8476903a..41fda760 100644 --- a/src/DebugServer/Gdb/CommandPackets/WriteRegisterMonitor.cpp +++ b/src/DebugServer/Gdb/CommandPackets/WriteRegisterMonitor.cpp @@ -131,6 +131,16 @@ namespace DebugServer::Gdb::CommandPackets debugSession.connection.writePacket(ResponsePacket{StringService::toHex("Register written\n")}); + } catch (const std::invalid_argument& exception) { + debugSession.connection.writePacket(ResponsePacket{ + StringService::toHex( + StringService::applyTerminalColor( + "Error: Invalid register value given\n", + StringService::TerminalColor::DARK_RED + ) + ) + }); + } catch (const Exception& exception) { debugSession.connection.writePacket(ResponsePacket{ StringService::toHex(