From: Pedro Alves <palves@redhat.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: gdb-patches@sourceware.org
Subject: Re: Fix compilation using mingw.org's MinGW
Date: Fri, 19 Apr 2019 10:51:00 -0000 [thread overview]
Message-ID: <556cefd7-47ce-54ab-a228-2c727aab4179@redhat.com> (raw)
In-Reply-To: <83y347cfbu.fsf@gnu.org>
On 4/18/19 7:56 PM, Eli Zaretskii wrote:
>> From: Pedro Alves <palves@redhat.com>
>> Date: Thu, 18 Apr 2019 18:22:14 +0100
>>
>> * Removed targets
>>
>> GDB no longer supports native debugging on versions of MS-Windows
>> before Windows XP.
>
> I was talking about compile time, not run time.
Not sure it makes any practical difference. From the text above, you could
claim that we wanted to support hosting GDB on older versions of Windows,
but not support native debugging, say, so you could still remote debug
from such older Windows boxes. But was that the intention? I'd say
keep it simple -- if we don't support native debugging, then we don't support
building at all either. The subject for the commit that added that NEWS entry
sound like that was the intention:
commit 742a7df5f4a149f0818aaccfc432c4c0c9a6e26d
Author: Eli Zaretskii <eliz@gnu.org>
AuthorDate: Sat Mar 2 15:18:32 2019 +0200
GDB no longer supports Windows before XP.
But surprisingly, I can't find the discussion behind this commit
in the archives to see the context and what was decided.
>
> In any case, if we don't support systems older than XP, then why do we
> load those functions dynamically at run time and call them via a
> function pointer?
Because that code is older than the decision to stop supporting older
Windows versions, surely? :
ChangeLog-2010: * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
ChangeLog-2010: (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
ChangeLog-2010: GetCurrentConsoleFont.
ChangeLog-2015: (GetCurrentConsoleFont_ftype, GetModuleInformation_ftype)
>
>> So shouldn't we instead be setting _WIN32_WINNT to some
>> appropriate number?
>
> I don't mind, but where?
I'd do it in common/common-defs.h, before any #include, where we define
other macros that must be defined before any include, like
__STDC_LIMIT_MACROS, _FORTIFY_SOURCE, etc.
> And also: should we make such changes on the
> 8.3 branch at this time?
Not sure. Off hand I'd think it's pretty safe, but maybe for 8.3
your patch is safer.
Thanks,
Pedro Alves
next prev parent reply other threads:[~2019-04-19 10:51 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-18 15:36 Eli Zaretskii
2019-04-18 17:01 ` Kevin Buettner
2019-04-18 18:54 ` Eli Zaretskii
2019-04-18 20:38 ` Kevin Buettner
2019-04-19 6:19 ` Eli Zaretskii
2019-04-18 17:20 ` Pedro Alves
2019-04-18 17:22 ` Pedro Alves
2019-04-18 18:57 ` Eli Zaretskii
2019-04-19 10:51 ` Pedro Alves [this message]
2019-04-19 11:23 ` Eli Zaretskii
2019-04-19 11:33 ` Pedro Alves
2019-04-28 14:33 ` Eli Zaretskii
2019-04-30 12:56 ` Pedro Alves
2019-04-30 13:06 ` LRN
2019-04-30 15:25 ` Eli Zaretskii
2019-04-30 17:04 ` Pedro Alves
2019-04-30 17:17 ` Eli Zaretskii
2019-04-30 17:26 ` Pedro Alves
2019-04-30 17:40 ` Eli Zaretskii
2019-04-30 17:58 ` Pedro Alves
[not found] ` <83o94nqr4g.fsf@gnu.org>
2019-04-30 18:38 ` Pedro Alves
2019-04-30 17:50 ` LRN
2019-04-30 13:10 ` Pedro Alves
2019-04-30 15:23 ` Eli Zaretskii
2019-04-30 16:31 ` Pedro Alves
2019-05-03 8:04 ` Eli Zaretskii
2019-05-03 8:26 ` Eli Zaretskii
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=556cefd7-47ce-54ab-a228-2c727aab4179@redhat.com \
--to=palves@redhat.com \
--cc=eliz@gnu.org \
--cc=gdb-patches@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