Modify address of a gdb.Value

Niko Sams niko.sams@gmail.com
Mon Jun 15 06:22:00 GMT 2009


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



More information about the Gdb mailing list