aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ldebug.c8
-rw-r--r--luadebug.h4
2 files changed, 7 insertions, 5 deletions
diff --git a/ldebug.c b/ldebug.c
index 323a5f7c..e69afafd 100644
--- a/ldebug.c
+++ b/ldebug.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldebug.c,v 1.104 2002/03/22 16:54:31 roberto Exp roberto $ 2** $Id: ldebug.c,v 1.105 2002/03/25 17:47:14 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*/
@@ -439,11 +439,13 @@ static const char *getobjname (lua_State *L, CallInfo *ci, int stackpos,
439 *name = kname(p, GETARG_C(i)); 439 *name = kname(p, GETARG_C(i));
440 return "global"; 440 return "global";
441 } 441 }
442 /* else go through */ 442 *name = kname(p, GETARG_C(i));
443 return "field";
444 break;
443 } 445 }
444 case OP_SELF: { 446 case OP_SELF: {
445 *name = kname(p, GETARG_C(i)); 447 *name = kname(p, GETARG_C(i));
446 return "field"; 448 return "method";
447 break; 449 break;
448 } 450 }
449 default: break; 451 default: break;
diff --git a/luadebug.h b/luadebug.h
index 21a27a54..0836ba4a 100644
--- a/luadebug.h
+++ b/luadebug.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: luadebug.h,v 1.25 2002/03/11 12:45:00 roberto Exp roberto $ 2** $Id: luadebug.h,v 1.26 2002/03/14 16:50:06 roberto Exp roberto $
3** Debugging API 3** Debugging API
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -30,7 +30,7 @@ LUA_API lua_Hook lua_setlinehook (lua_State *L, lua_Hook func);
30struct lua_Debug { 30struct lua_Debug {
31 const char *event; /* `call', `return', `line' */ 31 const char *event; /* `call', `return', `line' */
32 const char *name; /* (n) */ 32 const char *name; /* (n) */
33 const char *namewhat; /* (n) `global', `tag method', `local', `field' */ 33 const char *namewhat; /* (n) `global', `local', `field', `method' */
34 const char *what; /* (S) `Lua' function, `C' function, Lua `main' */ 34 const char *what; /* (S) `Lua' function, `C' function, Lua `main' */
35 const char *source; /* (S) */ 35 const char *source; /* (S) */
36 int currentline; /* (l) */ 36 int currentline; /* (l) */