cannot run symbolic execution for non-active functions

This commit is contained in:
Roberto Ierusalimschy
2000-08-14 14:59:20 -03:00
parent 58453dc1e1
commit 5d9cbdadfb

View File

@@ -1,5 +1,5 @@
/* /*
** $Id: ldebug.c,v 1.33 2000/08/11 16:17:28 roberto Exp roberto $ ** $Id: ldebug.c,v 1.34 2000/08/14 17:46:27 roberto Exp roberto $
** Debug Interface ** Debug Interface
** See Copyright Notice in lua.h ** See Copyright Notice in lua.h
*/ */
@@ -253,7 +253,7 @@ int lua_getinfo (lua_State *L, const char *what, lua_Debug *ar) {
break; break;
} }
case 'n': { case 'n': {
ar->namewhat = getfuncname(L, func, &ar->name); ar->namewhat = (isactive) ? getfuncname(L, func, &ar->name) : NULL;
if (ar->namewhat == NULL) if (ar->namewhat == NULL)
lua_getname(L, func, ar); lua_getname(L, func, ar);
break; break;