This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: [RFC] display names of explicit typedefs for 'info types'


> -----Message d'origine-----
> De?: gdb-patches-owner@sourceware.org [mailto:gdb-patches-
> owner@sourceware.org] De la part de Tom Tromey
> Envoyé?: Thursday, June 24, 2010 6:37 PM
> À?: Pierre Muller
> Cc?: gdb-patches@sourceware.org
> Objet?: Re: [RFC] display names of explicit typedefs for 'info types'
> 
> >>>>> "Pierre" == Pierre Muller <pierre.muller@ics-cnrs.unistra.fr>
> writes:
> 
> 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.
> 
> Thanks for finding this.
> 
> Pierre> (gdb) ptype my
> Pierre> type = int
> Pierre> Here again, the original typedef name is completely lost ...
> 
> I think this is expected.  You can see the typedef if you use 'whatis'
> instead:
> 
> (gdb) whatis my
> type = myint
> 
> Pierre> 2010-06-22  Pierre Muller  <muller@ics.u-strasbg.fr>
> Pierre>         * c-typeprint.c (c_print_typedef): Append new type name
> for
> Pierre> typedefs.
> 
> This is ok.  Thanks.


  Thanks for the approval,
patch committed in:
http://sourceware.org/ml/gdb-cvs/2010-06/msg00167.html

Pierre


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]