aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/solib.c')
-rw-r--r--gdb/solib.c3
1 files changed, 2 insertions, 1 deletions
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,