PythonMonkey icon indicating copy to clipboard operation
PythonMonkey copied to clipboard

Ensure version info is present in core dumps

Open wesgarland opened this issue 2 years ago • 0 comments

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.

wesgarland avatar Mar 09 '24 15:03 wesgarland