New GDB monitor command for Insight activation.
Created GdbHelpMonitorInfo.txt.in template for conditional commands
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user