aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/solib.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 906cb06..1af521f 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2013-06-04 Yao Qi <yao@codesourcery.com>
+
+ * solib.c (solib_find): Don't need dir separator if path has
+ drive spec.
+
2013-06-03 Joel Brobecker <brobecker@adacore.com>
Revert (indirectly causes a SIGSEGV):
diff --git a/gdb/solib.c b/gdb/solib.c
index a3479c5..d0392b4 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,