Replaced SetBreakpointOnTarget event with TC command
This commit is contained in:
@@ -17,5 +17,6 @@ namespace Bloom::TargetController::Commands
|
||||
GET_TARGET_STATE,
|
||||
STEP_TARGET_EXECUTION,
|
||||
WRITE_TARGET_MEMORY,
|
||||
SET_BREAKPOINT,
|
||||
};
|
||||
}
|
||||
|
||||
30
src/TargetController/Commands/SetBreakpoint.hpp
Normal file
30
src/TargetController/Commands/SetBreakpoint.hpp
Normal file
@@ -0,0 +1,30 @@
|
||||
#pragma once
|
||||
|
||||
#include "Command.hpp"
|
||||
|
||||
#include "src/Targets/TargetBreakpoint.hpp"
|
||||
|
||||
namespace Bloom::TargetController::Commands
|
||||
{
|
||||
class SetBreakpoint: public Command
|
||||
{
|
||||
public:
|
||||
static constexpr CommandType type = CommandType::SET_BREAKPOINT;
|
||||
static inline const std::string name = "SetBreakpoint";
|
||||
|
||||
Targets::TargetBreakpoint breakpoint;
|
||||
|
||||
SetBreakpoint() = default;
|
||||
explicit SetBreakpoint(const Targets::TargetBreakpoint& breakpoint)
|
||||
: breakpoint(breakpoint)
|
||||
{};
|
||||
|
||||
[[nodiscard]] CommandType getType() const override {
|
||||
return SetBreakpoint::type;
|
||||
}
|
||||
|
||||
[[nodiscard]] bool requiresStoppedTargetState() const override {
|
||||
return true;
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user