Skip to content

Commit

Permalink
Add afcj as an alias for afcfj ##shell
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Oct 25, 2023
1 parent 4142371 commit 06cfc0f
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions libr/core/cmd_anal.inc.c
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,7 @@ static RCoreHelpMessage help_msg_afc = {
"afcr", "[j]", "show register usage for the current function",
"afcf", "[j] [name]", "prints return type function(arg1, arg2...), see afij",
"afci", "", "information about the current calling convention",
"afcj", "", "show current calling convention info in JSON",
"afck", "", "list SDB details of call loaded calling conventions",
"afcl", "", "list all available calling conventions",
"afcll", "", "show all call conventions and its definition",
Expand Down Expand Up @@ -5147,13 +5148,23 @@ static int cmd_af(RCore *core, const char *input) {
}
break;
case 'i':
cmd_afci (core, fcn);
if (input[3] == 'j') {
r_core_cmd_call (core, "afcfj");
} else if (input[3] == '?') {
r_core_cmd_help_match (core, help_msg_afc, "afci", true);
} else {
cmd_afci (core, fcn);
}
break;
case 'f': // "afcf" "afcfj"
cmd_anal_fcn_sig (core, input + 3);
break;
case 'k': // "afck"
cmd_afck (core, NULL);
if (input[3] == '?') {
r_core_cmd_help_match (core, help_msg_afc, "afck", true);
} else {
cmd_afck (core, NULL);
}
break;
case 'l': // "afcl" list all function Calling conventions.
if (input[3] == '?') {
Expand All @@ -5177,6 +5188,9 @@ static int cmd_af(RCore *core, const char *input) {
free (dbpath);
}
break;
case 'j': // "afcj"
r_core_cmd_call (core, "afcfj");
break;
case 'r': { // "afcr"
int i;
PJ *pj = NULL;
Expand Down

0 comments on commit 06cfc0f

Please sign in to comment.