Do not compute asm.stackptr when not requested, fixes slow disasm issue

This commit is contained in:
pancake 2019-03-25 05:48:55 +01:00
parent 08f3b768d1
commit 364396f978

View File

@ -55,7 +55,11 @@ static int _stackptr_range(RDisasmState *ds, ut64 addr, ut64 addr_end, int stack
}
return stackptr;
}
static int ds_ostackptr_atfcn(RDisasmState *ds, int *ostackptr) {
if (!ds->show_stackptr) {
return 0;
}
#if USE_BB_LINEAR
if (ds->at >= ds->fcn->addr) {
return _stackptr_range (ds, ds->fcn->addr, ds->at, 0, ostackptr);