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: [patch 2/2] ptype should list also class's typedefs


On Mon, 28 Jun 2010 20:22:46 +0200, Tom Tromey wrote:
> Jan> 2010-06-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
> Jan> 	* c-typeprint.c (c_type_print_base): For no fields check include also
> Jan> 	TYPE_TYPEDEF_FIELD_COUNT.  Print new typedefs section.
> Jan> 	* dwarf2read.c (struct typedef_field_list)
> Jan> 	(struct field_info) <typedef_field_list, typedef_field_list_count>: New.
> Jan> 	(dwarf2_add_typedef): New.
> Jan> 	(read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
> Jan> 	Copy also FI.TYPEDEF_FIELD_LIST.
> Jan> 	* gdbtypes.h (struct typedef_field)
> Jan> 	(struct cplus_struct_type) <typedef_field, typedef_field_count>
> Jan> 	(TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
> Jan> 	(TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
> 
> Jan> 2010-06-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
> Jan> 	* gdb.cp/namespace.exp (ptype OtherFileClass typedefs)
> Jan> 	(ptype ::C::OtherFileClass typedefs): New.
> Jan> 	* gdb.cp/namespace1.cc (C::OtherFileClass::cOtherFileClassType2)
> Jan> 	(C::OtherFileClass::cOtherFileClassVar2): New.
> Jan> 	(C::OtherFileClass::cOtherFileClassVar_use): Use also
> Jan> 	cOtherFileClassVar2.
> Jan> 	(C::cOtherFileType2, C::cOtherFileVar2): New.
> Jan> 	(C::cOtherFileVar_use): use also cOtherFileVar2.
> Jan> 	* gdb.cp/userdef.exp (ptype &*c): Permit arbitrary trailing text.
> 
> This is ok.  Thanks.

Checked-in:
	http://sourceware.org/ml/gdb-cvs/2010-06/msg00199.html


Thanks,
Jan


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