This is the mail archive of the
mailing list for the GDB project.
Re: patch to robustify gnuv3_rtti_type
On Sat, Jan 19, 2002 at 04:15:27PM -0800, Per Bothner wrote:
> Daniel Jacobowitz wrote:
> >> * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
> >> isn't NULL, which can happen with some gcj3.0-produced code.
> >OK for now.
> I checked it in.
> >I'll see if we can cope with the vtables that it currently
> >emits, too.
> Well, I have a non-checked-in gcj path that is one step towards
> fixing the vtables, in that it add sthe extra header words "in
> front of" the vtable pointer. I.e. I've allocated space in
> the vtable for the rtti pointer, though leaving the pointer
> null. The next step is sctually generating the type_info
> object. It might be nice to actually *embed* the type_info
> object inside the Class object, possibly reducing some
Go look at gnuv3_rtti_type again. It's misnamed; it does not use RTTI
at all. It only looks that the vtable exists and has a name demangled to
'vtable for <Class>'.
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer