Try to use the canonical version of a sysroot for debug file links.
authorJohn Baldwin <jhb@FreeBSD.org>
Tue, 12 Feb 2019 21:56:16 +0000 (13:56 -0800)
committerJohn Baldwin <jhb@FreeBSD.org>
Tue, 12 Feb 2019 21:56:16 +0000 (13:56 -0800)
commitf62318e98d84e79e457920c74515fb73bb013b23
treef17470deb486f84be16a1e1c6eec0927a0926164
parentcd4b78483c3b0e4bd7737b67ed5074b7c252faa4
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.
gdb/ChangeLog
gdb/symfile.c
This page took 0.037638 seconds and 4 git commands to generate.