[x] Stack traces should indicate a human-readable entry point for main.c at the highest level of the stack
Right now this is how they appear:
With tiny adjustments, the output can be turned into something like this:
The parentheses are consistent with what Lua (and LuaJIT) use when running code, but a bit more verbose to hopefully be less confusing. The other issues with readability of stack traces can be fixed by including debug symbols in the object files.
While experimenting, I just swapped the initialization code with this:
Goals:
main.c
at the highest level of the stackRight now this is how they appear:
With tiny adjustments, the output can be turned into something like this:
The parentheses are consistent with what Lua (and LuaJIT) use when running code, but a bit more verbose to hopefully be less confusing. The other issues with readability of stack traces can be fixed by including debug symbols in the object files.
While experimenting, I just swapped the initialization code with this:
Split off from #4 because this is probably "good enough" for the time being and should be committed separately.