Generic encoded enums no longer crash on reference/pointer types
This commit is contained in:
parent
e88defe718
commit
04baf2593e
1 changed files with 2 additions and 0 deletions
|
@ -70,6 +70,8 @@ class GdbValue(rustpp.Value):
|
|||
return child
|
||||
|
||||
def as_integer(self):
|
||||
if self.gdb_val.type.code == gdb.TYPE_CODE_PTR:
|
||||
return int(str(self.gdb_val), 0)
|
||||
return int(self.gdb_val)
|
||||
|
||||
def get_wrapped_value(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue