mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-19 03:16:10 +00:00
parent
df59a96094
commit
3c6f735832
@ -209,6 +209,7 @@ public:
|
||||
void analyze(int level, QList<QString> advanced);
|
||||
|
||||
// Seek functions
|
||||
bool graphDisplay = false;
|
||||
void seek(QString addr);
|
||||
void seek(ut64 offset);
|
||||
void seekPrev();
|
||||
|
@ -80,9 +80,7 @@ void XrefsDialog::on_fromTreeWidget_itemDoubleClicked(QTreeWidgetItem *item, int
|
||||
|
||||
XrefDescription xref = item->data(0, Qt::UserRole).value<XrefDescription>();
|
||||
RAnalFunction *fcn = this->core->functionAt(xref.to);
|
||||
// TODO Seek
|
||||
//this->main->seek(xref.to, fcn ? QString::fromUtf8(fcn->name) : QString::null, true);
|
||||
|
||||
Core()->seek(xref.to);
|
||||
this->close();
|
||||
}
|
||||
|
||||
@ -92,9 +90,7 @@ void XrefsDialog::on_toTreeWidget_itemDoubleClicked(QTreeWidgetItem *item, int c
|
||||
|
||||
XrefDescription xref = item->data(0, Qt::UserRole).value<XrefDescription>();
|
||||
RAnalFunction *fcn = this->core->functionAt(xref.from);
|
||||
// TODO Seek
|
||||
//this->main->seek(xref.from, fcn ? QString::fromUtf8(fcn->name) : QString::null, true);
|
||||
|
||||
Core()->seek(xref.from);
|
||||
this->close();
|
||||
}
|
||||
|
||||
|
@ -1410,6 +1410,7 @@ void DisassemblerGraphView::renderFunction(Function & func)
|
||||
|
||||
void DisassemblerGraphView::updateTimerEvent()
|
||||
{
|
||||
qDebug() << "Update timer";
|
||||
on_seekChanged(0);
|
||||
return;
|
||||
// TODO: Remove it if not used anymore
|
||||
@ -1641,6 +1642,13 @@ void DisassemblerGraphView::on_seekChanged(RVA addr)
|
||||
{
|
||||
Q_UNUSED(addr);
|
||||
loadCurrentGraph();
|
||||
Function f = this->analysis.functions[this->function];
|
||||
if (f.blocks.size() > 0) {
|
||||
Core()->graphDisplay = true;
|
||||
this->parentWidget()->raise();
|
||||
} else {
|
||||
Core()->graphDisplay = false;
|
||||
}
|
||||
this->renderFunction(this->analysis.functions[this->function]);
|
||||
}
|
||||
|
||||
|
@ -356,6 +356,9 @@ bool DisassemblyWidget::eventFilter(QObject *obj, QEvent *event)
|
||||
void DisassemblyWidget::on_seekChanged(RVA offset)
|
||||
{
|
||||
Q_UNUSED(offset);
|
||||
if (!Core()->graphDisplay) {
|
||||
this->raise();
|
||||
}
|
||||
refreshDisasm();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user