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

Debugger: Fix int casting for bitfields

Change-Id: Iea3647594ffa3b2024ae469d844fa73028a0ab62
Reviewed-by: default avatarhjk <>
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 ='unsigned')
bitsize = self.type.bitsize()
return self.extractInteger(bitsize, unsigned)
Supports Markdown
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