Only refresh the stack pointer in the RAM inspection pane (not EEPROM)
This commit is contained in:
@@ -123,17 +123,20 @@ void TargetMemoryInspectionPane::refreshMemoryValues(std::optional<std::function
|
|||||||
[this] (const Targets::TargetMemoryBuffer& buffer) {
|
[this] (const Targets::TargetMemoryBuffer& buffer) {
|
||||||
this->onMemoryRead(buffer);
|
this->onMemoryRead(buffer);
|
||||||
|
|
||||||
auto* readStackPointerTask = new ReadStackPointer();
|
// Refresh the stack pointer if this is RAM.
|
||||||
QObject::connect(
|
if (this->targetMemoryDescriptor.type == Targets::TargetMemoryType::RAM) {
|
||||||
readStackPointerTask,
|
auto* readStackPointerTask = new ReadStackPointer();
|
||||||
&ReadStackPointer::stackPointerRead,
|
QObject::connect(
|
||||||
this,
|
readStackPointerTask,
|
||||||
[this] (std::uint32_t stackPointer) {
|
&ReadStackPointer::stackPointerRead,
|
||||||
this->hexViewerWidget->setStackPointer(stackPointer);
|
this,
|
||||||
}
|
[this] (std::uint32_t stackPointer) {
|
||||||
);
|
this->hexViewerWidget->setStackPointer(stackPointer);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
this->insightWorker.queueTask(readStackPointerTask);
|
this->insightWorker.queueTask(readStackPointerTask);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user