New mon lr GDB command, for listing target registers

This commit is contained in:
Nav
2024-08-26 12:41:41 +01:00
parent a7ffc56d9b
commit 2adb679833
4 changed files with 184 additions and 0 deletions

View File

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