Would this implementation work in the face of LTO which folds functions with identical ASM into single definitions? The main thing I’m thinking of is MSVC’s Identical COMDAT Folding (although that isn’t specifically a concern given this doesn’t work on Windows currently).
This might be quite fragile. Recent bump of llvm version brought new dwarf version that ‘broke’ many tools (eg. valgrind).
Regardless, this is super cool!
Would this implementation work in the face of LTO which folds functions with identical ASM into single definitions? The main thing I’m thinking of is MSVC’s Identical COMDAT Folding (although that isn’t specifically a concern given this doesn’t work on Windows currently).
Awesome and cool! Did you consider having a build script that generates the debug info so it will be cross-platform?
Those looking for other routes to runtime reflection might be intrigued by valuable, although I’m not sure how actively maintained it is.