[PATCH 0/5] Remove struct main_type.vptr_{fieldno,basetype}

Joel Brobecker brobecker@adacore.com
Mon Feb 2 03:52:00 GMT 2015


> 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



More information about the Gdb-patches mailing list