about summary refs log tree commit diff stats
path: root/example
diff options
context:
space:
mode:
authorserpilliere <serpilliere@users.noreply.github.com>2015-10-20 10:43:59 +0200
committerserpilliere <serpilliere@users.noreply.github.com>2015-10-20 10:43:59 +0200
commitcc98370ff37b53ce3524273f708a17faff99661c (patch)
tree736dcaa79cb1c050199d9817d58f7ae11949c828 /example
parent861e0dc047b3a6675aa8a9b131a53cb6d4dd033f (diff)
parenta2a309511b162c3b1c28307274f2451d029f19f8 (diff)
downloadmiasm-cc98370ff37b53ce3524273f708a17faff99661c.tar.gz
miasm-cc98370ff37b53ce3524273f708a17faff99661c.zip
Merge pull request #230 from commial/fix_gdbserver
Fix gdbserver
Diffstat (limited to 'example')
-rw-r--r--example/jitter/unpack_upx.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/example/jitter/unpack_upx.py b/example/jitter/unpack_upx.py
index 08b733a4..2d0a02ea 100644
--- a/example/jitter/unpack_upx.py
+++ b/example/jitter/unpack_upx.py
@@ -81,6 +81,9 @@ def update_binary(jitter):
         sdata = sb.jitter.vm.get_mem(sb.pe.rva2virt(s.addr), s.rawsize)
         sb.pe.virt[sb.pe.rva2virt(s.addr)] = sdata
 
+    # Stop execution
+    jitter.run = False
+    return False
 
 # Set callbacks
 sb.jitter.add_breakpoint(end_label, update_binary)