This commit is contained in:
Nav
2024-10-26 17:19:00 +01:00
parent 1db70be31e
commit 8cf96ba5df
4 changed files with 8 additions and 8 deletions

View File

@@ -140,8 +140,8 @@ namespace DebugServer::Gdb::AvrGdb::CommandPackets
}
return {
StringService::toUint32(command.substr(0, delimiterPos), 16),
StringService::toUint32(command.substr(delimiterPos + 1), 16)
.gdbStartAddress = StringService::toUint32(command.substr(0, delimiterPos), 16),
.bytes = StringService::toUint32(command.substr(delimiterPos + 1), 16)
};
}

View File

@@ -105,12 +105,12 @@ namespace DebugServer::Gdb::AvrGdb::CommandPackets
}
return {
StringService::toUint32(command.substr(0, commaDelimiterPos), 16),
StringService::toUint32(
.gdbStartAddress = StringService::toUint32(command.substr(0, commaDelimiterPos), 16),
.bytes = StringService::toUint32(
command.substr(commaDelimiterPos + 1, colonDelimiterPos - (commaDelimiterPos + 1)),
16
),
StringService::dataFromHex(command.substr(colonDelimiterPos + 1))
.buffer = StringService::dataFromHex(command.substr(colonDelimiterPos + 1))
};
}

View File

@@ -37,7 +37,7 @@ namespace DebugServer::Gdb::AvrGdb::CommandPackets
private:
struct PacketData
{
std::uint32_t gdbStartAddress;
GdbMemoryAddress gdbStartAddress;
std::uint32_t bytes;
Targets::TargetMemoryBuffer buffer;
};