summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/types.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/python/types.py b/python/types.py
index f0d4fa94..cb215070 100644
--- a/python/types.py
+++ b/python/types.py
@@ -748,6 +748,7 @@ class TypeBuilder:
@property
def system_call_number(self) -> Optional[_int]:
+ """Gets/Sets the system call number for a FunctionType object if one exists otherwise None"""
if not core.BNTypeBuilderIsSystemCall(self._handle):
return None
return core.BNTypeBuilderGetSystemCallNumber(self._handle)
@@ -1842,6 +1843,13 @@ class Type:
result = core.BNIsTypeVolatile(self._handle)
return BoolWithConfidence(result.value, confidence = result.confidence)
+ @property
+ def system_call_number(self) -> Optional[_int]:
+ """Returns the system call number for a FunctionType object if one exists otherwise None"""
+ if not core.BNTypeIsSystemCall(self._handle):
+ return None
+ return core.BNTypeGetSystemCallNumber(self._handle)
+
@dataclass(frozen=True)
class RegisterStackAdjustmentWithConfidence: