From: Christoph Mathys <eraserix@gmail.com>
To: gdb@sourceware.org
Subject: Re: cast in gdb python results in virtual baseclass botch
Date: Thu, 14 Apr 2011 13:45:00 -0000 [thread overview]
Message-ID: <BANLkTimLNAHZr1kN0RvXz-CQW_ixqj9kTg@mail.gmail.com> (raw)
In-Reply-To: <201104131929.46854.andre.poenitz@nokia.com>
On Wed, Apr 13, 2011 at 7:29 PM, André Pönitz <andre.poenitz@nokia.com> wrote:
> On Wednesday 13 April 2011 19:08:17 ext Christoph Mathys wrote:
>> On Wed, Apr 13, 2011 at 5:26 PM, André Pönitz <andre.poenitz@nokia.com> wrote:
>> > I don't think you have to cast.
>> >
>> > inner = item.value["px"].dereference() has already the correct type.
>>
>> I expressed myself badly:
>>
> Then
>
> item.value["px"].dereference().cast(gdb.lookup_type("IXmlNode").pointer())["m_pNode"]
>
> or something similar might do the trick.
Thanks for the input. That's what I do really, except that I cast to
XmlNode pointer and not the interface. The cast works for most of the
instance variables, except for some, and I don't know why. But well,
it is good enough for now...
Christoph
next prev parent reply other threads:[~2011-04-14 13:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-13 14:59 Christoph Mathys
2011-04-13 15:27 ` André Pönitz
2011-04-13 17:08 ` Christoph Mathys
2011-04-13 17:09 ` Christoph Mathys
2011-04-13 17:29 ` André Pönitz
2011-04-14 13:45 ` Christoph Mathys [this message]
2011-04-14 16:03 ` Tom Tromey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BANLkTimLNAHZr1kN0RvXz-CQW_ixqj9kTg@mail.gmail.com \
--to=eraserix@gmail.com \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox