From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28143 invoked by alias); 13 Apr 2011 17:09:56 -0000 Received: (qmail 28133 invoked by uid 22791); 13 Apr 2011 17:09:55 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-qy0-f176.google.com (HELO mail-qy0-f176.google.com) (209.85.216.176) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 13 Apr 2011 17:09:51 +0000 Received: by qyk30 with SMTP id 30so669369qyk.0 for ; Wed, 13 Apr 2011 10:09:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.90.130 with SMTP id i2mr6375230qcm.127.1302714590716; Wed, 13 Apr 2011 10:09:50 -0700 (PDT) Received: by 10.229.83.194 with HTTP; Wed, 13 Apr 2011 10:09:50 -0700 (PDT) In-Reply-To: References: <201104131726.55718.andre.poenitz@nokia.com> Date: Wed, 13 Apr 2011 17:09:00 -0000 Message-ID: Subject: Re: cast in gdb python results in virtual baseclass botch From: Christoph Mathys To: gdb@sourceware.org Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2011-04/txt/msg00050.txt.bz2 > I've got a reference to a "shared_ptr", and I want m_pNode. > So after I extracted px, I think I have to downcast from IXmlNode to > XmlNode. And this should of course have been a "shared_ptr".