This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[RFA] defs.h _WIN32 defined by Win98, too


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 "/"



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]