diff options
| author | ajax <devnull@localhost> | 2014-09-26 17:43:31 +0200 |
|---|---|---|
| committer | ajax <devnull@localhost> | 2014-09-26 17:43:31 +0200 |
| commit | 98d7ba4936084221913f19c76f509a8039be5056 (patch) | |
| tree | 2619d0b738bea106ea18d645525e277a414b37cc /miasm2/jitter/jitcore_python.py | |
| parent | a6211b4db008c182ae7dbebbdbcce623afcd9e82 (diff) | |
| download | focaccia-miasm-98d7ba4936084221913f19c76f509a8039be5056.tar.gz focaccia-miasm-98d7ba4936084221913f19c76f509a8039be5056.zip | |
JitCore Python: Handle log_regs, log_mn
Diffstat (limited to 'miasm2/jitter/jitcore_python.py')
| -rw-r--r-- | miasm2/jitter/jitcore_python.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/miasm2/jitter/jitcore_python.py b/miasm2/jitter/jitcore_python.py index 637e427b..b71bd138 100644 --- a/miasm2/jitter/jitcore_python.py +++ b/miasm2/jitter/jitcore_python.py @@ -144,6 +144,15 @@ class JitCore_Python(jitcore.JitCore): if line.offset not in offsets_jitted: offsets_jitted.add(line.offset) + # Log registers values + if self.log_regs: + update_cpu_from_engine(cpu, exec_engine) + cpu.vm_dump_gpregs() + + # Log instruction + if self.log_mn: + print "%08x %s" % (line.offset, line) + # Check for memory exception if (vmmngr.vm_get_exception() != 0): update_cpu_from_engine(cpu, exec_engine) |