From 97da8394c8280653b6e7c901a47408f85be72bc7 Mon Sep 17 00:00:00 2001 From: Nav Date: Sat, 14 May 2022 23:44:08 +0100 Subject: [PATCH] Corrected base of offset and length integers, in ReadMemoryMap GDB command packet class --- src/DebugServer/Gdb/AvrGdb/CommandPackets/ReadMemoryMap.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DebugServer/Gdb/AvrGdb/CommandPackets/ReadMemoryMap.cpp b/src/DebugServer/Gdb/AvrGdb/CommandPackets/ReadMemoryMap.cpp index 89856e3e..599c4b55 100644 --- a/src/DebugServer/Gdb/AvrGdb/CommandPackets/ReadMemoryMap.cpp +++ b/src/DebugServer/Gdb/AvrGdb/CommandPackets/ReadMemoryMap.cpp @@ -37,13 +37,13 @@ namespace Bloom::DebugServer::Gdb::AvrGdb::CommandPackets } bool conversionStatus = false; - this->offset = packetSegments.at(0).toUInt(&conversionStatus, 10); + this->offset = packetSegments.at(0).toUInt(&conversionStatus, 16); if (!conversionStatus) { 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) { throw Exception("Failed to parse read length from read memory map packet data");