Corrected base of offset and length integers, in ReadMemoryMap GDB command packet class

This commit is contained in:
Nav
2022-05-14 23:44:08 +01:00
parent 4ab955a6f7
commit 97da8394c8

View File

@@ -37,13 +37,13 @@ namespace Bloom::DebugServer::Gdb::AvrGdb::CommandPackets
} }
bool conversionStatus = false; bool conversionStatus = false;
this->offset = packetSegments.at(0).toUInt(&conversionStatus, 10); this->offset = packetSegments.at(0).toUInt(&conversionStatus, 16);
if (!conversionStatus) { if (!conversionStatus) {
throw Exception("Failed to parse offset from read memory map packet data"); throw Exception("Failed to parse offset from read memory map packet data");
} }
this->length = packetSegments.at(1).toUInt(&conversionStatus, 10); this->length = packetSegments.at(1).toUInt(&conversionStatus, 16);
if (!conversionStatus) { if (!conversionStatus) {
throw Exception("Failed to parse read length from read memory map packet data"); throw Exception("Failed to parse read length from read memory map packet data");