diff options
| author | William Bruneau <william.bruneau@epfedu.fr> | 2022-03-25 14:05:45 +0100 |
|---|---|---|
| committer | William Bruneau <william.bruneau@epfedu.fr> | 2022-03-25 14:05:45 +0100 |
| commit | 7d22d1ce7001e80c61fbd2025338f8742078097d (patch) | |
| tree | 755b94438f9f9e1ac8691c7d03039b042a19c747 | |
| parent | a94a3a2976468f4ca79aec13a301e0da74079ddc (diff) | |
| download | miasm-7d22d1ce7001e80c61fbd2025338f8742078097d.tar.gz miasm-7d22d1ce7001e80c61fbd2025338f8742078097d.zip | |
Fix memory breakpoint display in debugger
| -rw-r--r-- | miasm/analysis/debugging.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/miasm/analysis/debugging.py b/miasm/analysis/debugging.py index 849c8a4a..f114d901 100644 --- a/miasm/analysis/debugging.py +++ b/miasm/analysis/debugging.py @@ -163,18 +163,18 @@ class Debugguer(object): print("Breakpoint reached @0x%08x" % res.addr) elif isinstance(res, ExceptionHandle): if res == ExceptionHandle.memoryBreakpoint(): - print("Memory breakpoint reached at instruction 0x%s" % self.myjit.pc) + print("Memory breakpoint reached @0x%08x" % self.myjit.pc) memory_read = self.myjit.vm.get_memory_read() if len(memory_read) > 0: print("Read:") for start_address, end_address in memory_read: - print("- from %s to %s" % (hex(start_address), hex(end_address))) + print("- from 0x%08x to 0x%08x" % (start_address, end_address)) memory_write = self.myjit.vm.get_memory_write() if len(memory_write) > 0: print("Write:") for start_address, end_address in memory_write: - print("- from %s to %s" % (hex(start_address), hex(end_address))) + print("- from 0x%08x to 0x%08x" % (start_address, end_address)) # Remove flag except_flag = self.myjit.vm.get_exception() |