From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30546 invoked by alias); 17 Aug 2009 15:41:38 -0000 Received: (qmail 30538 invoked by uid 22791); 17 Aug 2009 15:41: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; Mon, 17 Aug 2009 15:41:30 +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 n7HFfNef005908; Mon, 17 Aug 2009 11:41:23 -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 n7HFfM1w011141; Mon, 17 Aug 2009 11:41:23 -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 n7HFfL4f026466; Mon, 17 Aug 2009 11:41:22 -0400 Received: by opsy.redhat.com (Postfix, from userid 500) id 8C15D3782C7; Mon, 17 Aug 2009 09:41:21 -0600 (MDT) From: Tom Tromey To: "Ulrich Weigand" Cc: dje@google.com (Doug Evans), gdb-patches@sourceware.org Subject: Re: [RFA] Fix crash of convenience vars with typedefs. References: <20090815000443.B0B0D8469B@localhost> <200908171308.n7HD8dwb023540@d12av02.megacenter.de.ibm.com> Reply-To: tromey@redhat.com Date: Mon, 17 Aug 2009 16:10:00 -0000 In-Reply-To: <200908171308.n7HD8dwb023540@d12av02.megacenter.de.ibm.com> (Ulrich Weigand's message of "Mon, 17 Aug 2009 15:08:39 +0200 (CEST)") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-08/txt/msg00241.txt.bz2 >>>>> "Ulrich" == Ulrich Weigand writes: Ulrich> Shouldn't the result of value_of_internalvar still have the original Ulrich> typedef name instead of the type it resolves to? This would be nice -- the wide character code relies on type names now, for instance -- but most of gdb already eagerly strips typedefs. E.g., look at value_cast, where the resulting value is not actually of the type you pass in, but rather the type after stripping typedefs. Tom