Remove global variable in esil loop ##globals

This commit is contained in:
pancake 2022-09-14 16:10:28 +02:00
parent a29e9463af
commit 7cfbb22d6f
2 changed files with 0 additions and 16 deletions

View File

@ -3583,7 +3583,6 @@ static int evalWord(RAnalEsil *esil, const char *ostr, const char **str) {
}
static bool __stepOut(RAnalEsil *esil, const char *cmd) {
#if R2_580
if (cmd && esil && esil->cmd && !esil->in_cmd_step) {
esil->in_cmd_step = true;
if (esil->cmd (esil, cmd, esil->address, 0)) {
@ -3593,18 +3592,6 @@ static bool __stepOut(RAnalEsil *esil, const char *cmd) {
}
esil->in_cmd_step = false;
}
#else
static R_TH_LOCAL bool inCmdStep = false;
if (cmd && esil && esil->cmd && !inCmdStep) {
inCmdStep = true;
if (esil->cmd (esil, cmd, esil->address, 0)) {
inCmdStep = false;
// if returns 1 we skip the impl
return true;
}
inCmdStep = false;
}
#endif
return false;
}

View File

@ -1213,14 +1213,11 @@ typedef struct r_anal_esil_t {
bool (*cmd)(ESIL *esil, const char *name, ut64 a0, ut64 a1);
void *user;
int stack_fd; // ahem, let's not do this
#if R2_580
bool in_cmd_step;
#endif
} RAnalEsil;
#undef ESIL
enum {
R_ANAL_ESIL_OP_TYPE_UNKNOWN = 0x1,
R_ANAL_ESIL_OP_TYPE_CONTROL_FLOW,