summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorGalen Williamson <galen@vector35.com>2025-02-04 19:31:27 -0500
committerGalen Williamson <galen@vector35.com>2025-02-04 19:31:27 -0500
commit88a574f7bf826c4e9017a61fd8d8fac7012880d4 (patch)
tree1bcb8124283a2e2c16274f097015f554e7327d0d /python
parentea55cee42413c2e8108ca2a3a985abb106e3ab41 (diff)
Fixes `Architecture._get_stack_pointer_register` to return 0 instead of None when unimplemented to prevent ctypes error
Diffstat (limited to 'python')
-rw-r--r--python/architecture.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/architecture.py b/python/architecture.py
index 01ea3166..66d3229d 100644
--- a/python/architecture.py
+++ b/python/architecture.py
@@ -1033,7 +1033,7 @@ class Architecture(metaclass=_ArchitectureMetaClass):
def _get_stack_pointer_register(self, ctxt):
if self.stack_pointer is None:
- return None
+ return 0
try:
return self._all_regs[self.stack_pointer]
except KeyError: