summaryrefslogtreecommitdiff
path: root/ldebug.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-04-04 14:21:31 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-04-04 14:21:31 -0300
commit93bcb65a9ba2296818abdbfc800bbc1b9ed3b127 (patch)
treea37f298b6fc209af1cde34f78705a888b8a02713 /ldebug.c
parent49c95648a003ea75577c1292c4530cdb798eac02 (diff)
downloadlua-93bcb65a9ba2296818abdbfc800bbc1b9ed3b127.tar.gz
lua-93bcb65a9ba2296818abdbfc800bbc1b9ed3b127.tar.bz2
lua-93bcb65a9ba2296818abdbfc800bbc1b9ed3b127.zip
debug interface uses `method' to describe calls like `a:foo()'
Diffstat (limited to 'ldebug.c')
-rw-r--r--ldebug.c8
1 files changed, 5 insertions, 3 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;