Macros | Functions
ldebug.c File Reference
#include "lprefix.h"
#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"
Include dependency graph for ldebug.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define invpcRel(pc, p)   ((p)->code + (pc) + 1)
 
#define ldebug_c
 
#define LUA_CORE
 
#define noLuaClosure(f)   ((f) == NULL || (f)->c.tt == LUA_VCCL)
 

Functions

static int auxgetinfo (lua_State *L, const char *what, lua_Debug *ar, Closure *f, CallInfo *ci)
 
static int changedline (const Proto *p, int oldpc, int newpc)
 
static void collectvalidlines (lua_State *L, Closure *f)
 
static int currentpc (CallInfo *ci)
 
static int filterpc (int pc, int jmptarget)
 
static int findsetreg (const Proto *p, int lastpc, int reg)
 
static const char * findvararg (CallInfo *ci, int n, StkId *pos)
 
static void funcinfo (lua_Debug *ar, Closure *cl)
 
static const char * funcnamefromcode (lua_State *L, CallInfo *ci, const char **name)
 
static int getbaseline (const Proto *f, int pc, int *basepc)
 
static int getcurrentline (CallInfo *ci)
 
static const char * getfuncname (lua_State *L, CallInfo *ci, const char **name)
 
static const char * getobjname (const Proto *p, int lastpc, int reg, const char **name)
 
static const char * getupvalname (CallInfo *ci, const TValue *o, const char **name)
 
static const char * gxf (const Proto *p, int pc, Instruction i, int isup)
 
static int isinstack (CallInfo *ci, const TValue *o)
 
static void kname (const Proto *p, int c, const char **name)
 
LUA_API lua_Hook lua_gethook (lua_State *L)
 
LUA_API int lua_gethookcount (lua_State *L)
 
LUA_API int lua_gethookmask (lua_State *L)
 
LUA_API int lua_getinfo (lua_State *L, const char *what, lua_Debug *ar)
 
LUA_API const char * lua_getlocal (lua_State *L, const lua_Debug *ar, int n)
 
LUA_API int lua_getstack (lua_State *L, int level, lua_Debug *ar)
 
LUA_API void lua_sethook (lua_State *L, lua_Hook func, int mask, int count)
 
LUA_API const char * lua_setlocal (lua_State *L, const lua_Debug *ar, int n)
 
const char * luaG_addinfo (lua_State *L, const char *msg, TString *src, int line)
 
l_noret luaG_concaterror (lua_State *L, const TValue *p1, const TValue *p2)
 
l_noret luaG_errormsg (lua_State *L)
 
const char * luaG_findlocal (lua_State *L, CallInfo *ci, int n, StkId *pos)
 
l_noret luaG_forerror (lua_State *L, const TValue *o, const char *what)
 
int luaG_getfuncline (const Proto *f, int pc)
 
l_noret luaG_opinterror (lua_State *L, const TValue *p1, const TValue *p2, const char *msg)
 
l_noret luaG_ordererror (lua_State *L, const TValue *p1, const TValue *p2)
 
l_noret luaG_runerror (lua_State *L, const char *fmt,...)
 
l_noret luaG_tointerror (lua_State *L, const TValue *p1, const TValue *p2)
 
int luaG_traceexec (lua_State *L, const Instruction *pc)
 
l_noret luaG_typeerror (lua_State *L, const TValue *o, const char *op)
 
static int nextline (const Proto *p, int currentline, int pc)
 
static void rkname (const Proto *p, int pc, Instruction i, const char **name)
 
static void rname (const Proto *p, int pc, int c, const char **name)
 
static void settraps (CallInfo *ci)
 
static const char * upvalname (const Proto *p, int uv)
 
static const char * varinfo (lua_State *L, const TValue *o)
 

Macro Definition Documentation

#define invpcRel (   pc,
 
)    ((p)->code + (pc) + 1)

Definition at line 37 of file ldebug.c.

#define ldebug_c

Definition at line 7 of file ldebug.c.

#define LUA_CORE

Definition at line 8 of file ldebug.c.

#define noLuaClosure (   f)    ((f) == NULL || (f)->c.tt == LUA_VCCL)

Definition at line 34 of file ldebug.c.

Function Documentation

static int auxgetinfo ( lua_State L,
const char *  what,
lua_Debug ar,
Closure f,
CallInfo ci 
)
static

Definition at line 330 of file ldebug.c.

static int changedline ( const Proto p,
int  oldpc,
int  newpc 
)
static

Definition at line 785 of file ldebug.c.

static void collectvalidlines ( lua_State L,
Closure f 
)
static

Definition at line 294 of file ldebug.c.

static int currentpc ( CallInfo ci)
static

Definition at line 43 of file ldebug.c.

static int filterpc ( int  pc,
int  jmptarget 
)
static

Definition at line 458 of file ldebug.c.

static int findsetreg ( const Proto p,
int  lastpc,
int  reg 
)
static

