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 | |
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')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/solib.c | 3 |
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, |