From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28735 invoked by alias); 15 Apr 2011 15:38:18 -0000 Received: (qmail 28571 invoked by uid 22791); 15 Apr 2011 15:38:16 -0000 X-SWARE-Spam-Status: No, hits=-6.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 15 Apr 2011 15:37:34 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p3FFbQ4L031330 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 15 Apr 2011 11:37:27 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p3FFbQ5C023772; Fri, 15 Apr 2011 11:37:26 -0400 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id p3FFbP98023327; Fri, 15 Apr 2011 11:37:25 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id E299E379304; Fri, 15 Apr 2011 09:37:24 -0600 (MDT) From: Tom Tromey To: "Pierre Muller" Cc: "'gdb'" Subject: Re: Problems with recent GDB Cygwin builds References: <002601cbfb58$a52dff20$ef89fd60$@muller@ics-cnrs.unistra.fr> <15303.5644245849$1302874163@news.gmane.org> Date: Fri, 15 Apr 2011 15:38:00 -0000 In-Reply-To: <15303.5644245849$1302874163@news.gmane.org> (Pierre Muller's message of "Fri, 15 Apr 2011 15:28:35 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2011-04/txt/msg00061.txt.bz2 >>>>> "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? Tom