From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19866 invoked by alias); 15 Apr 2011 10:34:13 -0000 Received: (qmail 19713 invoked by uid 22791); 15 Apr 2011 10:34: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.151) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 15 Apr 2011 10:34:08 +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 p3FAY6e0063800 for ; Fri, 15 Apr 2011 12:34:06 +0200 (CEST) (envelope-from pierre.muller@ics-cnrs.unistra.fr) Received: from mailserver.u-strasbg.fr (ms3.u-strasbg.fr [130.79.204.12]) by md2.u-strasbg.fr (8.14.4/jtpda-5.5pre1) with ESMTP id p3FAY6oH090637 for ; Fri, 15 Apr 2011 12:34:06 +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 p3FAY5fG075603 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Fri, 15 Apr 2011 12:34:06 +0200 (CEST) (envelope-from pierre.muller@ics-cnrs.unistra.fr) From: "Pierre Muller" To: "'gdb'" Subject: Problems with recent GDB Cygwin builds Date: Fri, 15 Apr 2011 10:34:00 -0000 Message-ID: <002601cbfb58$a52dff20$ef89fd60$@muller@ics-cnrs.unistra.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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/msg00058.txt.bz2 Using recent Cygwin builds, either trunk or 7.3 branch, I do get problems with iconv DLL. Typically, all string display fail. Easiest way to check is compile new TRUNK gdb go to build/gdb dir prompt# ./gdb ./gdb ... (top-gdb) print version $1 = (top-gdb) while prompt# ./gdb ./gdb ... (top-gdb) p version $1 = "7.2.90.20110414-cvs" (top-gdb) 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=-1 on return. $ 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 The problem seems to be that wchar_iterate returns 2 while the expected result is 0 or 1. Mingw32 or mingw64 seem to work just fine. Does anyone else have the same kind of troubles? Pierre Muller. 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 ...