This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]