From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14817 invoked by alias); 17 Aug 2009 18:22:27 -0000 Received: (qmail 14711 invoked by uid 22791); 17 Aug 2009 18:22:26 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,MSGID_FROM_MTA_HEADER,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mtagate2.de.ibm.com (HELO mtagate2.de.ibm.com) (195.212.17.162) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 17 Aug 2009 18:22:19 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate2.de.ibm.com (8.13.1/8.13.1) with ESMTP id n7HIMG6R016998 for ; Mon, 17 Aug 2009 18:22:16 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id n7HIMG6U2408658 for ; Mon, 17 Aug 2009 20:22:16 +0200 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n7HIMF3Q017949 for ; Mon, 17 Aug 2009 20:22:15 +0200 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with SMTP id n7HIMEYV017944; Mon, 17 Aug 2009 20:22:14 +0200 Message-Id: <200908171822.n7HIMEYV017944@d12av02.megacenter.de.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Mon, 17 Aug 2009 20:22:14 +0200 Subject: Re: [RFA] Fix crash of convenience vars with typedefs. To: tromey@redhat.com Date: Mon, 17 Aug 2009 18:24:00 -0000 From: "Ulrich Weigand" Cc: dje@google.com (Doug Evans), gdb-patches@sourceware.org In-Reply-To: from "Tom Tromey" at Aug 17, 2009 09:41:21 AM MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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/msg00248.txt.bz2 Tom Tromey wrote: > >>>>> "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. Indeed. It seems to me that those instances ought to fixed, however, and we should avoid introducing new instances where possible ... Bye, Ulrich -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com