-
Notifications
You must be signed in to change notification settings - Fork 21
Description
When a crash (namely a segfault/access violation) occurs, the runtime should be able to scan the addresses of all functions in a crash handler to find which contains the crashed function.
For vanilla functions it's not as easy because there aren't well defined function bounds that the program can access for each, meaning it'd have to guess by sorting all the game functions by their native address to try to see how big each one is.
For mod functions, the sizes of each function are known due to the live recompilation process. This means crashes in mod functions can be determined exactly. A revision of the mod symbol format would allow carrying over function names from the elf when the mod tool is run, which would allow a very helpful error message for mod developers.