diff options
author | Yao Qi <yao@codesourcery.com> | 2013-06-04 01:33:31 +0000 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2013-06-04 01:33:31 +0000 |
commit | 404e278f8d2b72c163f7d5f1555c530d5964fa54 (patch) | |
tree | 4c8595a9905b33eab839f49bfbab3abc11fac303 /gdb/solib.c | |
parent | 0e8faa7b6e8d050b7174a38d72eb2ecbab578605 (diff) | |
download | gdb-404e278f8d2b72c163f7d5f1555c530d5964fa54.zip gdb-404e278f8d2b72c163f7d5f1555c530d5964fa54.tar.gz gdb-404e278f8d2b72c163f7d5f1555c530d5964fa54.tar.bz2 |
gdb/
* solib.c (solib_find): Don't need dir separator if path has
drive spec.
Diffstat (limited to 'gdb/solib.c')
-rw-r--r-- | gdb/solib.c | 3 |
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, |