about summary refs log tree commit diff stats
path: root/miasm2/analysis/debugging.py
diff options
context:
space:
mode:
authorserpilliere <fabrice.desclaux@cea.fr>2015-04-05 23:48:24 +0200
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2015-04-22 11:31:21 +0200
commit65feb2335c3fd525efde115932b512e7bbc720d1 (patch)
treed945f7f094beb6be3c822b67d06bb888f2e67712 /miasm2/analysis/debugging.py
parente6676c92ea2ea3e1f69c10902313094c1b83e375 (diff)
downloadmiasm-65feb2335c3fd525efde115932b512e7bbc720d1.tar.gz
miasm-65feb2335c3fd525efde115932b512e7bbc720d1.zip
Jitter: get/set mem is now wrapped in cpu
The get/set mem used during jit is wrapped by cpu. This allows cpu object to
callback (or not, depending on arch) a cache update.
Diffstat (limited to 'miasm2/analysis/debugging.py')
-rw-r--r--miasm2/analysis/debugging.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/miasm2/analysis/debugging.py b/miasm2/analysis/debugging.py
index 57f30181..4e6982b3 100644
--- a/miasm2/analysis/debugging.py
+++ b/miasm2/analysis/debugging.py
@@ -1,5 +1,6 @@
 import cmd
 from miasm2.core.utils import hexdump
+from miasm2.core.interval import interval
 import miasm2.jitter.csts as csts
 from miasm2.jitter.jitload import ExceptionHandle
 
@@ -152,7 +153,8 @@ class Debugguer(object):
         "Step in jit"
 
         self.myjit.jit.set_options(jit_maxline=1)
-        self.myjit.jit.updt_automod_code(self.myjit.vm, self.myjit.pc, 8)
+        self.myjit.jit.addr_mod = interval([(self.myjit.pc, self.myjit.pc)])
+        self.myjit.jit.updt_automod_code(self.myjit.vm)
 
         res = self.myjit.continue_run(step=True)
         self.handle_exception(res)