PythonMonkey
PythonMonkey copied to clipboard
Ensure version info is present in core dumps
Describe your feature request here.
I'd like to be able to inspect core dumps and know what git revision (or pythonmonkey version) they were created with, so that we have a chance of associating them with a right-enough dso in the debugger, even when symbols are stripped.
I'm thinking that an $Id$ string for ident(1) buried in the dso as a static __attribute__((unused)) char[] and then strdup'd at program startup will likely do the trick.
Interested in hearing other solutions.