aboutsummaryrefslogtreecommitdiff
path: root/src/lj_debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_debug.c')
-rw-r--r--src/lj_debug.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lj_debug.c b/src/lj_debug.c
index 889ac017..1b794753 100644
--- a/src/lj_debug.c
+++ b/src/lj_debug.c
@@ -15,7 +15,6 @@
15#include "lj_frame.h" 15#include "lj_frame.h"
16#include "lj_bc.h" 16#include "lj_bc.h"
17#include "lj_strfmt.h" 17#include "lj_strfmt.h"
18#include "lj_vm.h"
19#if LJ_HASJIT 18#if LJ_HASJIT
20#include "lj_jit.h" 19#include "lj_jit.h"
21#endif 20#endif
@@ -88,8 +87,7 @@ static BCPos debug_framepc(lua_State *L, GCfunc *fn, cTValue *nextframe)
88 if (frame_islua(f)) { 87 if (frame_islua(f)) {
89 f = frame_prevl(f); 88 f = frame_prevl(f);
90 } else { 89 } else {
91 if (frame_isc(f) || (LJ_HASFFI && frame_iscont(f) && 90 if (frame_isc(f) || (frame_iscont(f) && frame_iscont_fficb(f)))
92 (f-1)->u32.lo == LJ_CONT_FFI_CALLBACK))
93 cf = cframe_raw(cframe_prev(cf)); 91 cf = cframe_raw(cframe_prev(cf));
94 f = frame_prevd(f); 92 f = frame_prevd(f);
95 } 93 }