diff --git a/share/qtcreator/debugger/cdbbridge.py b/share/qtcreator/debugger/cdbbridge.py index 1bbc2793acf..211b595efe9 100644 --- a/share/qtcreator/debugger/cdbbridge.py +++ b/share/qtcreator/debugger/cdbbridge.py @@ -153,20 +153,20 @@ class Dumper(DumperBase): code = nativeType.code() if code == TypeCodePointer: - if nativeType.name().startswith(''): - code = TypeCodeFunction - else: + if not nativeType.name().startswith(''): targetType = self.lookupType(nativeType.targetName(), nativeType.moduleId()) - return self.createPointerType(targetType) + if targetType is not None: + return self.createPointerType(targetType) + code = TypeCodeFunction if code == TypeCodeArray: # cdb reports virtual function tables as arrays those ar handled separetly by # the DumperBase. Declare those types as structs prevents a lookup to a none existing type - if nativeType.name().startswith('__fptr()') or nativeType.name().startswith('