This is the mail archive of the archer@sourceware.org mailing list for the Archer project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to cast a pointer to a base class with multiple inheritance


>>>>> "Richard" == Richard Ward <richard.j.ward1@googlemail.com> 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.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]