From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19933 invoked by alias); 31 Jul 2009 18:03:15 -0000 Mailing-List: contact archer-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: List-Id: Received: (qmail 19884 invoked by uid 22791); 31 Jul 2009 18:03:15 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_54,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org To: Matthieu VIAL Cc: archer@sourceware.org Subject: Re: How to cast a pointer to a base class with multiple inheritance References: <1249024853.18179.17.camel@pc1134.silicomp.fr> From: Tom Tromey Reply-To: Tom Tromey Date: Fri, 31 Jul 2009 18:03:00 -0000 In-Reply-To: <1249024853.18179.17.camel@pc1134.silicomp.fr> (Matthieu VIAL's message of "Fri\, 31 Jul 2009 09\:20\:53 +0200") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2009-q3/txt/msg00072.txt.bz2 >>>>> "Matthieu" == Matthieu VIAL 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