mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Generic encoded enums no longer crash on reference/pointer types
This commit is contained in:
parent
e88defe718
commit
04baf2593e
@ -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…
Reference in New Issue
Block a user