#include <stdarg.h>
#include <stddef.h>
#include <string.h>
#include "lua.h"
#include "lapi.h"
#include "lcode.h"
#include "ldebug.h"
#include "ldo.h"
#include "lfunc.h"
#include "lobject.h"
#include "lopcodes.h"
#include "lstate.h"
#include "lstring.h"
#include "ltable.h"
#include "ltm.h"
#include "lvm.h"
Go to the source code of this file.
Macros | |
#define | ldebug_c |
#define | LUA_CORE |
#define | noLuaClosure(f) ((f) == NULL || (f)->c.tt == LUA_TCCL) |
#define ldebug_c |
Definition at line 12 of file ldebug.cpp.
#define LUA_CORE |
Definition at line 13 of file ldebug.cpp.
Definition at line 32 of file ldebug.cpp.
Referenced by auxgetinfo(), collectvalidlines(), and funcinfo().
Definition at line 556 of file ldebug.cpp.
References lua_State::ci, ci_func, currentline(), getstr, isLua, LUA_IDSIZE, luaO_chunkid(), and luaO_pushfstring().
Referenced by luaG_runerror().
|
static |
Definition at line 214 of file ldebug.cpp.
References Closure::c, CallInfo::callstatus, CIST_TAIL, currentline(), lua_Debug::currentline, funcinfo(), getfuncname(), if(), Proto::is_vararg, isLua, lua_Debug::istailcall, lua_Debug::isvararg, Closure::l, lua_Debug::name, lua_Debug::namewhat, noLuaClosure, lua_Debug::nparams, Proto::numparams, lua_Debug::nups, LClosure::p, CallInfo::previous, and what().
Referenced by lua_getinfo().
Definition at line 195 of file ldebug.cpp.
References api_incr_top, i, Closure::l, Proto::lineinfo, luaH_new(), luaH_setint(), noLuaClosure, LClosure::p, setbvalue, sethvalue, setnilvalue, Proto::sizelineinfo, and lua_State::top.
Referenced by lua_getinfo().
Definition at line 44 of file ldebug.cpp.
References ci_func, currentpc(), and getfuncline.
Referenced by addinfo(), and auxgetinfo().
Definition at line 38 of file ldebug.cpp.
References ci_func, isLua, CallInfo::l, lua_assert, pcRel, and CallInfo::u.
Referenced by currentline(), findlocal(), getfuncname(), and luaG_typeerror().
Definition at line 329 of file ldebug.cpp.
Referenced by findsetreg().
Definition at line 117 of file ldebug.cpp.
References lua_State::ci, ci_func, currentpc(), findvararg(), CallInfo::func, if(), isLua, CallInfo::l, luaF_getlocalname(), CallInfo::next, lua_State::top, and CallInfo::u.
Referenced by lua_getlocal(), and lua_setlocal().
Definition at line 339 of file ldebug.cpp.
References Proto::code, filterpc(), GET_OPCODE, GETARG_A, GETARG_B, GETARG_sBx, i, OP_CALL, OP_JMP, OP_LOADNIL, OP_TAILCALL, OP_TEST, OP_TFORCALL, and testAMode.
Referenced by getobjname().
Definition at line 106 of file ldebug.cpp.
References clLvalue, CallInfo::func, CallInfo::l, and CallInfo::u.
Referenced by findlocal().
Definition at line 177 of file ldebug.cpp.
References getstr, Closure::l, lua_Debug::lastlinedefined, Proto::lastlinedefined, lua_Debug::linedefined, Proto::linedefined, LUA_IDSIZE, luaO_chunkid(), noLuaClosure, LClosure::p, lua_Debug::short_src, lua_Debug::source, Proto::source, and lua_Debug::what.
Referenced by auxgetinfo().
Definition at line 444 of file ldebug.cpp.
References ci_func, Proto::code, currentpc(), G, GET_OPCODE, GETARG_A, getobjname(), getstr, i, OP_ADD, OP_CALL, OP_CONCAT, OP_DIV, OP_EQ, OP_GETTABLE, OP_GETTABUP, OP_LE, OP_LEN, OP_LT, OP_MOD, OP_MUL, OP_POW, OP_SELF, OP_SETTABLE, OP_SETTABUP, OP_SUB, OP_TAILCALL, OP_TFORCALL, OP_UNM, TM_ADD, TM_CONCAT, TM_DIV, TM_EQ, TM_INDEX, TM_LE, TM_LEN, TM_LT, TM_MOD, TM_MUL, TM_NEWINDEX, TM_POW, TM_SUB, and TM_UNM.
Referenced by auxgetinfo().
Definition at line 390 of file ldebug.cpp.
References Proto::code, findsetreg(), GET_OPCODE, GETARG_A, GETARG_Ax, GETARG_B, GETARG_Bx, GETARG_C, i, Proto::k, kname(), LUA_ENV, luaF_getlocalname(), OP_GETTABLE, OP_GETTABUP, OP_GETUPVAL, OP_LOADK, OP_LOADKX, OP_MOVE, OP_SELF, svalue, ttisstring, and upvalname().
Referenced by getfuncname(), kname(), and luaG_typeerror().
Definition at line 498 of file ldebug.cpp.
References ci_func, i, LClosure::p, upvalname(), LClosure::upvals, and UpVal::v.
Referenced by luaG_typeerror().
Definition at line 490 of file ldebug.cpp.
References CallInfo::l, and CallInfo::u.
Referenced by luaG_typeerror().
Definition at line 309 of file ldebug.cpp.
References getobjname(), INDEXK, ISK, Proto::k, svalue, ttisstring, and what().
Referenced by getobjname().
Definition at line 77 of file ldebug.cpp.
References lua_State::basehookcount.
Referenced by db_gethook().
Definition at line 72 of file ldebug.cpp.
References lua_State::hookmask.
Referenced by db_gethook().
Definition at line 265 of file ldebug.cpp.
References api_check, api_incr_top, auxgetinfo(), clvalue, collectvalidlines(), CallInfo::func, lua_Debug::i_ci, lua_assert, lua_lock, lua_unlock, setobjs2s, lua_State::top, ttisclosure, and ttisfunction.
Referenced by checkupval(), db_getinfo(), hookf(), lua_fileops::intf_read_file(), lua_fileops::load_file(), luaL_argerror(), luaL_traceback(), luaL_where(), pushglobalfuncname(), and set_env().
Definition at line 143 of file ldebug.cpp.
References api_incr_top, clLvalue, findlocal(), lua_Debug::i_ci, isLfunction, lua_lock, lua_unlock, luaF_getlocalname(), pos, setobj2s, and lua_State::top.
Referenced by db_getlocal().
Definition at line 82 of file ldebug.cpp.
References lua_State::base_ci, lua_State::ci, lua_Debug::i_ci, lua_lock, lua_unlock, and CallInfo::previous.
Referenced by countlevels(), db_getinfo(), db_getlocal(), db_setlocal(), lua_fileops::intf_read_file(), lua_fileops::load_file(), luaB_costatus(), luaL_argerror(), luaL_traceback(), luaL_where(), and set_env().
Definition at line 52 of file ldebug.cpp.
References lua_State::basehookcount, cast_byte, lua_State::ci, lua_State::hook, lua_State::hookmask, isLua, CallInfo::l, lua_State::oldpc, resethookcount, and CallInfo::u.
Referenced by db_sethook(), laction(), and lstop().
Definition at line 165 of file ldebug.cpp.
References findlocal(), lua_Debug::i_ci, lua_lock, lua_unlock, pos, setobjs2s, and lua_State::top.
Referenced by db_setlocal().
Definition at line 538 of file ldebug.cpp.
References luaG_typeerror(), and luaV_tonumber().
Referenced by luaV_arith().
Definition at line 531 of file ldebug.cpp.
References lua_assert, luaG_typeerror(), ttisnumber, and ttisstring.
Referenced by luaV_concat().
Definition at line 572 of file ldebug.cpp.
References lua_State::errfunc, LUA_ERRERR, LUA_ERRRUN, luaD_call(), luaD_throw(), restorestack, setobjs2s, lua_State::top, and ttisfunction.
Referenced by lua_error(), and luaG_runerror().
Definition at line 546 of file ldebug.cpp.
References luaG_runerror(), and objtypename.
Referenced by luaV_lessequal(), and luaV_lessthan().
Definition at line 585 of file ldebug.cpp.
References addinfo(), luaG_errormsg(), and luaO_pushvfstring().
Referenced by findindex(), lua_pushnumber(), lua_yieldk(), luaD_call(), luaD_growstack(), luaG_ordererror(), luaG_typeerror(), luaH_newkey(), luaM_growaux_(), luaM_toobig(), luaO_pushvfstring(), luaV_concat(), luaV_execute(), luaV_gettable(), luaV_settable(), and setnodevector().
Definition at line 512 of file ldebug.cpp.
References cast_int, lua_State::ci, ci_func, currentpc(), getobjname(), getupvalname(), isinstack(), isLua, CallInfo::l, LUA_QS, luaG_runerror(), objtypename, and CallInfo::u.
Referenced by luaG_aritherror(), luaG_concaterror(), luaV_gettable(), luaV_objlen(), luaV_settable(), and tryfuncTM().
Definition at line 99 of file ldebug.cpp.
References check_exp, getstr, Upvaldesc::name, and Proto::upvalues.
Referenced by getobjname(), and getupvalname().