diff options
| author | Brian Potchik <brian@vector35.com> | 2017-11-20 11:50:34 -0500 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2017-11-20 11:50:34 -0500 |
| commit | 8db4153af8182f9a3ef8b124a34860e5e4d16bcc (patch) | |
| tree | eae5445316f8b65b39c47758b45749f20614bcd8 /python | |
| parent | 661581594a014ceadc6284ef8c907162ef17380e (diff) | |
Update Python API to display PossibleValues that are of type ConstantPointerValue.
Diffstat (limited to 'python')
| -rw-r--r-- | python/function.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/python/function.py b/python/function.py index 9547e34a..e9e5dcc9 100644 --- a/python/function.py +++ b/python/function.py @@ -123,6 +123,8 @@ class PossibleValueSet(object): self.reg = arch.get_reg_name(value.value) elif value.state == RegisterValueType.ConstantValue: self.value = value.value + elif value.state == RegisterValueType.ConstantPointerValue: + self.value = value.value elif value.state == RegisterValueType.StackFrameOffset: self.offset = value.value elif value.state == RegisterValueType.SignedRangeValue: @@ -164,6 +166,8 @@ class PossibleValueSet(object): return "<entry %s>" % self.reg if self.type == RegisterValueType.ConstantValue: return "<const %#x>" % self.value + if self.type == RegisterValueType.ConstantPointerValue: + return "<const ptr %#x>" % self.value if self.type == RegisterValueType.StackFrameOffset: return "<stack frame offset %#x>" % self.offset if self.type == RegisterValueType.SignedRangeValue: |
