1
0
Fork 0

GUI: find references in dump will not search for references to a range of selected addresses in the disassembly selection page

This commit is contained in:
Mr. eXoDia 2014-11-12 23:14:41 +01:00
parent 684dad5773
commit 011c541225
1 changed files with 6 additions and 2 deletions

View File

@ -1146,8 +1146,12 @@ void CPUDump::hardwareRemoveSlot()
void CPUDump::findReferencesSlot() void CPUDump::findReferencesSlot()
{ {
QString addrText = QString("%1").arg(rvaToVa(getInitialSelection()), sizeof(int_t) * 2, 16, QChar('0')).toUpper(); SELECTIONDATA selection;
DbgCmdExec(QString("findref " + addrText + ", " + addrText).toUtf8().constData()); GuiSelectionGet(GUI_DISASSEMBLY, &selection);
QString addrStart = QString("%1").arg(rvaToVa(getSelectionStart()), sizeof(int_t) * 2, 16, QChar('0')).toUpper();
QString addrEnd = QString("%1").arg(rvaToVa(getSelectionEnd()), sizeof(int_t) * 2, 16, QChar('0')).toUpper();
QString addrDisasm = QString("%1").arg(selection.start, sizeof(int_t) * 2, 16, QChar('0')).toUpper();
DbgCmdExec(QString("findrefrange " + addrStart + ", " + addrEnd + ", " + addrDisasm).toUtf8().constData());
emit displayReferencesWidget(); emit displayReferencesWidget();
} }