diff --git a/src/widgets/memorywidget.cpp b/src/widgets/memorywidget.cpp index 1af3f946..15b29138 100644 --- a/src/widgets/memorywidget.cpp +++ b/src/widgets/memorywidget.cpp @@ -505,7 +505,12 @@ void MemoryWidget::refreshDisasm(const QString &offset) QString ele = elements[0]; if (ele.contains("0x")) { - this->main->core->cmd("s " + ele); + QString fcn = this->main->core->cmdFunctionAt(ele); + if (fcn != "") { + this->main->core->cmd("s " + fcn); + } else { + this->main->core->cmd("s " + ele); + } } } }