Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Keith Seitz <keiths@cygnus.com>
To: Eli Zaretskii <eliz@is.elta.co.il>
Cc: <gdb-patches@sources.redhat.com>
Subject: Re: [RFA] defs.h _WIN32 defined by Win98, too
Date: Wed, 01 Aug 2001 08:32:00 -0000	[thread overview]
Message-ID: <Pine.GSO.4.33.0108010825140.26158-100000@makita.cygnus.com> (raw)
In-Reply-To: <Pine.SUN.3.91.1010801181546.18547B-100000@is>

On Wed, 1 Aug 2001, Eli Zaretskii wrote:

> So you are saying that the same version of Cygwin defines _WIN32 on
> Windows 98, but not on W2K?  isn't that strange?

Ah. I see what you're driving at. Hmmm... Ok, it certainly appears that
_WIN32 is being defined by cygwin. Nonetheless, we'll need to tweak gdb
until cygwin is fixed. (And I think we all agree about that.)

> > I don't
> > know (and frankly don't care) who is to blame. Gdb doesn't work on Win98.
>
> I don't argue with facts; it's clear that something breaks GDB.  But I
> think we need to understand why does _WIN32 get defined on some systems,
> but not on others.

I admit, I admire your enthusiasm for this sort of thing, but I have
resigned myself not to linger on about cases where Win98/95 differs from
WinNT/2000. We could be hitting some whacko WIN32 API "feature". I admit
that I am very lame in this regard. I have wasted weeks trying to sort
messes out like this before.

> > As for eliminating SLASH_STRING, well, that's a much bigger and riskier
> > change than the simple, pragmatic approach I've taken.
>
> I didn't say eliminate SLASH_STRING, I said eliminate _WIN32.  That is,
> make SLASH_STRING always be "/", but don't replace it with a literal "/".

Oh, ok, I see: just in case it is needed again, I suppose. That certainly
makes me a bit more comfortable than what I (mistakenly) thought you were
proposing.

In that case, I offer this alternative approach:

ChangeLog
2001-08-01  Keith Seitz  <keiths@redhat.com>

	* defs.h (SLASH_STRING): If not defined, set
	to "/", regardless of _WIN32, __CYGWIN__, or
	whatnot.

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/08/01 15:32:06
@@ -1408,11 +1408,7 @@ extern int use_windows;
 #endif

 #ifndef SLASH_STRING
-#ifdef _WIN32
-#define SLASH_STRING "\\"
-#else
 #define SLASH_STRING "/"
-#endif
 #endif

 /* Provide default definitions of PIDGET, TIDGET, and MERGEPID.

(Just wait until you see my next patch to fix gdb on win98! ;-)
Keith



  reply	other threads:[~2001-08-01  8:32 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.GSO.4.33.0107311445130.28966-100000@makita.cygnus.com>
2001-08-01  1:49 ` Eli Zaretskii
2001-08-01  7:48   ` Keith Seitz
2001-08-01  8:23     ` Eli Zaretskii
2001-08-01  8:32       ` Keith Seitz [this message]
2001-08-01  8:39         ` Eli Zaretskii
2001-08-02 13:40           ` Christopher Faylor
2001-08-02 13:57             ` Keith Seitz
2001-08-02 14:11               ` Andrew Cagney
2001-08-02 14:37                 ` Keith Seitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.GSO.4.33.0108010825140.26158-100000@makita.cygnus.com \
    --to=keiths@cygnus.com \
    --cc=eliz@is.elta.co.il \
    --cc=gdb-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox