summaryrefslogtreecommitdiff
path: root/python/__init__.py
diff options
context:
space:
mode:
authorRusty Wagner <rusty@vector35.com>2016-08-30 21:59:40 -0400
committerRusty Wagner <rusty@vector35.com>2016-08-30 21:59:40 -0400
commit3978e18b09ca745fd08defb8f00fbece267beaf2 (patch)
tree5c5bf1ded8c38f3f18874f5990641f701fd194a7 /python/__init__.py
parent827662fbb6caa9d0aa3089cafb20a578a68eaee7 (diff)
Add API to reanalyze
Diffstat (limited to 'python/__init__.py')
-rw-r--r--python/__init__.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/python/__init__.py b/python/__init__.py
index e9f036ae..82aaba32 100644
--- a/python/__init__.py
+++ b/python/__init__.py
@@ -3231,6 +3231,14 @@ class BinaryView(object):
return None
return result.value
+ def reanalyze(self):
+ """
+ ``reanalyze`` causes all functions to be reanalyzed. This function does not wait for the analysis to finish.
+
+ :rtype: None
+ """
+ core.BNReanalyzeAllFunctions(self.handle)
+
def __setattr__(self, name, value):
try:
object.__setattr__(self,name,value)
@@ -4677,6 +4685,14 @@ class Function(object):
display_type = core.BNIntegerDisplayType_by_name[display_type]
core.BNSetIntegerConstantDisplayType(self.handle, arch.handle, instr_addr, value, operand, display_type)
+ def reanalyze(self):
+ """
+ ``reanalyze`` causes this functions to be reanalyzed. This function does not wait for the analysis to finish.
+
+ :rtype: None
+ """
+ core.BNReanalyzeFunction(self.handle)
+
class BasicBlockEdge:
def __init__(self, branch_type, target, arch):
self.type = core.BNBranchType_names[branch_type]