Debugger[CDB]: Fix CDB not showing QList<const char*>.

as it cannot determine the size of 'char const*' which it
reports as type.

Reviewed-by: hjk
Task-number: QTCREATORBUG-4253
This commit is contained in:
Friedemann Kleint
2011-03-29 09:56:40 +02:00
parent 325424d0d1
commit bfcdd9c700
4 changed files with 34 additions and 3 deletions

View File

@@ -1065,9 +1065,11 @@ extern "C" HRESULT CALLBACK test(CIDebugClient *client, PCSTR argsIn)
break;
case TestType: {
const KnownType kt = knownType(testType, 0);
str << testType << ' ' << kt << " [";
const std::string fixed = SymbolGroupValue::stripConst(testType);
const unsigned size = SymbolGroupValue::sizeOf(fixed.c_str());
str << '"' << testType << "\" (" << fixed << ") " << kt << " [";
formatKnownTypeFlags(str, kt);
str << ']';
str << "] size=" << size;
}
break;
case TestFixWatchExpression: