This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 0/5] Remove struct main_type.vptr_{fieldno,basetype}
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Doug Evans <xdje42 at gmail dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 2 Feb 2015 07:52:40 +0400
- Subject: Re: [PATCH 0/5] Remove struct main_type.vptr_{fieldno,basetype}
- Authentication-results: sourceware.org; auth=none
- References: <m361buac8x dot fsf at sspiff dot org>
> Anytime you can reduce the size of struct main_type that's A Good Thing.
> Alas in this case my motivation, besides more general cleanup (will it
> never end?), is that I may wish to add something to struct main_type.
> Now I can, if I need to.
>
> There are two fields in struct main_type that really shouldn't be there:
> vptr_fieldno, and vptr_basetype. Every type has to pay the price
> in memory usage for their presence. The proper place for them is
> in the type_specific field (in this case cplus_stuff) which exists
> for this purpose.
Thanks for doing that, Doug.
--
Joel