summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@qt.io>2017-03-22 14:16:38 +0100
committerDavid Schulz <david.schulz@qt.io>2017-03-22 14:03:55 +0000
commitc2f260ee2e58be1b9dd6390954e7678dd4bb93eb (patch)
treedf20a0fa8428ff2b3bd0879738497669b1af6a84 /share
parent26056cea41ae0da6139d346c9adaf6f073d0427f (diff)
downloadqt-creator-c2f260ee2e58be1b9dd6390954e7678dd4bb93eb.tar.gz
Debugger: Add exceptions for array type names
Cdb also seems to return <gentype number> type names for virtual function table types. Change-Id: I0d9accb88222de599488fabdb69c7f1585216c8e Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'share')
-rw-r--r--share/qtcreator/debugger/cdbbridge.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/share/qtcreator/debugger/cdbbridge.py b/share/qtcreator/debugger/cdbbridge.py
index 0849b532c2..1bbc2793ac 100644
--- a/share/qtcreator/debugger/cdbbridge.py
+++ b/share/qtcreator/debugger/cdbbridge.py
@@ -160,7 +160,9 @@ class Dumper(DumperBase):
return self.createPointerType(targetType)
if code == TypeCodeArray:
- if nativeType.name().startswith('__fptr()'):
+ # 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('<gentype '):
code = TypeCodeStruct
else:
targetType = self.lookupType(nativeType.targetName(), nativeType.moduleId())