Why gdb on MacOS doesn't show function names in stack when llvm::JITEmitDebugInfo is set?

With the same source code, gdb on Linux shows function names and on MacOS it doesn't.

Why would MacOS be different in respect of this issue?


Because OS X is not an ELF target, and support was only implemented in LLVM for making ELFs with debug info.

I think the docs I wrote on this may suggest that the FSF gdb 7.0+ will work, but that’s not the case.