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: fix virtual base class bugs


>>>>> "Tom" == Tom Tromey <tromey@redhat.com> writes:

Tom> This second patch removes TYPE_DECLARED_TYPE and a bunch of related
Tom> constants.  These are not currently used in gdb, except by accident:
Tom> when a cplus_struct_type is allocated, the declared_type field is set to
Tom> 0 (== TYPE_DECLARED_CLASS).

Tom> In its place I put a single bit into main_type to indicate whether a
Tom> structure was declared using "struct" or "class".  I could have put this
Tom> into cplus_struct_type .. but that seems awfully heavy for a single bit
Tom> of information.

I've committed this as well.

Tom


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