mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-22 12:56:11 +00:00
Fixed disasm context menu actions
This commit is contained in:
parent
7e7c6aad85
commit
00f3c1baee
@ -505,10 +505,15 @@ void MemoryWidget::refreshDisasm(const QString &offset)
|
|||||||
QString ele = elements[0];
|
QString ele = elements[0];
|
||||||
if (ele.contains("0x"))
|
if (ele.contains("0x"))
|
||||||
{
|
{
|
||||||
|
QString fcn = this->main->core->cmdFunctionAt(ele);
|
||||||
|
if (fcn != "") {
|
||||||
|
this->main->core->cmd("s " + fcn);
|
||||||
|
} else {
|
||||||
this->main->core->cmd("s " + ele);
|
this->main->core->cmd("s " + ele);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
QString txt2 = this->main->core->cmd("pd 100");
|
QString txt2 = this->main->core->cmd("pd 100");
|
||||||
this->disasTextEdit->setPlainText(txt2.trimmed());
|
this->disasTextEdit->setPlainText(txt2.trimmed());
|
||||||
|
Loading…
Reference in New Issue
Block a user