Skip to content

Commit e7ead2e

Browse files
oxcabeITAYC0HEN
authored andcommitted
Fix "ta" commands after radare2 command refactoring rizinorg#1774 (rizinorg#1775)
* Fix "ta" commands after radare2 command refactoring rizinorg#1774 * update radare2 submodule
1 parent b866e16 commit e7ead2e

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

radare2

src/core/Cutter.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ void CutterCore::applyStructureOffset(const QString &structureOffset, RVA offset
638638
offset = getOffset();
639639
}
640640

641-
this->cmdRaw("ta " + structureOffset + " @ " + QString::number(offset));
641+
this->cmdRaw("aht " + structureOffset + " @ " + QString::number(offset));
642642
emit instructionChanged(offset);
643643
}
644644

src/core/Cutter.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class CutterCore: public QObject
115115

116116
/**
117117
* @brief Changes immediate displacement to structure offset
118-
* This function makes use of the "ta" command of r2 to apply structure
118+
* This function makes use of the "aht" command of r2 to apply structure
119119
* offset to the immediate displacement used in the given instruction
120120
* \param structureOffset The name of struct which will be applied
121121
* \param offset The address of the instruction where the struct will be applied

src/dialogs/InitialOptionsDialog.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ InitialOptionsDialog::InitialOptionsDialog(MainWindow *main):
5959
{ { "avrr", tr("Recover class information from RTTI") }, new QCheckBox(), false },
6060
{ { "aan", tr("Autoname functions based on context") }, new QCheckBox(), false },
6161
{ { "aae", tr("Emulate code to find computed references") }, new QCheckBox(), false },
62-
{ { "aat", tr("Analyze all consecutive functions") }, new QCheckBox(), false },
62+
{ { "aafr", tr("Analyze all consecutive functions") }, new QCheckBox(), false },
6363
{ { "aaft", tr("Type and Argument matching analysis") }, new QCheckBox(), false },
6464
{ { "aaT", tr("Analyze code after trap-sleds") }, new QCheckBox(), false },
6565
{ { "aap", tr("Analyze function preludes") }, new QCheckBox(), false },

src/menus/DisassemblyContextMenu.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -360,9 +360,9 @@ void DisassemblyContextMenu::aboutToShowSlot()
360360
structureOffsetMenu->menuAction()->setVisible(true);
361361
structureOffsetMenu->clear();
362362

363-
// Get the possible offsets using the "tas" command
364-
// TODO: add tasj command to radare2 and then use it here
365-
QStringList ret = Core()->cmdList("tas " + memDisp.toString());
363+
// Get the possible offsets using the "ahts" command
364+
// TODO: add ahtj command to radare2 and then use it here
365+
QStringList ret = Core()->cmdList("ahts " + memDisp.toString());
366366
for (const QString &val : ret) {
367367
if (val.isEmpty()) {
368368
continue;

0 commit comments

Comments
 (0)