diff --git a/share/qtcreator/debugger/creatortypes.py b/share/qtcreator/debugger/creatortypes.py index a02a6fb5066..50ca72d462e 100644 --- a/share/qtcreator/debugger/creatortypes.py +++ b/share/qtcreator/debugger/creatortypes.py @@ -43,7 +43,12 @@ def extractPointerType(d, value): while stripTypeName(value) == "CPlusPlus::PointerType": postfix += "*" value = d.downcast(value["_elementType"]["_type"]) - return readLiteral(d, value["_name"]) + postfix + try: + return readLiteral(d, value["_name"]) + postfix + except: + if str(value.type.unqualified().target()) == "CPlusPlus::IntegerType": + return "int" + postfix + return "" def readTemplateName(d, value): name = readLiteral(d, value["_identifier"]) + "<"