Use cmdRaw and cmdRawAt in DisassemblerGraphView

This commit is contained in:
itayc0hen 2020-03-20 20:13:52 +02:00 committed by Itay Cohen
parent 4f01d54443
commit fa2350dfb6

View File

@ -1177,7 +1177,7 @@ void DisassemblerGraphView::exportGraph(QString filePath, GraphExportType type)
return;
}
QTextStream fileOut(&file);
fileOut << Core()->cmd(QString("agfd 0x%1").arg(currentFcnAddr, 0, 16));
fileOut << Core()->cmdRaw(QString("agfd 0x%1").arg(currentFcnAddr, 0, 16));
}
break;
@ -1206,8 +1206,9 @@ void DisassemblerGraphView::exportR2GraphvizGraph(QString filePath, QString type
{
TempConfig tempConfig;
tempConfig.set("graph.gv.format", type);
qWarning() << Core()->cmdRaw(QString("agfw \"%1\" @ 0x%2")
.arg(filePath).arg(currentFcnAddr, 0, 16));
qWarning() << Core()->cmdRawAt(QString("agfw \"%1\"")
.arg(filePath),
currentFcnAddr);
}
void DisassemblerGraphView::mousePressEvent(QMouseEvent *event)