From: Tom Tromey <tromey@redhat.com>
To: "Pierre Muller" <pierre.muller@ics-cnrs.unistra.fr>
Cc: "'gdb'" <gdb@sourceware.org>
Subject: Re: Problems with recent GDB Cygwin builds
Date: Fri, 15 Apr 2011 15:38:00 -0000 [thread overview]
Message-ID: <m31v13edaj.fsf@fleche.redhat.com> (raw)
In-Reply-To: <15303.5644245849$1302874163@news.gmane.org> (Pierre Muller's message of "Fri, 15 Apr 2011 15:28:35 +0200")
>>>>> "Pierre" == Pierre Muller <pierre.muller@ics-cnrs.unistra.fr> writes:
Pierre> I found out that the problem is related to the
Pierre> fact that __STDC_ISO_10646__ is defined in:
Pierre> $ grep -n ISO_10646 /usr/include/*/*
Pierre> /usr/include/sys/features.h:185:#define __STDC_ISO_10646__ 200305L
Pierre> because of this, GDB uses "UCS-4LE" for the macro
Pierre> INTERMEDIATE_ENCODING for Cygwin (while "wchar_t" is used for
Pierre> mingw32).
Pierre> Forcing "wchar_t" fixes the problem described below.
Pierre> The question is how to cope with this inside gdb sources.
Worst case, you can add __CYGWIN__ checking in gdb_wchar.h.
Looking at charset.c, I see some special code for the USE_WIN32API case.
Does the Cygwin port define this? Maybe target-charset is wrong?
Tom
next prev parent reply other threads:[~2011-04-15 15:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-15 10:34 Pierre Muller
2011-04-15 13:29 ` Pierre Muller
[not found] ` <15303.5644245849$1302874163@news.gmane.org>
2011-04-15 15:38 ` Tom Tromey [this message]
2011-04-15 15:59 ` Pierre Muller
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=m31v13edaj.fsf@fleche.redhat.com \
--to=tromey@redhat.com \
--cc=gdb@sourceware.org \
--cc=pierre.muller@ics-cnrs.unistra.fr \
/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