Commit aae5f4c8 authored by David Schulz's avatar David Schulz
Browse files

cdbext: Fix dump of QDir.

Change-Id: I863c45b9c54d39c2e879d9f4f4d080622348e1db
Reviewed-by: default avatarFriedemann Kleint <>
parent 82d6dd6f
......@@ -1804,12 +1804,10 @@ static inline bool dumpQFileInfo(const SymbolGroupValue &v, std::wostream &str)
* Dump 1st string past its QSharedData base class. */
static bool inline dumpQDir(const SymbolGroupValue &v, std::wostream &str)
// Access QDirPrivate's dirEntry, which has the path as first member.
const unsigned listSize = qListSize(v.context());
const unsigned offset = padOffset(listSize + 2 * SymbolGroupValue::intSize())
+ padOffset(SymbolGroupValue::pointerSize() + SymbolGroupValue::sizeOf("bool"))
+ 2 * listSize;
return dumpQStringFromQPrivateClass(v, QPDM_qSharedDataPadded, offset, str);
const unsigned offset =
return dumpQStringFromQPrivateClass(v, QPDM_None, offset, str);
/* Dump QRegExp, for whose private class no debugging information is available.
Supports Markdown
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