This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFC: fix virtual base class bugs
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Tue, 02 Feb 2010 09:47:33 -0700
- Subject: Re: RFC: fix virtual base class bugs
- References: <m34om4an5g.fsf@fleche.redhat.com> <m3k4v07fqp.fsf@fleche.redhat.com>
- Reply-to: Tom Tromey <tromey at redhat dot com>
>>>>> "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