summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2024-08-01 14:45:39 -0400
committerMason Reed <mason@vector35.com>2024-12-14 13:13:37 -0500
commit121c16592476754800b00a3b51595f4799944d04 (patch)
treeb1f9556704ff169bca8a66be0a0faa448e5e9ecf /python
parent487fa4b240ae2c2d5a712dd6e00071f8de57d0fc (diff)
Pass length to free register list callback
Allows language bindings like rust to free register lists sanely
Diffstat (limited to 'python')
-rw-r--r--python/architecture.py2
-rw-r--r--python/callingconvention.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/python/architecture.py b/python/architecture.py
index ec65b92e..abcfb015 100644
--- a/python/architecture.py
+++ b/python/architecture.py
@@ -999,7 +999,7 @@ class Architecture(metaclass=_ArchitectureMetaClass):
log_error(traceback.format_exc())
return 0
- def _free_register_list(self, ctxt, regs):
+ def _free_register_list(self, ctxt, regs, count):
try:
buf = ctypes.cast(regs, ctypes.c_void_p)
if buf.value not in self._pending_reg_lists:
diff --git a/python/callingconvention.py b/python/callingconvention.py
index ce722e80..43be2bf5 100644
--- a/python/callingconvention.py
+++ b/python/callingconvention.py
@@ -281,7 +281,7 @@ class CallingConvention:
count[0] = 0
return None
- def _free_register_list(self, ctxt, regs):
+ def _free_register_list(self, ctxt, regs, count):
try:
buf = ctypes.cast(regs, ctypes.c_void_p)
if buf.value not in self._pending_reg_lists: