From c85a0a26c12fcef22ee0df37a54716d139c589cf Mon Sep 17 00:00:00 2001 From: Xusheng Date: Fri, 5 Jul 2024 13:15:48 +0800 Subject: Expose Function::UsesIncomingGlobalPointer through the API. Fix https://github.com/Vector35/binaryninja-api/issues/5686 --- python/function.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'python/function.py') diff --git a/python/function.py b/python/function.py index e43570a7..e21716ac 100644 --- a/python/function.py +++ b/python/function.py @@ -1821,6 +1821,11 @@ class Function: result = core.BNGetFunctionGlobalPointerValue(self.handle) 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""" -- cgit v1.3.1