mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-24 10:35:12 +08:00
* source.c (open): Strip DOS drive letter if present before
concatenating string to search path.
This commit is contained in:
parent
58cd914490
commit
e6d9b9c2fa
@ -1,3 +1,8 @@
|
||||
2010-04-14 Doug Evans <dje@google.com>
|
||||
|
||||
* source.c (open): Strip DOS drive letter if present before
|
||||
concatenating string to search path.
|
||||
|
||||
2010-04-14 Pedro Alves <pedro@codesourcery.com>
|
||||
|
||||
* objfiles.h (gdb_bfd_close_or_warn): Declare.
|
||||
|
@ -724,6 +724,10 @@ openp (const char *path, int opts, const char *string,
|
||||
goto done;
|
||||
}
|
||||
|
||||
/* For dos paths, d:/foo -> /foo, and d:foo -> foo. */
|
||||
if (HAS_DRIVE_SPEC (string))
|
||||
string = STRIP_DRIVE_SPEC (string);
|
||||
|
||||
/* /foo => foo, to avoid multiple slashes that Emacs doesn't like. */
|
||||
while (IS_DIR_SEPARATOR(string[0]))
|
||||
string++;
|
||||
|
Loading…
Reference in New Issue
Block a user