travglobals
function · lua · primitive
- Address
0x6fbf90· 103 bytes, up to0x6fbff6- Meaning
- Returns the last string key of the globals hash part whose value equals the given function, or null
- 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
- auxgetinfo lua
Callees 1
- luaO_rawequalObj lua
Calls and jumps by a bare address, from tables/calls.tsv.