From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28321 invoked by alias); 25 Mar 2009 19:14:39 -0000 Received: (qmail 28262 invoked by uid 22791); 25 Mar 2009 19:14:37 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx2.redhat.com (HELO mx2.redhat.com) (66.187.237.31) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 25 Mar 2009 19:14:32 +0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n2PJEIBc003688; Wed, 25 Mar 2009 15:14:18 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n2PJEBmb001206; Wed, 25 Mar 2009 15:14:11 -0400 Received: from opsy.redhat.com (vpn-13-99.rdu.redhat.com [10.11.13.99]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n2PJEGtU022431; Wed, 25 Mar 2009 15:14:17 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id 4353437815D; Wed, 25 Mar 2009 13:14:13 -0600 (MDT) To: Roland Schwingel Cc: gdb Subject: Re: Problem on cygwin with new wchar_t printing support via iconv() References: <49C9F1EE.4020404@onevision.de> From: Tom Tromey Reply-To: Tom Tromey Date: Wed, 25 Mar 2009 19:14:00 -0000 In-Reply-To: <49C9F1EE.4020404@onevision.de> (Roland Schwingel's message of "Wed\, 25 Mar 2009 09\:57\:18 +0100") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.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: 2009-03/txt/msg00157.txt.bz2 >>>>> "Roland" == Roland Schwingel writes: Roland> My cygwin 1.5.25 installation comes with libiconv 1.11. For my gdb Roland> intree tests I used libiconv 1.12. Actually, it occurred to me today that the in-tree libiconv is only used if there is no iconv already available. So, I think even in this case gdb is picking up the cygwin libiconv. Could you try a simple test? Run gdb on your program, evaluate 'set target-wide-charset UCS-2', and then 'print L"abcd"'. Does that work? Or hang? If it works, can you make it hang with some other string? Or do you know the contents of the wchar_t* in the backtrace that makes it hang? Also, I can tell you how to hack gdb's configure to really try libiconv 1.12. That would determine whether we are seeing a libiconv bug. Would you mind trying this? Tom