This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[RFA] defs.h _WIN32 defined by Win98, too
- To: <gdb-patches at sources dot redhat dot com>
- Subject: [RFA] defs.h _WIN32 defined by Win98, too
- From: Keith Seitz <keiths at cygnus dot com>
- Date: Tue, 31 Jul 2001 14:48:33 -0700 (PDT)
Hi,
As a result of this change:
2001-06-13 Eli Zaretskii <eliz@is.elta.co.il>
* config/i386/xm-go32.h (SLASH_P, ROOTED_P, SLASH_CHAR)
(SLASH_STRING): Remove unised definitions.
* config/i386/xm-cygwin.h: Likewise.
Win98 no longer works under cygwin:
(gdb) file gdb.exe
Loading symbols from gdb.exe...done
(gdb) run
`/home/keiths/sources/insight/gdb\gdb.exe' has disappeared; keeping its
symbols.
Starting program: /home/keiths/sources/insight/gdb\gdb.exe
Error creating process /home/keiths/sources/insight/gdb\gdb.exe (error 2)
[often crashes here]
Apparently, Win98 defines _WIN32 somewhere...
ChangeLog
2001-07-31 Keith Seitz <keiths@redhat.com>
* defs.h (SLASH_STRING): Only define to "\\" if _WIN32
is set and we're not on Cygwin. _WIN32 is defined for
Win98.
Patch
Index: defs.h
===================================================================
RCS file: /cvs/src/src/gdb/defs.h,v
retrieving revision 1.57
diff -u -p -r1.57 defs.h
--- defs.h 2001/07/07 17:19:50 1.57
+++ defs.h 2001/07/31 21:45:14
@@ -1408,7 +1408,7 @@ extern int use_windows;
#endif
#ifndef SLASH_STRING
-#ifdef _WIN32
+#if defined(_WIN32) && !defined(__CYGWIN__)
#define SLASH_STRING "\\"
#else
#define SLASH_STRING "/"