Use child_path to determine if an object file is under a sysroot.
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)
This fixes the case where the sysroot happens to end in a trailing
'/'.  Note that the path returned from child_path always skips over
the directory separator at the start of the base path, so a separator
must always be explicitly added before the base path.

gdb/ChangeLog:

* symfile.c (find_separate_debug_file): Use child_path to
determine if an object file is under a sysroot.


No differences found
This page took 0.023999 seconds and 4 git commands to generate.