Use standard help api for aeim too ##shell

This commit is contained in:
pancake 2022-04-10 12:04:31 +02:00 committed by pancake
parent 296d094f36
commit b023f737bb

View File

@ -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;
}