Show dst instruction in xrefs from, Fix #113

This commit is contained in:
Florian Märkl 2017-11-28 12:22:48 +01:00
parent d608c8d067
commit 85c2e32e16
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ void XrefsDialog::fillRefs(QList<XrefDescription> refs, QList<XrefDescription> x
QTreeWidgetItem *tempItem = new QTreeWidgetItem();
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));
ui->fromTreeWidget->insertTopLevelItem(0, tempItem);
}

View File

@ -169,7 +169,7 @@ void SidebarWidget::fill_refs(QList<XrefDescription> refs, QList<XrefDescription
XrefDescription xref = refs[i];
QTreeWidgetItem *tempItem = new QTreeWidgetItem();
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));
QString tooltip = Core()->cmd("pdi 10 @ " + QString::number(xref.to)).trimmed();
tempItem->setToolTip(0, tooltip);