New mon rr GDB command for reading target registers

This commit is contained in:
Nav
2024-08-26 12:38:31 +01:00
parent 4c47bda7b3
commit a7ffc56d9b
9 changed files with 425 additions and 0 deletions

View File

@@ -29,6 +29,7 @@
#include "CommandPackets/BloomVersion.hpp"
#include "CommandPackets/BloomVersionMachine.hpp"
#include "CommandPackets/Detach.hpp"
#include "CommandPackets/ReadRegistersMonitor.hpp"
#ifndef EXCLUDE_INSIGHT
#include "CommandPackets/ActivateInsight.hpp"
@@ -291,6 +292,10 @@ namespace DebugServer::Gdb
return std::make_unique<CommandPackets::ResetTarget>(std::move(*(monitorCommand.release())));
}
if (monitorCommand->command.find("rr") == 0) {
return std::make_unique<CommandPackets::ReadRegistersMonitor>(std::move(*(monitorCommand.release())));
}
#ifndef EXCLUDE_INSIGHT
if (monitorCommand->command.find("insight") == 0) {
return std::make_unique<CommandPackets::ActivateInsight>(std::move(*(monitorCommand.release())));