From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eli Zaretskii To: Keith Seitz Cc: gdb-patches@sources.redhat.com Subject: Re: [RFA] defs.h _WIN32 defined by Win98, too Date: Wed, 01 Aug 2001 01:49:00 -0000 Message-id: References: X-SW-Source: 2001-08/msg00000.html On Tue, 31 Jul 2001, Keith Seitz wrote: > As a result of this change: > > 2001-06-13 Eli Zaretskii > > * 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... So perhaps there's a bug in Cygwin ;-) Anyway, didn't Chris say that _WIN32 should be removed from GDB everywhere? If that's so, the ifdef _WIN32 should be simply deleted, instead of lumping more ifdefs on top of it. For SLASH_STRING in particular, this shouldn't be a problem at all, since Windows supports forward slashes as well as backslashes, even if GDB is built with MS run-time DLLs.