summaryrefslogtreecommitdiff
path: root/src/lj_gdbjit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_gdbjit.c')
-rw-r--r--src/lj_gdbjit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lj_gdbjit.c b/src/lj_gdbjit.c
index d66ef455..dc85c076 100644
--- a/src/lj_gdbjit.c
+++ b/src/lj_gdbjit.c
@@ -698,7 +698,7 @@ static void gdbjit_newentry(lua_State *L, GDBJITctx *ctx)
698} 698}
699 699
700/* Add debug info for newly compiled trace and notify GDB. */ 700/* Add debug info for newly compiled trace and notify GDB. */
701void lj_gdbjit_addtrace(jit_State *J, GCtrace *T, TraceNo traceno) 701void lj_gdbjit_addtrace(jit_State *J, GCtrace *T)
702{ 702{
703 GDBJITctx ctx; 703 GDBJITctx ctx;
704 lua_State *L = J->L; 704 lua_State *L = J->L;
@@ -721,7 +721,7 @@ void lj_gdbjit_addtrace(jit_State *J, GCtrace *T, TraceNo traceno)
721 ctx.filename++; 721 ctx.filename++;
722 else 722 else
723 ctx.filename = "(string)"; 723 ctx.filename = "(string)";
724 ctx.trname = lj_str_pushf(L, "TRACE_%d", traceno); 724 ctx.trname = lj_str_pushf(L, "TRACE_%d", T->traceno);
725 L->top--; 725 L->top--;
726 gdbjit_buildobj(&ctx); 726 gdbjit_buildobj(&ctx);
727 gdbjit_newentry(L, &ctx); 727 gdbjit_newentry(L, &ctx);