mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
* 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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user