fn locate_debuglink(path: &Path, filename: &[u8]) -> Option<PathBuf>
Expand description

Locate a file specified in a .gnu_debuglink section.

path is the file containing the section. filename is from the contents of the section.

Search order is based on gdb, documented at: https://sourceware.org/gdb/onlinedocs/gdb/Separate-Debug-Files.html

gdb also allows the user to customize the debug search path, but we don’t.

gdb also supports debuginfod, but we don’t yet.