diff options
author | John Baldwin <jhb@FreeBSD.org> | 2019-02-12 13:56:16 -0800 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2019-02-12 13:56:16 -0800 |
commit | f62318e98d84e79e457920c74515fb73bb013b23 (patch) | |
tree | f17470deb486f84be16a1e1c6eec0927a0926164 /gdb/source.c | |
parent | cd4b78483c3b0e4bd7737b67ed5074b7c252faa4 (diff) | |
download | binutils-f62318e98d84e79e457920c74515fb73bb013b23.zip binutils-f62318e98d84e79e457920c74515fb73bb013b23.tar.gz binutils-f62318e98d84e79e457920c74515fb73bb013b23.tar.bz2 |
Try to use the canonical version of a sysroot for debug file links.
Object file paths passed to find_separate_debug_file are always
canonical paths with symbolic links resolved. If a sysroot path
traverses a symbolic link, it will not match the object file paths.
Generate a canonical version of the sysroot directory. If it is
valid, use it instead of gdb_sysroot with child_path to determine if
an object file is under a system root.
gdb/ChangeLog:
* symfile.c (find_separate_debug_file): Use canonical path of
sysroot with child_path instead of gdb_sysroot if it is valid.
Diffstat (limited to 'gdb/source.c')
0 files changed, 0 insertions, 0 deletions