New insight worker task for fetching the current stack pointer
This commit is contained in:
@@ -145,6 +145,7 @@ add_executable(Bloom
|
||||
src/Insight/InsightWorker/Tasks/RefreshTargetPinStates.cpp
|
||||
src/Insight/InsightWorker/Tasks/SetTargetPinState.cpp
|
||||
src/Insight/InsightWorker/Tasks/ReadTargetMemory.cpp
|
||||
src/Insight/InsightWorker/Tasks/ReadStackPointer.cpp
|
||||
src/Insight/InsightWorker/Tasks/QueryLatestVersionNumber.cpp
|
||||
|
||||
# Error dialogue window
|
||||
|
||||
7
src/Insight/InsightWorker/Tasks/ReadStackPointer.cpp
Normal file
7
src/Insight/InsightWorker/Tasks/ReadStackPointer.cpp
Normal file
@@ -0,0 +1,7 @@
|
||||
#include "ReadStackPointer.hpp"
|
||||
|
||||
using namespace Bloom;
|
||||
|
||||
void ReadStackPointer::run(TargetControllerConsole& targetControllerConsole) {
|
||||
emit this->stackPointerRead(targetControllerConsole.getStackPointer());
|
||||
}
|
||||
20
src/Insight/InsightWorker/Tasks/ReadStackPointer.hpp
Normal file
20
src/Insight/InsightWorker/Tasks/ReadStackPointer.hpp
Normal 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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user