From 65feb2335c3fd525efde115932b512e7bbc720d1 Mon Sep 17 00:00:00 2001 From: serpilliere Date: Sun, 5 Apr 2015 23:48:24 +0200 Subject: 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. --- miasm2/analysis/debugging.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'miasm2/analysis/debugging.py') 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) -- cgit 1.4.1