Skip to content

Commit 20db703

Browse files
committed
dump position
1 parent 17a7769 commit 20db703

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libmwemu/src/emu/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4839,7 +4839,7 @@ impl Emu {
48394839
if self.cfg.console_enabled {
48404840
self.spawn_console();
48414841
} else {
4842-
return Err(MwemuError::new("emulation error"));
4842+
return Err(MwemuError::new(&format!("emulation error at pos = 0x:{:x} rip = 0x{:x}", self.pos, self.regs.rip)));
48434843
}
48444844
}
48454845

scripts/enigma-protector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
emu.set_verbose(0)
1616
emu.set_reg('rdx', 1)
17-
emu.spawn_console_at_pos(227871000)
17+
#emu.spawn_console_at_pos(227871000)
1818
try:
1919
emu.run()
2020
except Exception as e:

0 commit comments

Comments
 (0)