mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-25 06:09:50 +00:00
afn without arg show current function name
This commit is contained in:
parent
b5d1bbf333
commit
22b78d5c73
@ -1291,6 +1291,14 @@ static int cmd_anal_fcn(RCore *core, const char *input) {
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 0:
|
||||
{
|
||||
RAnalFunction *fcn = r_anal_get_fcn_in (core->anal, core->offset, -1);
|
||||
if (fcn) {
|
||||
r_cons_printf ("%s\n", fcn->name);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case ' ':
|
||||
{
|
||||
ut64 off = core->offset;
|
||||
|
Loading…
Reference in New Issue
Block a user