@@ -1235,9 +1235,9 @@ RZ_API void rz_core_analysis_esil(RzCore *core, ut64 addr, ut64 size, RZ_NULLABL
12351235 bool cfg_analysis_strings = rz_config_get_i (core -> config , "analysis.strings" );
12361236 bool emu_lazy = rz_config_get_i (core -> config , "emu.lazy" );
12371237 bool gp_fixed = rz_config_get_i (core -> config , "analysis.gpfixed" );
1238- RzAnalysisEsilInterState * estate = rz_analysis_get_esil_inter_state (core -> analysis );
12391238 ut64 refptr = 0LL ;
12401239 const char * pcname ;
1240+ RzAnalysisEsilInterState * estate = NULL ;
12411241 RzAnalysisOp op = RZ_EMPTY ;
12421242 ut8 * buf = NULL ;
12431243 ut64 iend ;
@@ -1261,7 +1261,6 @@ RZ_API void rz_core_analysis_esil(RzCore *core, ut64 addr, ut64 size, RZ_NULLABL
12611261 RZ_LOG_ERROR ("core: cannot allocate %" PFMT64u "\n" , (iend + 2 ));
12621262 return ;
12631263 }
1264- estate -> last_read = UT64_MAX ;
12651264 rz_io_read_at_mapped (core -> io , start , buf , iend + 1 );
12661265 rz_reg_arena_push (rreg );
12671266
@@ -1275,6 +1274,8 @@ RZ_API void rz_core_analysis_esil(RzCore *core, ut64 addr, ut64 size, RZ_NULLABL
12751274 }
12761275 rz_core_analysis_esil_init_mem (core , NULL , UT64_MAX , UT32_MAX );
12771276 }
1277+ estate = rz_analysis_get_esil_inter_state (core -> analysis );
1278+ estate -> last_read = UT64_MAX ;
12781279 const char * spname = rz_reg_get_name (rreg , RZ_REG_NAME_SP );
12791280 EsilBreakCtx ctx = {
12801281 .op = & op ,
0 commit comments