New GDB monitor command for Insight activation.

Created GdbHelpMonitorInfo.txt.in template for conditional commands
This commit is contained in:
Nav
2023-05-24 23:15:47 +01:00
parent 7eedc42cdc
commit d55756da72
7 changed files with 99 additions and 6 deletions

View File

@@ -32,6 +32,10 @@
#include "CommandPackets/Detach.hpp"
#include "CommandPackets/EepromFill.hpp"
#ifndef EXCLUDE_INSIGHT
#include "CommandPackets/ActivateInsight.hpp"
#endif
// Response packets
#include "ResponsePackets/TargetStopped.hpp"
@@ -321,7 +325,11 @@ namespace Bloom::DebugServer::Gdb
if (monitorCommand->command.find("eeprom fill") == 0) {
return std::make_unique<CommandPackets::EepromFill>(std::move(*(monitorCommand.release())));
}
#ifndef EXCLUDE_INSIGHT
if (monitorCommand->command.find("insight") == 0) {
return std::make_unique<CommandPackets::ActivateInsight>(std::move(*(monitorCommand.release())));
}
#endif
return monitorCommand;
}
}