Added TargetMemoryAddress, TargetMemorySize, TargetProgramCounter and TargetStackPointer aliases
This commit is contained in:
@@ -19,14 +19,14 @@ namespace Bloom::TargetController::Commands
|
||||
static inline const std::string name = "ReadTargetMemory";
|
||||
|
||||
Targets::TargetMemoryType memoryType;
|
||||
std::uint32_t startAddress;
|
||||
std::uint32_t bytes;
|
||||
Targets::TargetMemoryAddress startAddress;
|
||||
Targets::TargetMemorySize bytes;
|
||||
std::set<Targets::TargetMemoryAddressRange> excludedAddressRanges;
|
||||
|
||||
ReadTargetMemory(
|
||||
Targets::TargetMemoryType memoryType,
|
||||
std::uint32_t startAddress,
|
||||
std::uint32_t bytes,
|
||||
Targets::TargetMemoryAddress startAddress,
|
||||
Targets::TargetMemorySize bytes,
|
||||
const std::set<Targets::TargetMemoryAddressRange>& excludedAddressRanges
|
||||
)
|
||||
: memoryType(memoryType)
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
|
||||
#include "Command.hpp"
|
||||
|
||||
#include "src/Targets/TargetMemory.hpp"
|
||||
|
||||
namespace Bloom::TargetController::Commands
|
||||
{
|
||||
class ResumeTargetExecution: public Command
|
||||
@@ -12,10 +14,10 @@ namespace Bloom::TargetController::Commands
|
||||
static constexpr CommandType type = CommandType::RESUME_TARGET_EXECUTION;
|
||||
static inline const std::string name = "ResumeTargetExecution";
|
||||
|
||||
std::optional<std::uint32_t> fromProgramCounter;
|
||||
std::optional<Targets::TargetProgramCounter> fromProgramCounter;
|
||||
|
||||
ResumeTargetExecution() = default;
|
||||
explicit ResumeTargetExecution(std::uint32_t fromProgramCounter)
|
||||
explicit ResumeTargetExecution(Targets::TargetProgramCounter fromProgramCounter)
|
||||
: fromProgramCounter(fromProgramCounter)
|
||||
{};
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
#include "Command.hpp"
|
||||
|
||||
#include "src/Targets/TargetBreakpoint.hpp"
|
||||
#include "src/Targets/TargetMemory.hpp"
|
||||
|
||||
namespace Bloom::TargetController::Commands
|
||||
{
|
||||
@@ -14,9 +15,9 @@ namespace Bloom::TargetController::Commands
|
||||
static constexpr CommandType type = CommandType::SET_TARGET_PROGRAM_COUNTER;
|
||||
static inline const std::string name = "SetTargetProgramCounter";
|
||||
|
||||
std::uint32_t address = 0;
|
||||
Targets::TargetProgramCounter address = 0;
|
||||
|
||||
explicit SetTargetProgramCounter(std::uint32_t address)
|
||||
explicit SetTargetProgramCounter(Targets::TargetProgramCounter address)
|
||||
: address(address)
|
||||
{};
|
||||
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
|
||||
#include "Command.hpp"
|
||||
|
||||
#include "src/Targets/TargetMemory.hpp"
|
||||
|
||||
namespace Bloom::TargetController::Commands
|
||||
{
|
||||
class StepTargetExecution: public Command
|
||||
@@ -12,10 +14,10 @@ namespace Bloom::TargetController::Commands
|
||||
static constexpr CommandType type = CommandType::STEP_TARGET_EXECUTION;
|
||||
static inline const std::string name = "StepTargetExecution";
|
||||
|
||||
std::optional<std::uint32_t> fromProgramCounter;
|
||||
std::optional<Targets::TargetProgramCounter> fromProgramCounter;
|
||||
|
||||
StepTargetExecution() = default;
|
||||
explicit StepTargetExecution(std::uint32_t fromProgramCounter)
|
||||
explicit StepTargetExecution(Targets::TargetProgramCounter fromProgramCounter)
|
||||
: fromProgramCounter(fromProgramCounter)
|
||||
{};
|
||||
|
||||
|
||||
@@ -14,12 +14,12 @@ namespace Bloom::TargetController::Commands
|
||||
static inline const std::string name = "WriteTargetMemory";
|
||||
|
||||
Targets::TargetMemoryType memoryType;
|
||||
std::uint32_t startAddress;
|
||||
Targets::TargetMemoryAddress startAddress;
|
||||
Targets::TargetMemoryBuffer buffer;
|
||||
|
||||
WriteTargetMemory(
|
||||
Targets::TargetMemoryType memoryType,
|
||||
std::uint32_t startAddress,
|
||||
Targets::TargetMemoryAddress startAddress,
|
||||
const Targets::TargetMemoryBuffer& buffer
|
||||
)
|
||||
: memoryType(memoryType)
|
||||
|
||||
Reference in New Issue
Block a user