diff options
| author | Rusty Wagner <rusty@vector35.com> | 2018-08-02 22:46:43 -0400 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2018-08-02 22:46:43 -0400 |
| commit | 7c4025df43511852ecb86d8ab608e1da476d90de (patch) | |
| tree | a70c900c0fe766f2c954274be74d7e8f47dc6ace /python/function.py | |
| parent | 657bc3ff2d000508bd4b4468e83ce37591655e17 (diff) | |
Add API to query if an assembly instruction is a call
Diffstat (limited to 'python/function.py')
| -rw-r--r-- | python/function.py | 5 |
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): |
