def as_integer(self): if self.gdb_val.type.code == gdb.TYPE_CODE_PTR: as_str = rustpp.compat_str(self.gdb_val).split()[0] return int(as_str, 0) return int(self.gdb_val)