summaryrefslogtreecommitdiff
path: root/python/function.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/function.py')
-rw-r--r--python/function.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/python/function.py b/python/function.py
index e840dd5e..64aea87f 100644
--- a/python/function.py
+++ b/python/function.py
@@ -1586,6 +1586,11 @@ class Function(object):
result = types.RegisterStackAdjustmentWithConfidence(adjust.adjustment, confidence = adjust.confidence)
return result
+ def is_call_instruction(self, addr, arch=None):
+ if arch is None:
+ arch = self.arch
+ return core.BNIsCallInstruction(self.handle, arch.handle, addr)
+
class AdvancedFunctionAnalysisDataRequestor(object):
def __init__(self, func = None):