diff options
Diffstat (limited to 'src/lj_gdbjit.c')
-rw-r--r-- | src/lj_gdbjit.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lj_gdbjit.c b/src/lj_gdbjit.c index 260796ea..513954c5 100644 --- a/src/lj_gdbjit.c +++ b/src/lj_gdbjit.c | |||
@@ -709,8 +709,7 @@ void lj_gdbjit_addtrace(jit_State *J, GCtrace *T) | |||
709 | GDBJITctx ctx; | 709 | GDBJITctx ctx; |
710 | GCproto *pt = &gcref(T->startpt)->pt; | 710 | GCproto *pt = &gcref(T->startpt)->pt; |
711 | TraceNo parent = T->ir[REF_BASE].op1; | 711 | TraceNo parent = T->ir[REF_BASE].op1; |
712 | uintptr_t pcofs = (uintptr_t)(T->snap[0].mapofs+T->snap[0].nent); | 712 | const BCIns *startpc = mref(T->startpc, const BCIns); |
713 | const BCIns *startpc = snap_pc(T->snapmap[pcofs]); | ||
714 | ctx.T = T; | 713 | ctx.T = T; |
715 | ctx.mcaddr = (uintptr_t)T->mcode; | 714 | ctx.mcaddr = (uintptr_t)T->mcode; |
716 | ctx.szmcode = T->szmcode; | 715 | ctx.szmcode = T->szmcode; |