Debugger: Strip "union" from typename upon creation

Change-Id: I36f818d72bb6289523dc9de07899ea438ebb14d0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
David Schulz
2016-11-21 14:57:21 +01:00
parent 432fcb65d4
commit a494a84b33

View File

@@ -460,6 +460,9 @@ void type_Dealloc(Type *self)
PyObject *createType(ULONG64 module, ULONG typeId, const std::string &name)
{
std::string typeName = SymbolGroupValue::stripClassPrefixes(name);
if (typeName.compare(0, 6, "union ") == 0)
typeName.erase(0, 6);
if (!typeName.empty()) {
if (isPointerType(typeName))
return createPointerType((Type*)lookupType(stripPointerType(typeName)));