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 <>
parent b1af7f2f
...@@ -1530,8 +1530,10 @@ template <typename K, typename V> ...@@ -1530,8 +1530,10 @@ template <typename K, typename V>
QByteArray keyTypeStr = typeToString<K>(); QByteArray keyTypeStr = typeToString<K>();
QByteArray valTypeStr = typeToString<V>(); QByteArray valTypeStr = typeToString<V>();
#if QT_VERSION >= 0x040500 #if QT_VERSION >= 0x040500
expected.append("addr='"). QMapNode<K, V> *node = 0;
append(ptrToBa(reinterpret_cast<char *>(&(*it)) + sizeof(V))). size_t backwardOffset = size_t(&node->backward) - valOff;
char *addr = reinterpret_cast<char *>(&(*it)) + backwardOffset;
append("',type='"NS"QMapNode<").append(keyTypeStr).append(","). append("',type='"NS"QMapNode<").append(keyTypeStr).append(",").
append(valTypeStr).append(MAP_NODE_TYPE_END).append("'"); append(valTypeStr).append(MAP_NODE_TYPE_END).append("'");
#else #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