diff options
author | hjk <hjk@qt.io> | 2017-01-31 15:01:48 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2017-01-31 14:09:36 +0000 |
commit | 92263a05358d8f445ea5afc0bee19a9a8424e348 (patch) | |
tree | f708ac3bd543469971fd6e67e11e0bc6bf4f8759 /share | |
parent | 2c55a9c569796329fd49a98537c73377ebb8718f (diff) | |
download | qt-creator-92263a05358d8f445ea5afc0bee19a9a8424e348.tar.gz |
Debugger: Do not try to access type information without loaded binary
Amends b5b233d69e90.
Change-Id: I24857b1ddfd3e5e1d234aac4e9871df4faf1c8fc
Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'share')
-rw-r--r-- | share/qtcreator/debugger/dumper.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/share/qtcreator/debugger/dumper.py b/share/qtcreator/debugger/dumper.py index c7bf24e2ab..3f2ca412e3 100644 --- a/share/qtcreator/debugger/dumper.py +++ b/share/qtcreator/debugger/dumper.py @@ -496,6 +496,14 @@ class DumperBase: return None if nativeType is None else self.fromNativeType(nativeType) def registerKnownTypes(self): + typeId = 'unsigned short' + tdata = self.TypeData(self) + tdata.name = typeId + tdata.typeId = typeId + tdata.lbitsize = 16 + tdata.code = TypeCodeIntegral + self.registerType(typeId, tdata) + typeId = 'QChar' tdata = self.TypeData(self) tdata.name = typeId @@ -504,7 +512,7 @@ class DumperBase: tdata.code = TypeCodeStruct field = self.Field(self) field.name = 'ucs' - field.ltype = self.lookupType('unsigned short') + field.ltype = 'unsigned short' field.lbitsize = 16 field.lbitpos = 0 tdata.lfields = [field] |