summaryrefslogtreecommitdiff
path: root/ldebug.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-11-07 15:20:42 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-11-07 15:20:42 -0200
commitc3e5946fb2b7b5781d9bca9d303967abe6263482 (patch)
tree012bee6184675f1559e994eba42dda7c38381283 /ldebug.c
parentad0704e40cc7b3135fedc6d40a522addb039e090 (diff)
downloadlua-c3e5946fb2b7b5781d9bca9d303967abe6263482.tar.gz
lua-c3e5946fb2b7b5781d9bca9d303967abe6263482.tar.bz2
lua-c3e5946fb2b7b5781d9bca9d303967abe6263482.zip
new format for JUMP instructions (to allow larger offsets)
Diffstat (limited to 'ldebug.c')
-rw-r--r--ldebug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldebug.c b/ldebug.c
index 83ddde72..e1f9c015 100644
--- a/ldebug.c
+++ b/ldebug.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldebug.c,v 2.135 2017/11/02 11:28:56 roberto Exp $ 2** $Id: ldebug.c,v 2.140 2017/11/07 13:25:26 roberto Exp roberto $
3** Debug Interface 3** Debug Interface
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -442,7 +442,7 @@ static int findsetreg (Proto *p, int lastpc, int reg) {
442 break; 442 break;
443 } 443 }
444 case OP_JMP: { /* doesn't change registers, but changes 'jmptarget' */ 444 case OP_JMP: { /* doesn't change registers, but changes 'jmptarget' */
445 int b = GETARG_sBx(i); 445 int b = GETARG_sJ(i);
446 int dest = pc + 1 + b; 446 int dest = pc + 1 + b;
447 /* jump does not skip 'lastpc' and is larger than current one? */ 447 /* jump does not skip 'lastpc' and is larger than current one? */
448 if (dest <= lastpc && dest > jmptarget) 448 if (dest <= lastpc && dest > jmptarget)