mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-25 06:09:50 +00:00
Fix afn without argument issue
This commit is contained in:
parent
e0e15baa6c
commit
b5d1bbf333
@ -1279,12 +1279,6 @@ static int cmd_anal_fcn(RCore *core, const char *input) {
|
||||
break;
|
||||
case 'n': // "afn"
|
||||
switch (input[2]) {
|
||||
case '?':
|
||||
eprintf ("Usage: afn[sa] - analyze function names\n");
|
||||
eprintf (" afna - construct a function name for the current offset\n");
|
||||
eprintf (" afns - list all strings associated with the current function\n");
|
||||
eprintf (" afn [name] - rename function\n");
|
||||
break;
|
||||
case 's':
|
||||
free (r_core_anal_fcn_autoname (core, core->offset, 1));
|
||||
break;
|
||||
@ -1297,7 +1291,7 @@ static int cmd_anal_fcn(RCore *core, const char *input) {
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
case ' ':
|
||||
{
|
||||
ut64 off = core->offset;
|
||||
char *p, *name = strdup (input + 3);
|
||||
@ -1316,6 +1310,12 @@ static int cmd_anal_fcn(RCore *core, const char *input) {
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
eprintf ("Usage: afn[sa] - analyze function names\n");
|
||||
eprintf (" afna - construct a function name for the current offset\n");
|
||||
eprintf (" afns - list all strings associated with the current function\n");
|
||||
eprintf (" afn [name] - rename function\n");
|
||||
break;
|
||||
}
|
||||
break;
|
||||
#if 0
|
||||
|
Loading…
Reference in New Issue
Block a user