diff options
Diffstat (limited to 'src/lj_debug.c')
-rw-r--r-- | src/lj_debug.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lj_debug.c b/src/lj_debug.c index a639cddf..f3409649 100644 --- a/src/lj_debug.c +++ b/src/lj_debug.c | |||
@@ -101,6 +101,7 @@ static BCPos debug_framepc(lua_State *L, GCfunc *fn, cTValue *nextframe) | |||
101 | pt = funcproto(fn); | 101 | pt = funcproto(fn); |
102 | pos = proto_bcpos(pt, ins) - 1; | 102 | pos = proto_bcpos(pt, ins) - 1; |
103 | #if LJ_HASJIT | 103 | #if LJ_HASJIT |
104 | if (pos == NO_BCPOS) return 1; /* Pretend it's the first bytecode. */ | ||
104 | if (pos > pt->sizebc) { /* Undo the effects of lj_trace_exit for JLOOP. */ | 105 | if (pos > pt->sizebc) { /* Undo the effects of lj_trace_exit for JLOOP. */ |
105 | if (bc_isret(bc_op(ins[-1]))) { | 106 | if (bc_isret(bc_op(ins[-1]))) { |
106 | GCtrace *T = (GCtrace *)((char *)(ins-1) - offsetof(GCtrace, startins)); | 107 | GCtrace *T = (GCtrace *)((char *)(ins-1) - offsetof(GCtrace, startins)); |