This commit is contained in:
Nav
2024-12-15 17:34:11 +00:00
parent 40859201e4
commit 6873b2f53a
4 changed files with 16 additions and 9 deletions

View File

@@ -27,6 +27,8 @@ namespace DebugServer::Gdb::CommandPackets
const Targets::TargetDescriptor&,
TargetControllerService& targetControllerService
) {
using Services::StringService;
Logger::info("Handling ResetTarget packet");
try {
@@ -36,7 +38,12 @@ namespace DebugServer::Gdb::CommandPackets
debugSession.connection.writePacket(ResponsePacket{Services::StringService::toHex(
"Target reset complete\n"
"Current PC: 0x" + Services::StringService::toHex(targetControllerService.getProgramCounter()) + "\n"
"Current PC: " + StringService::applyTerminalColor(
"0x" + StringService::asciiToUpper(
StringService::toHex(targetControllerService.getProgramCounter())
),
StringService::TerminalColor::BLUE
) + "\n"
"Use the 'continue' command to begin execution\n"
)});