Commit 2b50fec7 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

Debugger: Fix int casting for bitfields

Change-Id: Iea3647594ffa3b2024ae469d844fa73028a0ab62
Reviewed-by: default avatarhjk <hjk@qt.io>
parent a6f43e49
......@@ -2801,6 +2801,8 @@ class DumperBase:
def integer(self):
if self.type.code == TypeCodeTypedef:
return self.detypedef().integer()
elif self.type.code == TypeCodeBitfield:
return self.lvalue
unsigned = self.type.name.startswith('unsigned')
bitsize = self.type.bitsize()
return self.extractInteger(bitsize, unsigned)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment