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


>>>>> "Matthieu" == Matthieu VIAL <matthieu.vial@orange-ftgroup.com> writes:

Matthieu> I would like to know if it is possible to cast a pointer the
Matthieu> way the compiler do for classes with multiple inheritance with
Matthieu> archer. The this pointer changes depending on the base
Matthieu> class. So how to find the other pointers with the top pointer
Matthieu> ?

I think Value.cast should do the right thing here.  I haven't tried this
myself, though... did you try it?  It wasn't clear from your message.

If it doesn't work, please file a bug report in the gdb bugzilla using
'archer' as the version, and one of us will fix it.

Tom


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