From: Niko Sams <niko.sams@gmail.com>
To: gdb@sourceware.org
Subject: Modify address of a gdb.Value
Date: Mon, 15 Jun 2009 06:22:00 -0000 [thread overview]
Message-ID: <629542d40906142322h733ad7ffr3d6daeb7b306ff7a@mail.gmail.com> (raw)
Hi,
I'm trying to write a pretty-printer for Qt QMap using python.
QMap uses the following code:
static inline Node *concrete(QMapData::Node *node) {
return reinterpret_cast<Node *>(reinterpret_cast<char *>(node) - payload());
}
How can I do such an operation with gdb.Value?
thanks,
Niko
next reply other threads:[~2009-06-15 6:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-15 6:22 Niko Sams [this message]
2009-06-15 16:43 ` Tom Tromey
2009-06-15 17:05 ` Vladimir Prus
2009-06-15 17:33 ` Paul Pluzhnikov
2009-06-15 19:27 ` Tom Tromey
2009-06-17 5:51 ` Niko Sams
2009-06-17 15:52 ` Niko Sams
2009-06-17 16:21 ` 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=629542d40906142322h733ad7ffr3d6daeb7b306ff7a@mail.gmail.com \
--to=niko.sams@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