Definition at line 468 of file ldebug.c.

static const char* findvararg ( CallInfo ci,
int  n,
StkId pos 
)
static

Definition at line 188 of file ldebug.c.

static void funcinfo ( lua_Debug ar,
Closure cl 
)
static

Definition at line 260 of file ldebug.c.

static const char * funcnamefromcode ( lua_State L,
CallInfo ci,
const char **  name 
)
static

Definition at line 597 of file ldebug.c.

static int getbaseline ( const Proto f,
int  pc,
int *  basepc 
)
static

Definition at line 56 of file ldebug.c.

static int getcurrentline ( CallInfo ci)
static

Definition at line 102 of file ldebug.c.

static const char* getfuncname ( lua_State L,
CallInfo ci,
const char **  name 
)
static

Definition at line 316 of file ldebug.c.

static const char * getobjname ( const Proto p,
int  lastpc,
int  reg,
const char **  name 
)
static

Definition at line 529 of file ldebug.c.

static const char* getupvalname ( CallInfo ci,
const TValue o,
const char **  name 
)
static

Definition at line 666 of file ldebug.c.

static const char* gxf ( const Proto p,
int  pc,
Instruction  i,
int  isup 
)
static

Definition at line 518 of file ldebug.c.

static int isinstack ( CallInfo ci,
const TValue o 
)
static

Definition at line 654 of file ldebug.c.

static void kname ( const Proto p,
int  c,
const char **  name 
)
static

Definition at line 430 of file ldebug.c.

LUA_API lua_Hook lua_gethook ( lua_State L)

Definition at line 149 of file ldebug.c.

LUA_API int lua_gethookcount ( lua_State L)

Definition at line 159 of file ldebug.c.

LUA_API int lua_gethookmask ( lua_State L)

Definition at line 154 of file ldebug.c.

LUA_API int lua_getinfo ( lua_State L,
const char *  what,
lua_Debug ar 
)

Definition at line 386 of file ldebug.c.

LUA_API const char* lua_getlocal ( lua_State L,
const lua_Debug ar,
int  n 
)

Definition at line 224 of file ldebug.c.

LUA_API int lua_getstack ( lua_State L,
int  level,
lua_Debug ar 
)

Definition at line 164 of file ldebug.c.

LUA_API void lua_sethook ( lua_State L,
lua_Hook  func,
int  mask,
int  count 
)

Definition at line 135 of file ldebug.c.

LUA_API const char* lua_setlocal ( lua_State L,
const lua_Debug ar,
int  n 
)

Definition at line 246 of file ldebug.c.

const char* luaG_addinfo ( lua_State L,
const char *  msg,
TString src,
int  line 
)

Definition at line 742 of file ldebug.c.

l_noret luaG_concaterror ( lua_State L,
const TValue p1,
const TValue p2 
)

Definition at line 706 of file ldebug.c.

l_noret luaG_errormsg ( lua_State L)

Definition at line 754 of file ldebug.c.

const char* luaG_findlocal ( lua_State L,
CallInfo ci,
int  n,
StkId pos 
)

Definition at line 200 of file ldebug.c.

l_noret luaG_forerror ( lua_State L,
const TValue o,
const char *  what 
)

Definition at line 700 of file ldebug.c.

int luaG_getfuncline ( const Proto f,
int  pc 
)

Definition at line 87 of file ldebug.c.

l_noret luaG_opinterror ( lua_State L,
const TValue p1,
const TValue p2,
const char *  msg 
)

Definition at line 712 of file ldebug.c.

l_noret luaG_ordererror ( lua_State L,
const TValue p1,
const TValue p2 
)

Definition at line 731 of file ldebug.c.

l_noret luaG_runerror ( lua_State L,
const char *  fmt,
  ... 
)

Definition at line 767 of file ldebug.c.

l_noret luaG_tointerror ( lua_State L,
const TValue p1,
const TValue p2 
)

Definition at line 723 of file ldebug.c.

int luaG_traceexec ( lua_State L,
const Instruction pc 
)

Definition at line 807 of file ldebug.c.

l_noret luaG_typeerror ( lua_State L,
const TValue o,
const char *  op 
)

Definition at line 694 of file ldebug.c.

static int nextline ( const Proto p,
int  currentline,
int  pc 
)
static

Definition at line 286 of file ldebug.c.

static void rkname ( const Proto p,
int  pc,
Instruction  i,
const char **  name 
)
static

Definition at line 449 of file ldebug.c.

static void rname ( const Proto p,
int  pc,
int  c,
const char **  name 
)
static

Definition at line 439 of file ldebug.c.

static void settraps ( CallInfo ci)
static

Definition at line 118 of file ldebug.c.

static const char* upvalname ( const Proto p,
int  uv 
)
static

Definition at line 181 of file ldebug.c.

static const char* varinfo ( lua_State L,
const TValue o 
)
static

Definition at line 680 of file ldebug.c.



plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Dec 6 2020 04:02:48