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]

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


On Wed, 1 Aug 2001, Eli Zaretskii wrote:

> > 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 ;-)

Nope. Works fine on Win2000 using EXACTLY the same environment.

> 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.

Windows does NOT support both forward and backward slashes in this
context. Or perhaps more correctly, cygwin does not support both. I don't
know (and frankly don't care) who is to blame. Gdb doesn't work on Win98.

As for eliminating SLASH_STRING, well, that's a much bigger and riskier
change than the simple, pragmatic approach I've taken. However, if people
want me to just assume that SLASH_STRING is "/", I'm more than happy to
whack all the bits with SLASH_STRING in them (defs.h, cli/cli-cmds.c,
defs.h, and source.c).

Just let me know, and it shall be done! I appreciate the expediant reply.
Keith




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