aboutsummaryrefslogtreecommitdiff
path: root/src/lj_debug.c
diff options
context:
space:
mode:
authorMike Pall <mike>2025-07-24 15:41:35 +0200
committerMike Pall <mike>2025-07-24 15:41:35 +0200
commiteed22e9ad925baf718186cd3931f6547fd912551 (patch)
tree4d69cc1c0ffc446e250e42c66f277f221e8d30bd /src/lj_debug.c
parentf9140a622a0c44a99efb391cc1c2358bc8098ab7 (diff)
parentc92d0cb19263e7e302b4740ba6617a32c201c613 (diff)
downloadluajit-eed22e9ad925baf718186cd3931f6547fd912551.tar.gz
luajit-eed22e9ad925baf718186cd3931f6547fd912551.tar.bz2
luajit-eed22e9ad925baf718186cd3931f6547fd912551.zip
Merge branch 'master' into v2.1
Diffstat (limited to 'src/lj_debug.c')
-rw-r--r--src/lj_debug.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lj_debug.c b/src/lj_debug.c
index b3d52afc..f9392d8e 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));