aboutsummaryrefslogtreecommitdiff
path: root/gdb/xm-hppahpux.h
diff options
context:
space:
mode:
authorSimon Farre <simon.farre.cx@gmail.com>2025-03-03 18:53:12 +0100
committerSimon Farre <simon.farre.cx@gmail.com>2025-03-03 18:53:12 +0100
commit58539c5f76d4afa25d1b775b29fa00acdb2de578 (patch)
treee7721c21ed24724d6c2451aeae1ed16fd09f80e8 /gdb/xm-hppahpux.h
parentf96ad03c0e6c2440f30d9fe7e1215ff0c2a61f2a (diff)
downloadbinutils-master.zip
binutils-master.tar.gz
binutils-master.tar.bz2
Bploc should try to return full pathHEADmaster
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