diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-04-18 16:49:13 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-04-18 16:49:13 -0300 |
commit | a4e644add264b6bac3171a03aa6febcf61e89ae6 (patch) | |
tree | 128f307500551c78144589867275447d15d2c772 /ldebug.c | |
parent | 05ca63642bacfee1871726ee69a2a66fe4b76dd1 (diff) | |
download | lua-a4e644add264b6bac3171a03aa6febcf61e89ae6.tar.gz lua-a4e644add264b6bac3171a03aa6febcf61e89ae6.tar.bz2 lua-a4e644add264b6bac3171a03aa6febcf61e89ae6.zip |
small bug (masked by wrong entry for OP_TEST in opcodes.c)
Diffstat (limited to 'ldebug.c')
-rw-r--r-- | ldebug.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldebug.c,v 2.77 2011/04/07 18:14:12 roberto Exp roberto $ | 2 | ** $Id: ldebug.c,v 2.78 2011/04/18 15:02:37 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 | */ |
@@ -385,6 +385,10 @@ static const char *getobjname (lua_State *L, CallInfo *ci, int reg, | |||
385 | pc += b; /* do the jump */ | 385 | pc += b; /* do the jump */ |
386 | break; | 386 | break; |
387 | } | 387 | } |
388 | case OP_TEST: { | ||
389 | if (reg == a) what = NULL; /* jumped code can change 'a' */ | ||
390 | break; | ||
391 | } | ||
388 | default: | 392 | default: |
389 | if (testAMode(op) && reg == a) what = NULL; | 393 | if (testAMode(op) && reg == a) what = NULL; |
390 | break; | 394 | break; |