summaryrefslogtreecommitdiff
path: root/ldebug.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-05-05 17:47:02 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-05-05 17:47:02 -0300
commit1ab2b93462753b5f500ada31353acc444d4e7b7c (patch)
tree0934f3891707f446c3b0d57ba7827243bc1f6e22 /ldebug.c
parent6cf85dcc900c71687678bc316164142e76df7385 (diff)
downloadlua-1ab2b93462753b5f500ada31353acc444d4e7b7c.tar.gz
lua-1ab2b93462753b5f500ada31353acc444d4e7b7c.tar.bz2
lua-1ab2b93462753b5f500ada31353acc444d4e7b7c.zip
debug information for last line of a function definition
Diffstat (limited to 'ldebug.c')
-rw-r--r--ldebug.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ldebug.c b/ldebug.c
index 23441062..4108aaae 100644
--- a/ldebug.c
+++ b/ldebug.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldebug.c,v 2.15 2005/04/14 13:30:47 roberto Exp roberto $ 2** $Id: ldebug.c,v 2.16 2005/05/04 20:42:28 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*/
@@ -157,7 +157,8 @@ static void funcinfo (lua_Debug *ar, StkId func) {
157 } 157 }
158 else { 158 else {
159 ar->source = getstr(cl->l.p->source); 159 ar->source = getstr(cl->l.p->source);
160 ar->linedefined = cl->l.p->lineDefined; 160 ar->linedefined = cl->l.p->linedefined;
161 ar->lastlinedefined = cl->l.p->lastlinedefined;
161 ar->what = (ar->linedefined == 0) ? "main" : "Lua"; 162 ar->what = (ar->linedefined == 0) ? "main" : "Lua";
162 } 163 }
163 luaO_chunkid(ar->short_src, ar->source, LUA_IDSIZE); 164 luaO_chunkid(ar->short_src, ar->source, LUA_IDSIZE);