aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli/cli-cmds.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2001-07-16 14:13:06 +0000
committerEli Zaretskii <eliz@gnu.org>2001-07-16 14:13:06 +0000
commit2584159ed946bc2182960a1bdf06f754c177ce50 (patch)
treeabcccf8e2cfe951533dee77206fbc70a483d5598 /gdb/cli/cli-cmds.c
parentcf54db79854a6aa8c4ef1b30be76db59744a45ef (diff)
downloadfsf-binutils-gdb-2584159ed946bc2182960a1bdf06f754c177ce50.zip
fsf-binutils-gdb-2584159ed946bc2182960a1bdf06f754c177ce50.tar.gz
fsf-binutils-gdb-2584159ed946bc2182960a1bdf06f754c177ce50.tar.bz2
* cli/cli-cmds.c (shell_escape) [GLOBAL_CURDIR]: Condition the
call to chdir on this symbol rather than on __DJGPP__. (CANT_FORK) [__MSDOS__]: Move from here... * defs.h (CANT_FORK) [__MSDOS__]: ...to here. (GLOBAL_CURDIR) [__MSDOS__]: Define.
Diffstat (limited to 'gdb/cli/cli-cmds.c')
-rw-r--r--gdb/cli/cli-cmds.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c
index 660bbaf..a82e877 100644
--- a/gdb/cli/cli-cmds.c
+++ b/gdb/cli/cli-cmds.c
@@ -39,11 +39,6 @@
#define GDBINIT_FILENAME ".gdbinit"
#endif
-/* FIXME: this should be auto-configured! */
-#ifdef __MSDOS__
-# define CANT_FORK
-#endif
-
/* From gdb/top.c */
extern void dont_repeat (void);
@@ -454,7 +449,7 @@ shell_escape (char *arg, int from_tty)
fprintf_unfiltered (gdb_stderr, "%s exited with status %d\n", arg, rc);
gdb_flush (gdb_stderr);
}
-#ifdef __DJGPP__
+#ifdef GLOBAL_CURDIR
/* Make sure to return to the directory GDB thinks it is, in case the
shell command we just ran changed it. */
chdir (current_directory);