asm.varsum -> asm.var.summary, asm.vars -> asm.var (#10083)

This commit is contained in:
Khairul Azhar Kasmiran 2018-05-13 10:03:35 +08:00 committed by radare
parent 367c24aaba
commit 94b3ae12a8
2 changed files with 4 additions and 4 deletions

View File

@ -2496,10 +2496,10 @@ R_API int r_core_config_init(RCore *core) {
SETPREF ("asm.tracespace", "false", "Indent disassembly with trace.count information");
SETPREF ("asm.ucase", "false", "Use uppercase syntax at disassembly");
SETPREF ("asm.capitalize", "false", "Use camelcase at disassembly");
SETPREF ("asm.vars", "true", "Show local function variables in disassembly");
SETPREF ("asm.var", "true", "Show local function variables in disassembly");
SETPREF ("asm.varxs", "false", "Show accesses of local variables");
SETPREF ("asm.var.sub", "true", "Substitute variables in disassembly");
SETI ("asm.varsum", 0, "Show variables summary instead of full list in disasm (0, 1, 2)");
SETI ("asm.var.summary", 0, "Show variables summary instead of full list in disasm (0, 1, 2)");
SETPREF ("asm.var.subonly", "true", "Substitute the entire variable expression with the local variable name (e.g. [local10h] instead of [ebp+local10h])");
SETPREF ("asm.relsub", "true", "Substitute pc relative expressions in disasm");
SETPREF ("asm.cmt.fold", "false", "Fold comments, toggle with Vz");

View File

@ -594,8 +594,8 @@ static RDisasmState * ds_init(RCore *core) {
core->parser->relsub = r_config_get_i (core->config, "asm.relsub");
core->parser->localvar_only = r_config_get_i (core->config, "asm.var.subonly");
core->parser->retleave_asm = NULL;
ds->show_vars = r_config_get_i (core->config, "asm.vars");
ds->show_varsum = r_config_get_i (core->config, "asm.varsum");
ds->show_vars = r_config_get_i (core->config, "asm.var");
ds->show_varsum = r_config_get_i (core->config, "asm.var.summary");
ds->show_varxs = r_config_get_i (core->config, "asm.varxs");
ds->maxrefs = r_config_get_i (core->config, "asm.maxrefs");
ds->show_lines = r_config_get_i (core->config, "asm.lines");