Changed AVR-GDB command packet class to a bare interface class

This commit is contained in:
Nav
2024-10-26 16:19:05 +01:00
parent 5be3ab4503
commit b6cbdf5a0d
27 changed files with 83 additions and 52 deletions

View File

@@ -24,8 +24,8 @@ namespace DebugServer::Gdb::AvrGdb::CommandPackets
using Exceptions::InvalidCommandOption;
EepromFill::EepromFill(Gdb::CommandPackets::Monitor&& monitorPacket)
: CommandPacket(monitorPacket)
, rawFillValue(monitorPacket.commandArguments.size() >= 3 ? monitorPacket.commandArguments[2] : std::string{})
: Gdb::CommandPackets::Monitor(std::move(monitorPacket))
, rawFillValue(this->commandArguments.size() >= 3 ? this->commandArguments[2] : std::string{})
{}
void EepromFill::handle(