Commit 8d810bd1 authored by ck's avatar ck Committed by Friedemann Kleint
Browse files

Debugger: Fix dumper tests for 64-bit Linux.



Resolved padding issue for QMapNode.
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@nokia.com>
parent b1af7f2f
......@@ -1530,8 +1530,10 @@ template <typename K, typename V>
QByteArray keyTypeStr = typeToString<K>();
QByteArray valTypeStr = typeToString<V>();
#if QT_VERSION >= 0x040500
expected.append("addr='").
append(ptrToBa(reinterpret_cast<char *>(&(*it)) + sizeof(V))).
QMapNode<K, V> *node = 0;
size_t backwardOffset = size_t(&node->backward) - valOff;
char *addr = reinterpret_cast<char *>(&(*it)) + backwardOffset;
expected.append("addr='").append(ptrToBa(addr)).
append("',type='"NS"QMapNode<").append(keyTypeStr).append(",").
append(valTypeStr).append(MAP_NODE_TYPE_END).append("'");
#else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment