From c3e5946fb2b7b5781d9bca9d303967abe6263482 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 7 Nov 2017 15:20:42 -0200 Subject: new format for JUMP instructions (to allow larger offsets) --- ldebug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ldebug.c') diff --git a/ldebug.c b/ldebug.c index 83ddde72..e1f9c015 100644 --- a/ldebug.c +++ b/ldebug.c @@ -1,5 +1,5 @@ /* -** $Id: ldebug.c,v 2.135 2017/11/02 11:28:56 roberto Exp $ +** $Id: ldebug.c,v 2.140 2017/11/07 13:25:26 roberto Exp roberto $ ** Debug Interface ** See Copyright Notice in lua.h */ @@ -442,7 +442,7 @@ static int findsetreg (Proto *p, int lastpc, int reg) { break; } case OP_JMP: { /* doesn't change registers, but changes 'jmptarget' */ - int b = GETARG_sBx(i); + int b = GETARG_sJ(i); int dest = pc + 1 + b; /* jump does not skip 'lastpc' and is larger than current one? */ if (dest <= lastpc && dest > jmptarget) -- cgit v1.2.3-55-g6feb