This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Modify address of a gdb.Value
- From: Niko Sams <niko dot sams at gmail dot com>
- To: gdb at sourceware dot org
- Date: Mon, 15 Jun 2009 08:22:25 +0200
- Subject: Modify address of a gdb.Value
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