benilla-re systems structs docs

getfuncname

function · lua · boundary

Address
0x6fc460 · 86 bytes, up to 0x6fc4b5
Meaning
Names the function of a call from the calling instruction, or null
Confidence
verified, proof one
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

Callees 2

Calls and jumps by a bare address, from tables/calls.tsv.