From 404e278f8d2b72c163f7d5f1555c530d5964fa54 Mon Sep 17 00:00:00 2001 From: Yao Qi Date: Tue, 4 Jun 2013 01:33:31 +0000 Subject: gdb/ * solib.c (solib_find): Don't need dir separator if path has drive spec. --- gdb/ChangeLog | 5 +++++ gdb/solib.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 906cb06d380..1af521f6e68 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-06-04 Yao Qi + + * solib.c (solib_find): Don't need dir separator if path has + drive spec. + 2013-06-03 Joel Brobecker Revert (indirectly causes a SIGSEGV): diff --git a/gdb/solib.c b/gdb/solib.c index a3479c59a6c..d0392b43a1a 100644 --- a/gdb/solib.c +++ b/gdb/solib.c @@ -230,7 +230,8 @@ solib_find (char *in_pathname, int *fd) { int need_dir_separator; - need_dir_separator = !IS_DIR_SEPARATOR (in_pathname[0]); + need_dir_separator = (!IS_DIR_SEPARATOR (in_pathname[0]) + && !HAS_TARGET_DRIVE_SPEC (fskind, in_pathname)); /* Cat the prefixed pathname together. */ temp_pathname = concat (sysroot, -- cgit v1.2.1