diff options
| author | William Bruneau <william.bruneau@epfedu.fr> | 2022-02-23 16:48:43 +0100 |
|---|---|---|
| committer | William Bruneau <william.bruneau@epfedu.fr> | 2022-02-23 16:48:43 +0100 |
| commit | 35bb4bc0a147672c970962c187515ab67adf2212 (patch) | |
| tree | e044faa689a89c3d2c14bea8dd9ea892bad920e0 /example/jitter/memory_breakpoint.py | |
| parent | 321d298a5265e94fde00c3c8068dc87612ac1e5a (diff) | |
| download | focaccia-miasm-35bb4bc0a147672c970962c187515ab67adf2212.tar.gz focaccia-miasm-35bb4bc0a147672c970962c187515ab67adf2212.zip | |
Add test for memory breakpoint example
Diffstat (limited to 'example/jitter/memory_breakpoint.py')
| -rw-r--r-- | example/jitter/memory_breakpoint.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/example/jitter/memory_breakpoint.py b/example/jitter/memory_breakpoint.py index fc41eae8..900b1621 100644 --- a/example/jitter/memory_breakpoint.py +++ b/example/jitter/memory_breakpoint.py @@ -48,7 +48,8 @@ def memory_breakpoint_handler(jitter): jitter.vm.set_exception(jitter.vm.get_exception() ^ EXCEPT_BREAKPOINT_MEMORY) jitter.vm.reset_memory_access() - return True + # Stop the jitter + return False sb.jitter.add_exception_handler(EXCEPT_BREAKPOINT_MEMORY, memory_breakpoint_handler) # Run |