Included current PC in GDB reset command response (which is presented to the user)

This commit is contained in:
Nav
2023-10-02 19:40:05 +01:00
parent 592b22c438
commit a6d1a8ffea

View File

@@ -30,7 +30,9 @@ namespace DebugServer::Gdb::CommandPackets
Logger::info("Target reset complete");
debugSession.connection.writePacket(ResponsePacket(Services::StringService::toHex(
"Target reset complete - use the 'continue' command to begin execution.\n"
"Target reset complete\n"
"Current PC: 0x" + Services::StringService::toHex(targetControllerService.getProgramCounter()) + "\n"
"Use the 'continue' command to begin execution\n"
)));
} catch (const Exception& exception) {