New wr GDB monitor command, for writing to target registers
This commit is contained in:
@@ -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())));
|
||||
|
||||
Reference in New Issue
Block a user