ianlancetaylor / libbacktrace

A C library that may be linked into a C/C++ program to produce symbolic backtraces
Other
944 stars 220 forks source link

Support custom debug dirs #100

Open jtojnar opened 1 year ago

jtojnar commented 1 year ago

On platforms that do not use FHS like NixOS or GNU Guix, the build-id directories are not under /usr/lib/debug.

Let’s add --with-separate-debug-dir configure flag so that the path can be changed. The same flag is supported by gdb

And just like gdb, let’s make it accept multiple debug directories separated by colons. This is useful for example when using dwarffs in addition to debug data installed using distribution’s package manager.