From: Tom Tromey <tromey@redhat.com>
To: Christoph Mathys <eraserix@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: passing gdb.Value pointers to ctypes function calls
Date: Wed, 13 Apr 2011 14:26:00 -0000 [thread overview]
Message-ID: <m362qi2pnt.fsf@fleche.redhat.com> (raw)
In-Reply-To: <BANLkTimYpcNe63aXb7rabE-ziWaDrXN+kA@mail.gmail.com> (Christoph Mathys's message of "Tue, 12 Apr 2011 11:44:22 +0200")
>>>>> "Christoph" == Christoph Mathys <eraserix@gmail.com> writes:
Christoph> I'm trying to write a pretty printer for gdb 7.2 using python, to be
Christoph> concrete I would like to print an Xml node (libxml2) as text. I've
Christoph> managed to get the pointers to node and document. Now I'm trying to
Christoph> call libxml using ctypes module, passing the pointer values as
Christoph> c_void_p. But gdb keeps crashing on me. Is this supposed to work at
Christoph> all?
Nope, this won't work.
A gdb.Value represents a value in the inferior. If you look at its
address, you are getting an address in some other process, not in gdb.
Tom
prev parent reply other threads:[~2011-04-13 14:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-12 9:44 Christoph Mathys
2011-04-12 21:17 ` Phil Muldoon
2011-04-13 7:22 ` Christoph Mathys
2011-04-13 14:27 ` Tom Tromey
2011-04-13 14:26 ` Tom Tromey [this message]
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=m362qi2pnt.fsf@fleche.redhat.com \
--to=tromey@redhat.com \
--cc=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