ianlancetaylor / libbacktrace

A C library that may be linked into a C/C++ program to produce symbolic backtraces

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Split DWARF support

CallistoM opened this issue · comments

Does libbacktrace have any support for -gsplit-dwarf?

I don't know about the DWARF5 flavor, but with the GNU flavor there's a dwp tool that functions like dsymutil to generate a file.dwp containing the linked debug info from a -gsplit-dwarf build:
https://gcc.gnu.org/wiki/DebugFissionDWP

libbacktrace supports debug info that is split out using objcopy and dwz, but it does not yet support -gsplit-dwarf.

Thanks for the information, decided to use LLVM's objcopy to split the debug information and use add-gnu-debuglink to the binary.