aboutsummaryrefslogtreecommitdiff
path: root/ldebug.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-08-14 14:59:20 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-08-14 14:59:20 -0300
commit5d9cbdadfb04e7ce8810af7d40e0723222937024 (patch)
tree19ce43687db48952901abf4064e52d9a3825fd3a /ldebug.c
parent58453dc1e1cb8c77f91cb858ec9b475a945f7f3c (diff)
downloadlua-5d9cbdadfb04e7ce8810af7d40e0723222937024.tar.gz
lua-5d9cbdadfb04e7ce8810af7d40e0723222937024.tar.bz2
lua-5d9cbdadfb04e7ce8810af7d40e0723222937024.zip
cannot run symbolic execution for non-active functions
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 136afc5a..b2675892 100644
--- a/ldebug.c
+++ b/ldebug.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldebug.c,v 1.33 2000/08/11 16:17:28 roberto Exp roberto $ 2** $Id: ldebug.c,v 1.34 2000/08/14 17:46:27 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*/
@@ -253,7 +253,7 @@ int lua_getinfo (lua_State *L, const char *what, lua_Debug *ar) {
253 break; 253 break;
254 } 254 }
255 case 'n': { 255 case 'n': {
256 ar->namewhat = getfuncname(L, func, &ar->name); 256 ar->namewhat = (isactive) ? getfuncname(L, func, &ar->name) : NULL;
257 if (ar->namewhat == NULL) 257 if (ar->namewhat == NULL)
258 lua_getname(L, func, ar); 258 lua_getname(L, func, ar);
259 break; 259 break;