about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2015-03-12 10:09:59 +0100
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2015-03-12 13:28:39 +0100
commitf1dc968b10f577f0f1c35dac583ccdc3614adf9e (patch)
tree107e57e6de477064a822240b2423f6e413e79e5b
parent78fb1b41149a387c0df7d1dff6cf6d8608ec15d9 (diff)
downloadmiasm-f1dc968b10f577f0f1c35dac583ccdc3614adf9e.tar.gz
miasm-f1dc968b10f577f0f1c35dac583ccdc3614adf9e.zip
Depgraph: add step to symbolic execution
-rw-r--r--miasm2/analysis/depgraph.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/miasm2/analysis/depgraph.py b/miasm2/analysis/depgraph.py
index cff5ab10..bb827c00 100644
--- a/miasm2/analysis/depgraph.py
+++ b/miasm2/analysis/depgraph.py
@@ -346,7 +346,7 @@ class DependencyResult(object):
     def input(self):
         return self._input_depnodes
 
-    def emul(self):
+    def emul(self, step=False):
         """Symbolic execution of relevant nodes according to the history
         Return the values of input nodes' elements
 
@@ -368,7 +368,7 @@ class DependencyResult(object):
         # Eval the block
         temp_label = asm_label("Temp")
         sb = symbexec(new_ira, new_ira.arch.regs.regs_init)
-        sb.emulbloc(irbloc(temp_label, affects))
+        sb.emulbloc(irbloc(temp_label, affects), step=step)
 
         # Return only inputs values (others could be wrongs)
         return {depnode.element: sb.symbols[depnode.element]