forked from qt-creator/qt-creator
Debugger: Strip "union" from typename upon creation
Change-Id: I36f818d72bb6289523dc9de07899ea438ebb14d0 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -460,6 +460,9 @@ void type_Dealloc(Type *self)
|
|||||||
PyObject *createType(ULONG64 module, ULONG typeId, const std::string &name)
|
PyObject *createType(ULONG64 module, ULONG typeId, const std::string &name)
|
||||||
{
|
{
|
||||||
std::string typeName = SymbolGroupValue::stripClassPrefixes(name);
|
std::string typeName = SymbolGroupValue::stripClassPrefixes(name);
|
||||||
|
if (typeName.compare(0, 6, "union ") == 0)
|
||||||
|
typeName.erase(0, 6);
|
||||||
|
|
||||||
if (!typeName.empty()) {
|
if (!typeName.empty()) {
|
||||||
if (isPointerType(typeName))
|
if (isPointerType(typeName))
|
||||||
return createPointerType((Type*)lookupType(stripPointerType(typeName)));
|
return createPointerType((Type*)lookupType(stripPointerType(typeName)));
|
||||||
|
Reference in New Issue
Block a user