auxgetinfo
function · lua · primitive
- Address
0x6fbd70· 310 bytes, up to0x6fbea5- Meaning
- Fills debug fields, naming an unnamed function by a global that holds it
- Confidence
- verified, proof two
- Finding
- ui/luastate#function-names-from-globals
Finding: Function names from globals in ui: the Lua state, its library and C functions
When the calling instruction does not name a function, lua_getinfo's n option scans the
globals table's hash part from its last slot down (travglobals, as in stock Lua 5.0) and, at the
first string key whose value is the function, answers that key with the kind global. So
debugstack, error messages and the saved variables writer name a function by a global that holds
it, the last such key in the hash part.
The derivation is in the doc.
Callers 1
- lua_getinfo lua
Callees 4
- currentline lua
- funcinfo lua
- travglobals lua
- getfuncname lua
Calls and jumps by a bare address, from tables/calls.tsv.