Files
binutils-gdb/gdb/python
Simon Farre 58539c5f76 Bploc should try to return full path
Compilers often emit relative paths in the line number program,
relative to the build directory for that compilation unit (if it's
DWARF>=4 I think).

Therefore use symtab->fullname() when not null as this seemingly
has attempted path normalization for the symtab and only
fall back on symtab->filename which will never be null if that fails.

This has a much better UX. Applications may choose to expose
this name as a clickable link to some file, at which point
a non-normalized and non-absolute path would lead nowhere.

When I wrote this feature the first time, I don't think this
relative-to-cu-scheme was as prevalent in the output of gcc/clang
for DWARF.

Approved-By: Tom Tromey <tom@tromey.com>
2025-03-03 18:53:12 +01:00
..
2025-02-18 07:36:44 +01:00