Fix "ta" commands after radare2 command refactoring #1774 (#1775)

* Fix "ta" commands after radare2 command refactoring #1774

* update radare2 submodule
This commit is contained in:
Óscar Carrasco 2019-09-15 12:41:12 +01:00 committed by Itay Cohen
parent b866e16b26
commit e7ead2e1b6
5 changed files with 7 additions and 7 deletions

@ -1 +1 @@
Subproject commit b4860e4eecad2053202965926f16296864b2f1e5 Subproject commit 0587b7f6d7c7e70217b31cd2e2cfdf59fb13bc99

View File

@ -638,7 +638,7 @@ void CutterCore::applyStructureOffset(const QString &structureOffset, RVA offset
offset = getOffset(); offset = getOffset();
} }
this->cmdRaw("ta " + structureOffset + " @ " + QString::number(offset)); this->cmdRaw("aht " + structureOffset + " @ " + QString::number(offset));
emit instructionChanged(offset); emit instructionChanged(offset);
} }

View File

@ -115,7 +115,7 @@ public:
/** /**
* @brief Changes immediate displacement to structure offset * @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 * offset to the immediate displacement used in the given instruction
* \param structureOffset The name of struct which will be applied * \param structureOffset The name of struct which will be applied
* \param offset The address of the instruction where the struct will be applied * \param offset The address of the instruction where the struct will be applied

View File

@ -59,7 +59,7 @@ InitialOptionsDialog::InitialOptionsDialog(MainWindow *main):
{ { "avrr", tr("Recover class information from RTTI") }, new QCheckBox(), false }, { { "avrr", tr("Recover class information from RTTI") }, new QCheckBox(), false },
{ { "aan", tr("Autoname functions based on context") }, new QCheckBox(), false }, { { "aan", tr("Autoname functions based on context") }, new QCheckBox(), false },
{ { "aae", tr("Emulate code to find computed references") }, 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 }, { { "aaft", tr("Type and Argument matching analysis") }, new QCheckBox(), false },
{ { "aaT", tr("Analyze code after trap-sleds") }, new QCheckBox(), false }, { { "aaT", tr("Analyze code after trap-sleds") }, new QCheckBox(), false },
{ { "aap", tr("Analyze function preludes") }, new QCheckBox(), false }, { { "aap", tr("Analyze function preludes") }, new QCheckBox(), false },

View File

@ -360,9 +360,9 @@ void DisassemblyContextMenu::aboutToShowSlot()
structureOffsetMenu->menuAction()->setVisible(true); structureOffsetMenu->menuAction()->setVisible(true);
structureOffsetMenu->clear(); structureOffsetMenu->clear();
// Get the possible offsets using the "tas" command // Get the possible offsets using the "ahts" command
// TODO: add tasj command to radare2 and then use it here // TODO: add ahtj command to radare2 and then use it here
QStringList ret = Core()->cmdList("tas " + memDisp.toString()); QStringList ret = Core()->cmdList("ahts " + memDisp.toString());
for (const QString &val : ret) { for (const QString &val : ret) {
if (val.isEmpty()) { if (val.isEmpty()) {
continue; continue;