diff options
author | Simon Farre <simon.farre.cx@gmail.com> | 2025-03-03 18:53:12 +0100 |
---|---|---|
committer | Simon Farre <simon.farre.cx@gmail.com> | 2025-03-03 18:53:12 +0100 |
commit | 58539c5f76d4afa25d1b775b29fa00acdb2de578 (patch) | |
tree | e7721c21ed24724d6c2451aeae1ed16fd09f80e8 /gdb/xm-hppahpux.h | |
parent | f96ad03c0e6c2440f30d9fe7e1215ff0c2a61f2a (diff) | |
download | binutils-master.zip binutils-master.tar.gz binutils-master.tar.bz2 |
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>
Diffstat (limited to 'gdb/xm-hppahpux.h')
0 files changed, 0 insertions, 0 deletions