New wr GDB monitor command, for writing to target registers

This commit is contained in:
Nav
2024-08-27 22:05:34 +01:00
parent b1db8196c0
commit 338dd8b75b
4 changed files with 170 additions and 0 deletions

View File

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