mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-19 19:36:11 +00:00
Fixes #3 and other related issues
This commit is contained in:
parent
5032c9104d
commit
ba8f60fe56
@ -825,7 +825,8 @@ void MainWindow::on_backButton_clicked()
|
||||
this->core->cmd("s-");
|
||||
QString back_offset = this->core->cmd("s=").split(" > ").last().trimmed();
|
||||
if (back_offset != "") {
|
||||
this->seek(back_offset);
|
||||
QString fcn = this->core->cmdFunctionAt(back_offset);
|
||||
this->seek(this->memoryDock->normalizeAddr(back_offset), fcn);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1597,9 +1597,9 @@ bool MemoryWidget::eventFilter(QObject *obj, QEvent *event) {
|
||||
jump = this->main->core->getOffsetJump(ele);
|
||||
if (jump != "") {
|
||||
if (jump.contains("0x")) {
|
||||
RAnalFunction *fcn = this->main->core->functionAt(jump.toLongLong(0, 16));
|
||||
if (fcn) {
|
||||
this->main->seek(jump, fcn->name);
|
||||
QString fcn = this->main->core->cmdFunctionAt(jump);
|
||||
if (fcn != "") {
|
||||
this->main->seek(jump.trimmed(), fcn);
|
||||
}
|
||||
} else {
|
||||
this->main->seek(this->main->core->cmd("?v " + jump), jump);
|
||||
|
@ -72,6 +72,8 @@ public slots:
|
||||
|
||||
QString normalize_addr(QString addr);
|
||||
|
||||
QString normalizeAddr(QString addr);
|
||||
|
||||
void setFcnName(QString addr);
|
||||
|
||||
void setMiniGraph(QString at);
|
||||
@ -164,7 +166,6 @@ private slots:
|
||||
void on_copyMD5_clicked();
|
||||
void on_copySHA1_clicked();
|
||||
void on_simpleGrapgToolButton_clicked();
|
||||
QString normalizeAddr(QString addr);
|
||||
void on_opcodeDescButton_clicked();
|
||||
void seek_back();
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user