mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-21 04:16:12 +00:00
Show dst instruction in xrefs from, Fix #113
This commit is contained in:
parent
d608c8d067
commit
85c2e32e16
@ -43,7 +43,7 @@ void XrefsDialog::fillRefs(QList<XrefDescription> refs, QList<XrefDescription> x
|
|||||||
|
|
||||||
QTreeWidgetItem *tempItem = new QTreeWidgetItem();
|
QTreeWidgetItem *tempItem = new QTreeWidgetItem();
|
||||||
tempItem->setText(0, xref.to_str);
|
tempItem->setText(0, xref.to_str);
|
||||||
tempItem->setText(1, core->disassembleSingleInstruction(xref.from));
|
tempItem->setText(1, core->disassembleSingleInstruction(xref.to));
|
||||||
tempItem->setText(2, xrefTypeString(xref.type));
|
tempItem->setText(2, xrefTypeString(xref.type));
|
||||||
ui->fromTreeWidget->insertTopLevelItem(0, tempItem);
|
ui->fromTreeWidget->insertTopLevelItem(0, tempItem);
|
||||||
}
|
}
|
||||||
|
@ -169,7 +169,7 @@ void SidebarWidget::fill_refs(QList<XrefDescription> refs, QList<XrefDescription
|
|||||||
XrefDescription xref = refs[i];
|
XrefDescription xref = refs[i];
|
||||||
QTreeWidgetItem *tempItem = new QTreeWidgetItem();
|
QTreeWidgetItem *tempItem = new QTreeWidgetItem();
|
||||||
tempItem->setText(0, RAddressString(xref.to));
|
tempItem->setText(0, RAddressString(xref.to));
|
||||||
tempItem->setText(1, Core()->disassembleSingleInstruction(xref.from));
|
tempItem->setText(1, Core()->disassembleSingleInstruction(xref.to));
|
||||||
tempItem->setData(0, Qt::UserRole, QVariant::fromValue(xref));
|
tempItem->setData(0, Qt::UserRole, QVariant::fromValue(xref));
|
||||||
QString tooltip = Core()->cmd("pdi 10 @ " + QString::number(xref.to)).trimmed();
|
QString tooltip = Core()->cmd("pdi 10 @ " + QString::number(xref.to)).trimmed();
|
||||||
tempItem->setToolTip(0, tooltip);
|
tempItem->setToolTip(0, tooltip);
|
||||||
|
Loading…
Reference in New Issue
Block a user