gdb/
authorYao Qi <yao@codesourcery.com>
Tue, 4 Jun 2013 01:33:31 +0000 (01:33 +0000)
committerYao Qi <yao@codesourcery.com>
Tue, 4 Jun 2013 01:33:31 +0000 (01:33 +0000)
* solib.c (solib_find): Don't need dir separator if path has
drive spec.

gdb/ChangeLog
gdb/solib.c

index 906cb06d380919b79ae2858e0051413f4c5641cf..1af521f6e688d197e03d8ddd51ff0e3df75bddd7 100644 (file)
@@ -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):
index a3479c59a6c570eccefdb48ce5582cb1dda4c232..d0392b43a1a704ab158b63d78479cdd499c6c974 100644 (file)
@@ -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,
This page took 0.027128 seconds and 4 git commands to generate.