Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Christopher Faylor <cgf-use-the-mailinglist-please@sourceware.org>
To: gdb@sourceware.org, Joel Brobecker <brobecker@adacore.com>,
		Kai.Tietz@onevision.com, Eli Zaretskii <eliz@gnu.org>
Subject: Re: Support of gdb for Windows 64 native systems
Date: Sat, 13 Oct 2007 17:05:00 -0000	[thread overview]
Message-ID: <20071013170504.GA8519@ednor.casa.cgf.cx> (raw)
In-Reply-To: <20071013154715.GE29152@adacore.com>

On Sat, Oct 13, 2007 at 08:47:15AM -0700, Joel Brobecker wrote:
>> I'm not surprised, in particular because I've seen the patches applied
>> by the MinGW folks to produce a native MinGW port.  Personally, I
>> still think that at this magnitude of ifdef'ing we can certainly
>> justify two different targets.
>
>Yes, it's less clear at this point. Perhaps we can reduce further
>the differences. As this thread has shown me, the chopping I have
>already done was not nearly enough...
>
>> But this is not my call, and the prospects of finally having MinGW
>> support part of the official repository are so thrilling for me that
>> I'd hate if this argument would stand in the way.
>
>I'm like you, if keeping them separate is what the group decides,
>that's also fine with me. Might be more like Chris' call.

I'm ok with a limited number of ifdefs since I know that, as you say, it
is likely that 95% of the code will be similar.  It would be a
maintenance nightmare otherwise.

>> > +#ifdef _WIN32
>> > +  /* The executable must not be closed because it will not been possible to
>> > +     reopen it later under Windows NT if this executable is the one being
>> > +     debugged. */
>> > +
>> > +  if (strstr (name, ".exe") != NULL)
>> > +    sym_bfd->cacheable = FALSE;
>> > +  else
>> > +#endif
>> 
>> Doesn't Cygwin define _WIN32?  If it does, why do you need to
>> condition this fragment?
>
>I wasn't the author of this change, I think it was Jerome Guitton.
>Nonetheless, I think that the intent was to try to avoid unexpected
>impact on other platforms. The #ifdef can certainly be removed.

Cygwin doesn't define _WIN32 but I'm wondering why the above isn't
needed for Cygwin, too.

If we do go with the ifdef route, it would probably make sense to define
a WINDOWSISH or a MINGW_OR_CYGWIN variable.  I think there are other parts
of the build which do something like that.

cgf


  reply	other threads:[~2007-10-13 17:05 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20071011142348.GA18239@caradoc.them.org>
2007-10-11 14:47 ` Kai Tietz
     [not found]   ` <20071011145549.GA19918@caradoc.them.org>
2007-10-11 16:01     ` Joel Brobecker
2007-10-12  3:38       ` Christopher Faylor
2007-10-12  4:27         ` Joel Brobecker
2007-10-11 16:37     ` Mark Kettenis
2007-10-12  7:19     ` Kai Tietz
2007-10-12  8:44     ` Eli Zaretskii
2007-10-12 16:11       ` Joel Brobecker
2007-10-12 16:51         ` Eli Zaretskii
2007-10-12 17:45           ` Joel Brobecker
2007-10-12 20:29             ` Eli Zaretskii
2007-10-12 22:28               ` Joel Brobecker
2007-10-13  2:41                 ` Joel Brobecker
2007-10-13 10:48                   ` Eli Zaretskii
2007-10-13 15:47                     ` Joel Brobecker
2007-10-13 17:05                       ` Christopher Faylor [this message]
2007-10-13 17:36                       ` Pedro Alves
2007-10-13 19:09                         ` Eli Zaretskii
2007-10-13 19:19                           ` Pedro Alves
2007-10-13 20:51                         ` Joel Brobecker
2007-10-13 22:52                           ` Pedro Alves
2007-10-14  5:16                             ` Joel Brobecker
2007-10-14 11:44                               ` Pedro Alves
2007-10-14 20:33                                 ` Eli Zaretskii
2007-10-12 17:38         ` Pedro Alves
2007-10-11 13:53 Kai Tietz
2007-10-11 14:05 ` Daniel Jacobowitz
2007-10-11 14:18   ` Kai Tietz

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=20071013170504.GA8519@ednor.casa.cgf.cx \
    --to=cgf-use-the-mailinglist-please@sourceware.org \
    --cc=Kai.Tietz@onevision.com \
    --cc=brobecker@adacore.com \
    --cc=eliz@gnu.org \
    --cc=gdb@sourceware.org \
    /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