Remove axF (#505)

Co-authored-by: Maijin <maijin21@gmail.com>
This commit is contained in:
Maijin 2021-02-01 18:03:33 +01:00 committed by GitHub
parent 7ec33c3cb4
commit 5ffa09ab86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 25 deletions

View file

@ -726,7 +726,6 @@ static const char *help_msg_ax[] = {
"axd", " addr [at]", "add data ref",
"axq", "", "list refs in quiet/human-readable format",
"axj", "", "list refs in json format",
"axF", " [flg-glob]", "find data/code references of flags",
"axm", " addr [at]", "copy data/code references pointing to addr to also point to curseek (or at)",
"axt", "[?] [addr]", "find data/code references to this address",
"axf", " [addr]", "find data/code references from this address",
@ -923,26 +922,6 @@ static bool cc_print(void *p, const char *k, const char *v) {
return true;
}
static void find_refs(RzCore *core, const char *glob) {
char cmd[128];
ut64 curseek = core->offset;
while (*glob == ' ')
glob++;
if (!*glob) {
glob = "str.";
}
if (*glob == '?') {
eprintf("Usage: axF [flag-str-filter]\n");
return;
}
eprintf("Finding references of flags matching '%s'...\n", glob);
snprintf(cmd, sizeof(cmd) - 1, ".(findstref) @@=`f~%s[0]`", glob);
rz_core_cmd0(core, "(findstref;f here=$$;s entry0;/r here;f-here)");
rz_core_cmd0(core, cmd);
rz_core_cmd0(core, "(-findstref)");
rz_core_seek(core, curseek, true);
}
/* set flags for every function */
static void flag_every_function(RzCore *core) {
RzListIter *iter;
@ -7636,9 +7615,6 @@ static bool cmd_analysis_refs(RzCore *core, const char *input) {
rz_list_free(list);
}
break;
case 'F': // "axF"
find_refs(core, input + 1);
break;
case 'C': // "axC"
case 'c': // "axc"
case 'd': // "axd"

View file

@ -885,7 +885,7 @@ static const char *rizin_argv[] = {
"as?", "as", "asc", "asca", "asf", "asj", "asl", "ask",
"av?", "av", "avj", "av*", "avr", "avra", "avraj", "avrr", "avrD",
"at",
"ax?", "ax", "ax*", "ax-", "ax-*", "axc", "axC", "axg", "axg*", "axgj", "axd", "axw", "axj", "axF",
"ax?", "ax", "ax*", "ax-", "ax-*", "axc", "axC", "axg", "axg*", "axgj", "axd", "axw", "axj",
"axt", "axf", "ax.", "axff", "axffj", "axs",
"b?", "b", "b+", "b-", "bf", "bm",
"c?", "c", "c1", "c2", "c4", "c8", "cc", "ccd", "cf", "cg?", "cg", "cgf", "cgff", "cgfc", "cgfn", "cgo",