aboutsummaryrefslogtreecommitdiff
path: root/gdb/defs.h
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2004-11-13 17:00:04 +0000
committerEli Zaretskii <eliz@gnu.org>2004-11-13 17:00:04 +0000
commit2924732466d030308bbd0016dd544bc642a88bf8 (patch)
treedee706ffaf15e713f00c596abf3b5b08438a17d2 /gdb/defs.h
parent6cfb3176b59426c6cbb25571f9a4fd23e54ea156 (diff)
downloadfsf-binutils-gdb-2924732466d030308bbd0016dd544bc642a88bf8.zip
fsf-binutils-gdb-2924732466d030308bbd0016dd544bc642a88bf8.tar.gz
fsf-binutils-gdb-2924732466d030308bbd0016dd544bc642a88bf8.tar.bz2
* config/i386/xm-go32.h: Don't include fopen-bin.h.
Don't define CRLF_SOURCE_FILES and DIRNAME_SEPARATOR. * source.c (OPEN_MODE, FDOPEN_MODE): Remove the definitions in the branch that doesn't define CRLF_SOURCE_FILES; always use binary-mode open. (print_source_lines_base, forward_search_command) (reverse_search_command): Enable the code that accepts DOS-style CRLF line endings on all platforms (this removes the need for CRLF_SOURCE_FILES). * defs.h: (DIRNAME_SEPARATOR) [__MSDOS__]: Define to ';'.
Diffstat (limited to 'gdb/defs.h')
-rw-r--r--gdb/defs.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/gdb/defs.h b/gdb/defs.h
index 1d81ee6..617af3e 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -1226,6 +1226,12 @@ extern int use_windows;
/* FIXME, this doesn't work very well if host and executable
filesystems conventions are different. */
+#ifdef __MSDOS__
+# define CANT_FORK
+# define GLOBAL_CURDIR
+# define DIRNAME_SEPARATOR ';'
+#endif
+
#ifndef DIRNAME_SEPARATOR
#define DIRNAME_SEPARATOR ':'
#endif
@@ -1234,11 +1240,6 @@ extern int use_windows;
#define SLASH_STRING "/"
#endif
-#ifdef __MSDOS__
-# define CANT_FORK
-# define GLOBAL_CURDIR
-#endif
-
/* Provide default definitions of PIDGET, TIDGET, and MERGEPID.
The name ``TIDGET'' is a historical accident. Many uses of TIDGET
in the code actually refer to a lightweight process id, i.e,