Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Modify address of a gdb.Value
@ 2009-06-15  6:22 Niko Sams
  2009-06-15 16:43 ` Tom Tromey
  0 siblings, 1 reply; 8+ messages in thread
From: Niko Sams @ 2009-06-15  6:22 UTC (permalink / raw)
  To: gdb

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-06-17 16:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-15  6:22 Modify address of a gdb.Value Niko Sams
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox