Strip "target:" prefix in solib_find if accessing local files
authorGary Benson <gbenson@redhat.com>
Thu, 2 Apr 2015 12:38:29 +0000 (13:38 +0100)
committerGary Benson <gbenson@redhat.com>
Thu, 2 Apr 2015 12:38:29 +0000 (13:38 +0100)
commitb57fbfba4b53434252fce55e323f08aeab556409
treedb4f1e7c1078f63d65986db7b1bd3bd9c0a73d92
parent97a41605e2473c67e82ef5147b4866768bd5a566
Strip "target:" prefix in solib_find if accessing local files

This commit updates solib_find to strip the "target:" prefix from
gdb_sysroot when accessing local files.  This ensures that the same
search algorithm is used for local files regardless of whether a
"target:" prefix was used or not.  It also avoids cluttering GDB's
output with unnecessary "target:" prefixes on paths.

gdb/ChangeLog:

* solib.c (solib_find): Strip "target:" prefix from sysroot
if accessing local files.
gdb/ChangeLog
gdb/solib.c