From 613928748703319fa01b1e25fb98c6092bac9165 Mon Sep 17 00:00:00 2001 From: pancake Date: Thu, 27 Dec 2018 00:46:22 +0100 Subject: [PATCH] Save and disable asm.stackptr in pdc ##glitch --- libr/core/pseudo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libr/core/pseudo.c b/libr/core/pseudo.c index b0cca18fa5..254b9e83a5 100644 --- a/libr/core/pseudo.c +++ b/libr/core/pseudo.c @@ -175,7 +175,7 @@ R_API int r_core_pseudo_code(RCore *core, const char *input) { if (!hc) { return false; } - r_config_save_num (hc, "asm.pseudo", "asm.decode", "asm.lines", "asm.bytes", NULL); + r_config_save_num (hc, "asm.pseudo", "asm.decode", "asm.lines", "asm.bytes", "asm.stackptr", NULL); r_config_save_num (hc, "asm.offset", "asm.flags", "asm.lines.fcn", "asm.comments", NULL); r_config_save_num (hc, "asm.functions", "asm.section", "asm.cmt.col", "asm.filter", NULL); r_config_save_num (hc, "scr.color", "emu.str", "asm.emu", "emu.write", NULL); @@ -186,6 +186,7 @@ R_API int r_core_pseudo_code(RCore *core, const char *input) { return false; } r_config_set_i (core->config, "scr.color", 0); + r_config_set_i (core->config, "asm.stackptr", 0); r_config_set_i (core->config, "asm.pseudo", 1); r_config_set_i (core->config, "asm.decode", 0); r_config_set_i (core->config, "asm.filter", 1);