Replaced RemoveBreakpointOnTarget event with TC command

This commit is contained in:
Nav
2022-04-30 22:45:46 +01:00
parent f7619f475b
commit acc96fd6d1
9 changed files with 48 additions and 85 deletions

View File

@@ -18,5 +18,6 @@ namespace Bloom::TargetController::Commands
STEP_TARGET_EXECUTION,
WRITE_TARGET_MEMORY,
SET_BREAKPOINT,
REMOVE_BREAKPOINT,
};
}

View File

@@ -0,0 +1,30 @@
#pragma once
#include "Command.hpp"
#include "src/Targets/TargetBreakpoint.hpp"
namespace Bloom::TargetController::Commands
{
class RemoveBreakpoint: public Command
{
public:
static constexpr CommandType type = CommandType::REMOVE_BREAKPOINT;
static inline const std::string name = "RemoveBreakpoint";
Targets::TargetBreakpoint breakpoint;
RemoveBreakpoint() = default;
explicit RemoveBreakpoint(const Targets::TargetBreakpoint& breakpoint)
: breakpoint(breakpoint)
{};
[[nodiscard]] CommandType getType() const override {
return RemoveBreakpoint::type;
}
[[nodiscard]] bool requiresStoppedTargetState() const override {
return true;
}
};
}