about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorserpilliere <serpilliere@users.noreply.github.com>2022-03-28 12:24:31 +0200
committerGitHub <noreply@github.com>2022-03-28 12:24:31 +0200
commit7ee593d00488e75dadb6edad7ffe5a7dcf6b155d (patch)
tree755b94438f9f9e1ac8691c7d03039b042a19c747
parenta94a3a2976468f4ca79aec13a301e0da74079ddc (diff)
parent7d22d1ce7001e80c61fbd2025338f8742078097d (diff)
downloadmiasm-7ee593d00488e75dadb6edad7ffe5a7dcf6b155d.tar.gz
miasm-7ee593d00488e75dadb6edad7ffe5a7dcf6b155d.zip
Merge pull request #1423 from WilliamBruneau/fix_mem_bp_dbg
Fix memory breakpoint display in debugger
-rw-r--r--miasm/analysis/debugging.py6
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()