forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user