This is the mail archive of the
mailing list for the Archer project.
Re: How to cast a pointer to a base class with multiple inheritance
>>>>> "Richard" == Richard Ward <firstname.lastname@example.org> writes:
Richard> I have a patch I've been meaning to submit for a while, it adds
Richard> gdb.Value.rtti_type which returns the run time type of an object (as a
Richard> gdb.Type) using similar code to `set print object on'. The object can
Richard> then be cast using gdb.Value.cast.
Sounds useful. I'm not sure about the method name, but this is exactly
what I was picturing.