CdbExt: Workaround GetTypeSize issue...

... for QString and QByteArray.

Task-number: QTCREATORBUG-10679

Change-Id: Id07cad2715560f772374c1b4bcf3291338908f30
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
David Schulz
2013-11-08 13:06:25 +01:00
parent 647c65c96e
commit fe8110ed6f

View File

@@ -1628,9 +1628,11 @@ static unsigned qSharedDataSize(const SymbolGroupValueContext &ctx)
}
/* Return the size of a QString */
static unsigned qStringSize(const SymbolGroupValueContext &ctx)
static unsigned qStringSize(const SymbolGroupValueContext &/*ctx*/)
{
static const unsigned size = SymbolGroupValue::sizeOf(QtInfo::get(ctx).prependQtCoreModule("QString").c_str());
// static const unsigned size = SymbolGroupValue::sizeOf(QtInfo::get(ctx).prependQtCoreModule("QString").c_str());
// FIXME: Workaround the issue that GetTypeSize returns strange values;
static const unsigned size = SymbolGroupValue::pointerSize();
return size;
}
@@ -1642,9 +1644,11 @@ static unsigned qListSize(const SymbolGroupValueContext &ctx)
}
/* Return the size of a QByteArray */
static unsigned qByteArraySize(const SymbolGroupValueContext &ctx)
static unsigned qByteArraySize(const SymbolGroupValueContext &/*ctx*/)
{
static const unsigned size = SymbolGroupValue::sizeOf(QtInfo::get(ctx).prependQtCoreModule("QByteArray").c_str());
// static const unsigned size = SymbolGroupValue::sizeOf(QtInfo::get(ctx).prependQtCoreModule("QByteArray").c_str());
// FIXME: Workaround the issue that GetTypeSize returns strange values;
static const unsigned size = SymbolGroupValue::pointerSize();
return size;
}