Debugger: Replace the native void type with a fake void type

The native void type returns errors when accessing for example size
or name.

Change-Id: Ia5826ff4894eb7205d37a15661b82d9410171413
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
David Schulz
2016-11-07 07:50:07 +01:00
parent bf982fdfb9
commit bf133156ee

View File

@@ -110,6 +110,9 @@ class Dumper(DumperBase):
self.check(isinstance(nativeType, cdbext.Type))
code = nativeType.code()
if nativeType.name().startswith('void'):
nativeType = FakeVoidType(nativeType.name(), self)
if code == TypeCodePointer:
targetType = self.fromNativeType(nativeType.target().unqualified())
return self.createPointerType(targetType)