Updated memory inspection refresh routine to include the refreshing of the stack pointer value.
This commit is contained in:
@@ -98,6 +98,11 @@ void HexViewerWidget::updateValues(const Targets::TargetMemoryBuffer& buffer) {
|
||||
this->byteItemGraphicsScene->updateValues(buffer);
|
||||
}
|
||||
|
||||
void HexViewerWidget::setStackPointer(std::uint32_t stackPointer) {
|
||||
this->settings.stackPointerAddress = stackPointer;
|
||||
this->byteItemGraphicsScene->update();
|
||||
}
|
||||
|
||||
void HexViewerWidget::resizeEvent(QResizeEvent* event) {
|
||||
this->container->setFixedSize(
|
||||
this->width(),
|
||||
|
||||
@@ -38,6 +38,8 @@ namespace Bloom::Widgets
|
||||
|
||||
void updateValues(const Targets::TargetMemoryBuffer& buffer);
|
||||
|
||||
void setStackPointer(std::uint32_t stackPointer);
|
||||
|
||||
protected:
|
||||
void resizeEvent(QResizeEvent* event) override;
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include "src/Insight/UserInterfaces/InsightWindow/UiLoader.hpp"
|
||||
|
||||
#include "src/Insight/InsightWorker/Tasks/ReadTargetMemory.hpp"
|
||||
#include "src/Insight/InsightWorker/Tasks/ReadStackPointer.hpp"
|
||||
|
||||
#include "src/Helpers/Paths.hpp"
|
||||
#include "src/Exceptions/Exception.hpp"
|
||||
@@ -84,7 +85,21 @@ void TargetMemoryInspectionPane::refreshMemoryValues(std::optional<std::function
|
||||
readMemoryTask,
|
||||
&ReadTargetMemory::targetMemoryRead,
|
||||
this,
|
||||
&TargetMemoryInspectionPane::onMemoryRead
|
||||
[this] (const Targets::TargetMemoryBuffer& buffer) {
|
||||
this->onMemoryRead(buffer);
|
||||
|
||||
auto* readStackPointerTask = new ReadStackPointer();
|
||||
QObject::connect(
|
||||
readStackPointerTask,
|
||||
&ReadStackPointer::stackPointerRead,
|
||||
this,
|
||||
[this] (std::uint32_t stackPointer) {
|
||||
this->hexViewerWidget->setStackPointer(stackPointer);
|
||||
}
|
||||
);
|
||||
|
||||
this->insightWorker.queueTask(readStackPointerTask);
|
||||
}
|
||||
);
|
||||
|
||||
QObject::connect(
|
||||
|
||||
Reference in New Issue
Block a user