diff options
author | Eli Zaretskii <eliz@gnu.org> | 2001-06-06 10:27:59 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2001-06-06 10:27:59 +0000 |
commit | c369014146eb1fb32c3dd5566a71bdd084220d2a (patch) | |
tree | 02d97750a74bf2321aaaa2c6184eb021a07f8736 /gdb/cli | |
parent | 3ffd33cf59cb308d57b1778cd6ec8ed27cdf2f51 (diff) | |
download | gdb-c369014146eb1fb32c3dd5566a71bdd084220d2a.zip gdb-c369014146eb1fb32c3dd5566a71bdd084220d2a.tar.gz gdb-c369014146eb1fb32c3dd5566a71bdd084220d2a.tar.bz2 |
* source.c (mod_path, openp): Use #ifdef HAVE_DOS_BASED_FILE_SYSTEM
instead of #if HAVE_DOS_BASED_FILE_SYSTEM.
* completer.c: Ditto.
* cli/cli-cmds.c (cd_command): Ditto.
Diffstat (limited to 'gdb/cli')
-rw-r--r-- | gdb/cli/cli-cmds.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c index ca700ed..660bbaf 100644 --- a/gdb/cli/cli-cmds.c +++ b/gdb/cli/cli-cmds.c @@ -293,7 +293,7 @@ cd_command (char *dir, int from_tty) if (chdir (dir) < 0) perror_with_name (dir); -#if HAVE_DOS_BASED_FILE_SYSTEM +#ifdef HAVE_DOS_BASED_FILE_SYSTEM /* There's too much mess with DOSish names like "d:", "d:.", "d:./foo" etc. Instead of having lots of special #ifdef'ed code, simply get the canonicalized name of the current directory. */ @@ -306,7 +306,7 @@ cd_command (char *dir, int from_tty) /* Remove the trailing slash unless this is a root directory (including a drive letter on non-Unix systems). */ if (!(len == 1) /* "/" */ -#if HAVE_DOS_BASED_FILE_SYSTEM +#ifdef HAVE_DOS_BASED_FILE_SYSTEM && !(len == 3 && dir[1] == ':') /* "d:/" */ #endif ) |