mirror of
https://github.com/rizinorg/cutter.git
synced 2025-02-20 13:46:06 +00:00
* Fix "ta" commands after radare2 command refactoring #1774 * update radare2 submodule
This commit is contained in:
parent
b866e16b26
commit
e7ead2e1b6
2
radare2
2
radare2
@ -1 +1 @@
|
||||
Subproject commit b4860e4eecad2053202965926f16296864b2f1e5
|
||||
Subproject commit 0587b7f6d7c7e70217b31cd2e2cfdf59fb13bc99
|
@ -638,7 +638,7 @@ void CutterCore::applyStructureOffset(const QString &structureOffset, RVA offset
|
||||
offset = getOffset();
|
||||
}
|
||||
|
||||
this->cmdRaw("ta " + structureOffset + " @ " + QString::number(offset));
|
||||
this->cmdRaw("aht " + structureOffset + " @ " + QString::number(offset));
|
||||
emit instructionChanged(offset);
|
||||
}
|
||||
|
||||
|
@ -115,7 +115,7 @@ public:
|
||||
|
||||
/**
|
||||
* @brief Changes immediate displacement to structure offset
|
||||
* This function makes use of the "ta" command of r2 to apply structure
|
||||
* This function makes use of the "aht" command of r2 to apply structure
|
||||
* offset to the immediate displacement used in the given instruction
|
||||
* \param structureOffset The name of struct which will be applied
|
||||
* \param offset The address of the instruction where the struct will be applied
|
||||
|
@ -59,7 +59,7 @@ InitialOptionsDialog::InitialOptionsDialog(MainWindow *main):
|
||||
{ { "avrr", tr("Recover class information from RTTI") }, new QCheckBox(), false },
|
||||
{ { "aan", tr("Autoname functions based on context") }, new QCheckBox(), false },
|
||||
{ { "aae", tr("Emulate code to find computed references") }, new QCheckBox(), false },
|
||||
{ { "aat", tr("Analyze all consecutive functions") }, new QCheckBox(), false },
|
||||
{ { "aafr", tr("Analyze all consecutive functions") }, new QCheckBox(), false },
|
||||
{ { "aaft", tr("Type and Argument matching analysis") }, new QCheckBox(), false },
|
||||
{ { "aaT", tr("Analyze code after trap-sleds") }, new QCheckBox(), false },
|
||||
{ { "aap", tr("Analyze function preludes") }, new QCheckBox(), false },
|
||||
|
@ -360,9 +360,9 @@ void DisassemblyContextMenu::aboutToShowSlot()
|
||||
structureOffsetMenu->menuAction()->setVisible(true);
|
||||
structureOffsetMenu->clear();
|
||||
|
||||
// Get the possible offsets using the "tas" command
|
||||
// TODO: add tasj command to radare2 and then use it here
|
||||
QStringList ret = Core()->cmdList("tas " + memDisp.toString());
|
||||
// Get the possible offsets using the "ahts" command
|
||||
// TODO: add ahtj command to radare2 and then use it here
|
||||
QStringList ret = Core()->cmdList("ahts " + memDisp.toString());
|
||||
for (const QString &val : ret) {
|
||||
if (val.isEmpty()) {
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user