Replaced RetrieveMemoryFromTarget event with TC command

This commit is contained in:
Nav
2022-04-24 18:55:19 +01:00
parent 6e4364b43a
commit 391b742d8b
11 changed files with 97 additions and 99 deletions

View File

@@ -22,10 +22,12 @@
#include "Commands/ResetTarget.hpp"
#include "Commands/ReadTargetRegisters.hpp"
#include "Commands/WriteTargetRegisters.hpp"
#include "Commands/ReadTargetMemory.hpp"
// Responses
#include "Responses/Response.hpp"
#include "Responses/TargetRegistersRead.hpp"
#include "Responses/TargetMemoryRead.hpp"
#include "TargetControllerState.hpp"
@@ -298,6 +300,7 @@ namespace Bloom::TargetController
Commands::ReadTargetRegisters& command
);
std::unique_ptr<Responses::Response> handleWriteTargetRegisters(Commands::WriteTargetRegisters& command);
std::unique_ptr<Responses::TargetMemoryRead> handleReadTargetMemory(Commands::ReadTargetMemory& command);
/**
* Will attempt to step execution on the target and emit a TargetExecutionResumed event.
@@ -306,13 +309,6 @@ namespace Bloom::TargetController
*/
void onStepTargetExecutionEvent(const Events::StepTargetExecution& event);
/**
* Will attempt to read memory from the target and include the data in a MemoryRetrievedFromTarget event.
*
* @param event
*/
void onReadMemoryEvent(const Events::RetrieveMemoryFromTarget& event);
/**
* Will attempt to write memory to the target. On success, a MemoryWrittenToTarget event is emitted.
*