diff options
| author | serpilliere <serpilliere@users.noreply.github.com> | 2024-02-25 11:25:59 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-25 11:25:59 +0100 |
| commit | 2b1273e097495cbce6df53b0e5d9f03692df82b0 (patch) | |
| tree | 9ca99e4f313d278cda2e87ac44d65e27dadc5130 /example/jitter/memory_breakpoint.py | |
| parent | 88d9db284ed4a2bc1fff783f70f90e9f88fe6b94 (diff) | |
| parent | b9798fa396317f0a3a3bcf6ccd434f27a7fa4462 (diff) | |
| download | focaccia-miasm-2b1273e097495cbce6df53b0e5d9f03692df82b0.tar.gz focaccia-miasm-2b1273e097495cbce6df53b0e5d9f03692df82b0.zip | |
Merge pull request #1472 from W0ni/fix_example_bp_display
Fix display format for jitter breakpoint example
Diffstat (limited to 'example/jitter/memory_breakpoint.py')
| -rw-r--r-- | example/jitter/memory_breakpoint.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/example/jitter/memory_breakpoint.py b/example/jitter/memory_breakpoint.py index 900b1621..291682a4 100644 --- a/example/jitter/memory_breakpoint.py +++ b/example/jitter/memory_breakpoint.py @@ -34,15 +34,15 @@ sb.jitter.vm.add_memory_breakpoint(address, size, access_type) def memory_breakpoint_handler(jitter): memory_read = jitter.vm.get_memory_read() if len(memory_read) > 0: - print("Read at instruction 0x%s:" % jitter.pc) + print("Read at instruction 0x%x:" % jitter.pc) for start_address, end_address in memory_read: - print("- from %s to %s" % (hex(start_address), hex(end_address))) + print("- from 0x%x to 0x%x" % (start_address, end_address)) memory_write = jitter.vm.get_memory_write() if len(memory_write) > 0: - print("Write at instruction 0x%s:" % jitter.pc) + print("Write at instruction 0x%x:" % jitter.pc) for start_address, end_address in memory_write: - print("- from %s to %s" % (hex(start_address), hex(end_address))) + print("- from 0x%x to 0x%x" % (start_address, end_address)) # Cleanup jitter.vm.set_exception(jitter.vm.get_exception() ^ EXCEPT_BREAKPOINT_MEMORY) |