forked from qt-creator/qt-creator
cdbext: Fix dump of QDir.
Change-Id: I863c45b9c54d39c2e879d9f4f4d080622348e1db Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
@@ -1804,12 +1804,10 @@ static inline bool dumpQFileInfo(const SymbolGroupValue &v, std::wostream &str)
|
|||||||
* Dump 1st string past its QSharedData base class. */
|
* Dump 1st string past its QSharedData base class. */
|
||||||
static bool inline dumpQDir(const SymbolGroupValue &v, std::wostream &str)
|
static bool inline dumpQDir(const SymbolGroupValue &v, std::wostream &str)
|
||||||
{
|
{
|
||||||
// Access QDirPrivate's dirEntry, which has the path as first member.
|
const unsigned offset =
|
||||||
const unsigned listSize = qListSize(v.context());
|
v.fieldOffset(QtInfo::get(v.context()).prependQtCoreModule("QDirPrivate").c_str(),
|
||||||
const unsigned offset = padOffset(listSize + 2 * SymbolGroupValue::intSize())
|
"dirEntry.m_filePath");
|
||||||
+ padOffset(SymbolGroupValue::pointerSize() + SymbolGroupValue::sizeOf("bool"))
|
return dumpQStringFromQPrivateClass(v, QPDM_None, offset, str);
|
||||||
+ 2 * listSize;
|
|
||||||
return dumpQStringFromQPrivateClass(v, QPDM_qSharedDataPadded, offset, str);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Dump QRegExp, for whose private class no debugging information is available.
|
/* Dump QRegExp, for whose private class no debugging information is available.
|
||||||
|
|||||||
Reference in New Issue
Block a user