New insight worker task for fetching the current stack pointer

This commit is contained in:
Nav
2021-11-11 19:06:28 +00:00
parent a305761ab5
commit 83c5065faa
3 changed files with 28 additions and 0 deletions

View File

@@ -145,6 +145,7 @@ add_executable(Bloom
src/Insight/InsightWorker/Tasks/RefreshTargetPinStates.cpp src/Insight/InsightWorker/Tasks/RefreshTargetPinStates.cpp
src/Insight/InsightWorker/Tasks/SetTargetPinState.cpp src/Insight/InsightWorker/Tasks/SetTargetPinState.cpp
src/Insight/InsightWorker/Tasks/ReadTargetMemory.cpp src/Insight/InsightWorker/Tasks/ReadTargetMemory.cpp
src/Insight/InsightWorker/Tasks/ReadStackPointer.cpp
src/Insight/InsightWorker/Tasks/QueryLatestVersionNumber.cpp src/Insight/InsightWorker/Tasks/QueryLatestVersionNumber.cpp
# Error dialogue window # Error dialogue window

View File

@@ -0,0 +1,7 @@
#include "ReadStackPointer.hpp"
using namespace Bloom;
void ReadStackPointer::run(TargetControllerConsole& targetControllerConsole) {
emit this->stackPointerRead(targetControllerConsole.getStackPointer());
}

View File

@@ -0,0 +1,20 @@
#pragma once
#include "InsightWorkerTask.hpp"
namespace Bloom
{
class ReadStackPointer: public InsightWorkerTask
{
Q_OBJECT
public:
ReadStackPointer(): InsightWorkerTask() {}
signals:
void stackPointerRead(std::uint32_t stackPointer);
protected:
void run(TargetControllerConsole& targetControllerConsole) override;
};
}