diff options
| author | Peter LaFosse <peter@vector35.com> | 2017-07-15 18:47:20 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2017-07-15 18:47:20 -0400 |
| commit | bca65cd8e9be4bbd8ad566141311ff2517c4123e (patch) | |
| tree | 465066961b9e09d0f519e678ab31b25d3e8a8064 /python/callingconvention.py | |
| parent | bf9014621643585efed73386ed3e00067cf3ce17 (diff) | |
Fixes #539 CallingConvention can not be instantiated in the python api
Diffstat (limited to 'python/callingconvention.py')
| -rw-r--r-- | python/callingconvention.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/callingconvention.py b/python/callingconvention.py index 4c87eef6..e029a6aa 100644 --- a/python/callingconvention.py +++ b/python/callingconvention.py @@ -40,7 +40,7 @@ class CallingConvention(object): _registered_calling_conventions = [] - def __init__(self, arch, handle = None): + def __init__(self, arch, name, handle = None): if handle is None: self.arch = arch self._pending_reg_lists = {} @@ -55,7 +55,7 @@ class CallingConvention(object): self._cb.getIntegerReturnValueRegister = self._cb.getIntegerReturnValueRegister.__class__(self._get_int_return_reg) self._cb.getHighIntegerReturnValueRegister = self._cb.getHighIntegerReturnValueRegister.__class__(self._get_high_int_return_reg) self._cb.getFloatReturnValueRegister = self._cb.getFloatReturnValueRegister.__class__(self._get_float_return_reg) - self.handle = core.BNCreateCallingConvention(arch.handle, self.__class__.name, self._cb) + self.handle = core.BNCreateCallingConvention(arch.handle, name, self._cb) self.__class__._registered_calling_conventions.append(self) else: self.handle = handle |
