Problems with recent GDB Cygwin builds

Tom Tromey
Fri Apr 15 15:38:00 GMT 2011

>>>>> "Pierre" == Pierre Muller <> 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?


More information about the Gdb mailing list