From 153be0ce0a986a1998df901d3d83e5393aceeea3 Mon Sep 17 00:00:00 2001 From: pancake Date: Thu, 16 Apr 2015 10:30:36 +0200 Subject: [PATCH] Fix asm. options lost after `pdc` issue --- libr/core/pseudo.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libr/core/pseudo.c b/libr/core/pseudo.c index b6544a877e..b631d051e1 100644 --- a/libr/core/pseudo.c +++ b/libr/core/pseudo.c @@ -15,6 +15,11 @@ R_API int r_core_pseudo_code (RCore *core, const char *input) { int asmfcnlines = r_config_get_i (core->config, "asm.fcnlines"); int asmcomments = r_config_get_i (core->config, "asm.comments"); int asmfunctions = r_config_get_i (core->config, "asm.functions"); + if (!fcn) { + eprintf ("Cannot find function in 0x%08"PFMT64x"\n", + core->offset); + return R_FALSE; + } 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.lines", 0); @@ -24,11 +29,6 @@ R_API int r_core_pseudo_code (RCore *core, const char *input) { r_config_set_i (core->config, "asm.fcnlines", 0); r_config_set_i (core->config, "asm.comments", 0); r_config_set_i (core->config, "asm.functions", 0); - if (!fcn) { - eprintf ("Cannot find function in 0x%08"PFMT64x"\n", - core->offset); - return R_FALSE; - } db = sdb_new0 ();