lua

A copy of the Lua development repository
Log | Files | Refs | README

commit a4e644add264b6bac3171a03aa6febcf61e89ae6
parent 05ca63642bacfee1871726ee69a2a66fe4b76dd1
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Mon, 18 Apr 2011 16:48:49 -0300

small bug (masked by wrong entry for OP_TEST in opcodes.c)

Diffstat:
Mldebug.c | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/ldebug.c b/ldebug.c @@ -1,5 +1,5 @@ /* -** $Id: ldebug.c,v 2.77 2011/04/07 18:14:12 roberto Exp roberto $ +** $Id: ldebug.c,v 2.78 2011/04/18 15:02:37 roberto Exp roberto $ ** Debug Interface ** See Copyright Notice in lua.h */ @@ -385,6 +385,10 @@ static const char *getobjname (lua_State *L, CallInfo *ci, int reg, pc += b; /* do the jump */ break; } + case OP_TEST: { + if (reg == a) what = NULL; /* jumped code can change 'a' */ + break; + } default: if (testAMode(op) && reg == a) what = NULL; break;