From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5025 invoked by alias); 25 Jun 2010 07:36:40 -0000 Received: (qmail 5015 invoked by uid 22791); 25 Jun 2010 07:36:38 -0000 X-SWARE-Spam-Status: No, hits=0.3 required=5.0 tests=AWL,BAYES_00,MSGID_MULTIPLE_AT,RCVD_IN_JMF_BL 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, 25 Jun 2010 07:36:32 +0000 Received: from baal.u-strasbg.fr (baal.u-strasbg.fr [IPv6:2001:660:2402::41]) by mailhost.u-strasbg.fr (8.14.3/jtpda-5.5pre1) with ESMTP id o5P7aEpi013854 ; Fri, 25 Jun 2010 09:36:14 +0200 (CEST) (envelope-from pierre.muller@ics-cnrs.unistra.fr) Received: from mailserver.u-strasbg.fr (ms6.u-strasbg.fr [IPv6:2001:660:2402:d::15]) by baal.u-strasbg.fr (8.14.0/jtpda-5.5pre1) with ESMTP id o5P7ZRbc038453 ; Fri, 25 Jun 2010 09:35:34 +0200 (CEST) (envelope-from pierre.muller@ics-cnrs.unistra.fr) Received: from d620muller (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 o5P7Z9TW092003 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) ; Fri, 25 Jun 2010 09:35:10 +0200 (CEST) (envelope-from pierre.muller@ics-cnrs.unistra.fr) From: "Pierre Muller" To: Cc: References: <37197.5782713436$1277308354@news.gmane.org> In-Reply-To: Subject: RE: [RFC] display names of explicit typedefs for 'info types' Date: Fri, 25 Jun 2010 07:36:00 -0000 Message-ID: <001501cb1438$f89e2930$e9da7b90$@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-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: 2010-06/txt/msg00570.txt.bz2 > -----Message d'origine----- > De=A0: gdb-patches-owner@sourceware.org [mailto:gdb-patches- > owner@sourceware.org] De la part de Tom Tromey > Envoy=E9=A0: Thursday, June 24, 2010 6:37 PM > =C0=A0: Pierre Muller > Cc=A0: gdb-patches@sourceware.org > Objet=A0: Re: [RFC] display names of explicit typedefs for 'info types' >=20 > >>>>> "Pierre" =3D=3D Pierre Muller > writes: >=20 > Pierre> I was always puzzled by the fact that info types > Pierre> did sometime not list types that I knew existed. > Pierre> The problem is that for types defined in C using `typedef ' > Pierre> only the definition part was displayed, but not the name of > Pierre> the type itself. >=20 > Thanks for finding this. >=20 > Pierre> (gdb) ptype my > Pierre> type =3D int > Pierre> Here again, the original typedef name is completely lost ... >=20 > I think this is expected. You can see the typedef if you use 'whatis' > instead: >=20 > (gdb) whatis my > type =3D myint >=20 > Pierre> 2010-06-22 Pierre Muller > Pierre> * c-typeprint.c (c_print_typedef): Append new type name > for > Pierre> typedefs. >=20 > This is ok. Thanks. Thanks for the approval, patch committed in: http://sourceware.org/ml/gdb-cvs/2010-06/msg00167.html Pierre