From b023f737bbae747d6d319dcf981bd0e9d4006171 Mon Sep 17 00:00:00 2001 From: pancake Date: Sun, 10 Apr 2022 12:04:31 +0200 Subject: [PATCH] Use standard help api for `aeim` too ##shell --- libr/core/cmd_anal.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/libr/core/cmd_anal.c b/libr/core/cmd_anal.c index 55379fa65c..c1c951f330 100644 --- a/libr/core/cmd_anal.c +++ b/libr/core/cmd_anal.c @@ -640,7 +640,7 @@ static const char *help_msg_aft[] = { }; static const char *help_msg_afv[] = { - "Usage:", "afv","[rbs]", + "Usage:", "afv[rbs]"," Function variables manipulation", "afv*", "", "output r2 command to add args/locals to flagspace", "afv-", "([name])", "remove all or given var", "afv=", "", "list function variables and arguments with disasm refs", @@ -658,6 +658,14 @@ static const char *help_msg_afv[] = { NULL }; +static const char *help_msg_aeim[] = { + "Usage:", "aeim", " [addr] [size] [name] - initialize the ESIL VM stack", + "aeim", "", "initialize esil memory with default values from esil.stack.* evals", + "aeim", " 0x10000", "same as aeim@e:esil.stack.addr=0x10000", + "aeim", " 0x10000 2M mystack", "give a name to that new 2MB stack", + NULL +}; + static const char *help_msg_afvb[] = { "Usage:", "afvb", " [idx] [name] ([type])", "afvb", "", "list base pointer based arguments, locals", @@ -5942,9 +5950,7 @@ static void cmd_esil_mem(RCore *core, const char *input) { } } if (*input == '?') { - eprintf ("Usage: aeim [addr] [size] [name] - initialize ESIL VM stack\n"); - eprintf ("Default: 0x100000 0xf0000\n"); - eprintf ("See ae? for more help\n"); + r_core_cmd_help (core, help_msg_aeim); return; }