diff options
| author | Xusheng <xusheng@vector35.com> | 2021-01-14 17:56:04 +0800 |
|---|---|---|
| committer | Xusheng <xusheng@vector35.com> | 2021-01-18 10:38:26 +0800 |
| commit | 2dd9e2408b9fdadea180a07f6df82eaa18ba07a6 (patch) | |
| tree | fac902fe1a0b8acc807a209363c4b1e7d091dd57 /python | |
| parent | b47c5a64e466d2322a7072a3fd1d11aff5cfab43 (diff) | |
expose Function::IsVariableUserDefinded()
Diffstat (limited to 'python')
| -rw-r--r-- | python/function.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/python/function.py b/python/function.py index 13d73435..a1f9163c 100644 --- a/python/function.py +++ b/python/function.py @@ -2607,6 +2607,13 @@ class Function(object): var_data.storage = var.storage core.BNDeleteUserVariable(self.handle, var_data) + def is_var_user_defined(self, var): + var_data = core.BNVariable() + var_data.type = var.source_type + var_data.index = var.index + var_data.storage = var.storage + return core.BNIsVariableUserDefined(self.handle, var_data) + def get_stack_var_at_frame_offset(self, offset, addr, arch=None): if arch is None: arch = self.arch |
