From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17855 invoked by alias); 15 Apr 2011 13:29:15 -0000 Received: (qmail 17821 invoked by uid 22791); 15 Apr 2011 13:29:13 -0000 X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL,BAYES_00,MSGID_MULTIPLE_AT X-Spam-Check-By: sourceware.org Received: from mailhost.u-strasbg.fr (HELO mailhost.u-strasbg.fr) (130.79.200.158) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 15 Apr 2011 13:28:42 +0000 Received: from md2.u-strasbg.fr (md2.u-strasbg.fr [IPv6:2001:660:2402::187]) by mailhost.u-strasbg.fr (8.14.3/jtpda-5.5pre1) with ESMTP id p3FDSaJf036016 for ; Fri, 15 Apr 2011 15:28:36 +0200 (CEST) (envelope-from pierre.muller@ics-cnrs.unistra.fr) Received: from mailserver.u-strasbg.fr (ms5.u-strasbg.fr [130.79.204.14]) by md2.u-strasbg.fr (8.14.4/jtpda-5.5pre1) with ESMTP id p3FDSa60047357 for ; Fri, 15 Apr 2011 15:28:36 +0200 (CEST) (envelope-from pierre.muller@ics-cnrs.unistra.fr) Received: from E6510Muller (gw-ics.u-strasbg.fr [130.79.210.225]) (user=mullerp mech=LOGIN) by mailserver.u-strasbg.fr (8.14.4/jtpda-5.5pre1) with ESMTP id p3FDSZO5040512 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Fri, 15 Apr 2011 15:28:36 +0200 (CEST) (envelope-from pierre.muller@ics-cnrs.unistra.fr) From: "Pierre Muller" To: "'gdb'" References: <002601cbfb58$a52dff20$ef89fd60$@muller@ics-cnrs.unistra.fr> In-Reply-To: <002601cbfb58$a52dff20$ef89fd60$@muller@ics-cnrs.unistra.fr> Subject: RE: Problems with recent GDB Cygwin builds Date: Fri, 15 Apr 2011 13:29:00 -0000 Message-ID: <005101cbfb71$05b62350$112269f0$@muller@ics-cnrs.unistra.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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/msg00059.txt.bz2 I found out that the problem is related to the fact that __STDC_ISO_10646__ is defined in: $ grep -n ISO_10646 /usr/include/*/* /usr/include/sys/features.h:185:#define __STDC_ISO_10646__ 200305L because of this, GDB uses "UCS-4LE"=20 for the macro INTERMEDIATE_ENCODING for Cygwin (while "wchar_t" is used for mingw32). Forcing "wchar_t" fixes the problem described below. The question is how to cope with this inside gdb sources. Pierre > -----Message d'origine----- > De=A0: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] De la p= art > de Pierre Muller > Envoy=E9=A0: vendredi 15 avril 2011 12:34 > =C0=A0: 'gdb' > Objet=A0: Problems with recent GDB Cygwin builds >=20 > Using recent Cygwin builds, either trunk or 7.3 branch, > I do get problems with iconv DLL. >=20 > Typically, all string display fail. >=20 > Easiest way to check is > compile new TRUNK gdb > go to build/gdb dir > prompt# ./gdb ./gdb >=20 > ... > (top-gdb) print version > $1 =3D > (top-gdb) >=20 > while >=20 > prompt# ./gdb ./gdb >=20 > ... > (top-gdb) p version > $1 =3D "7.2.90.20110414-cvs" > (top-gdb) >=20 > Trying to debug this, I clearly see that iconv callsdo fail > iconv is a macro and really calls libiconv which is in cygiconv-2.dll > as $eax=3D-1 on return. >=20 > $ cygcheck.exe -s |grep iconv > 980k 2011/01/28 E:\cygwin-1.7\bin\cygiconv-2.dll > libiconv 1.13.1-2 OK > libiconv2 1.13.1-2 OK >=20 >=20 > The problem seems to be that wchar_iterate returns 2 while > the expected result is 0 or 1. >=20 > Mingw32 or mingw64 seem to work just fine. >=20 > Does anyone else have the same kind of troubles? >=20 > Pierre Muller. >=20 > PS: I tried to compile libiconv-1.13.1-2 but it seems to require me to > install > lots of stuff I don't have ... >=20