summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorXusheng <xusheng@vector35.com>2024-07-05 13:15:48 +0800
committerXusheng <xusheng@vector35.com>2024-07-09 10:24:45 +0800
commitc85a0a26c12fcef22ee0df37a54716d139c589cf (patch)
tree43017bb51600fd87ea5b49bd9ff98096ba1b35e9 /python
parent1bab71bba6b2777ebe84313dcf22ec7d4edcd1d7 (diff)
Expose Function::UsesIncomingGlobalPointer through the API. Fix https://github.com/Vector35/binaryninja-api/issues/5686
Diffstat (limited to 'python')
-rw-r--r--python/function.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/python/function.py b/python/function.py
index e43570a7..e21716ac 100644
--- a/python/function.py
+++ b/python/function.py
@@ -1822,6 +1822,11 @@ class Function:
return variable.RegisterValue.from_BNRegisterValue(result, self.arch)
@property
+ def uses_incoming_global_pointer(self) -> bool:
+ """Whether the function uses the incoming global pointer value"""
+ return core.BNFunctionUsesIncomingGlobalPointer(self.handle)
+
+ @property
def comment(self) -> str:
"""Gets the comment for the current function"""
return core.BNGetFunctionComment(self.handle)