about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCamille Mougey <camille.mougey@cea.fr>2015-10-19 17:17:53 +0200
committerCamille Mougey <camille.mougey@cea.fr>2015-10-19 17:17:53 +0200
commit4d8d7e01c63c7d3ae502bc1f9caa3368d951112f (patch)
treecefce9fa7d5a2ee36c666d24e9a8908e01924e40
parentb812647d9f85ae326411357cf3490e2db914bf03 (diff)
downloadmiasm-4d8d7e01c63c7d3ae502bc1f9caa3368d951112f.tar.gz
miasm-4d8d7e01c63c7d3ae502bc1f9caa3368d951112f.zip
Debugging: propagate status on breakpoint stop
-rw-r--r--miasm2/analysis/debugging.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/miasm2/analysis/debugging.py b/miasm2/analysis/debugging.py
index 4e6982b3..592e21ff 100644
--- a/miasm2/analysis/debugging.py
+++ b/miasm2/analysis/debugging.py
@@ -149,6 +149,9 @@ class Debugguer(object):
         else:
             raise NotImplementedError("type res")
 
+        # Repropagate res
+        return res
+
     def step(self):
         "Step in jit"
 
@@ -165,9 +168,8 @@ class Debugguer(object):
         return res
 
     def run(self):
-        res = self.myjit.continue_run()
-        self.handle_exception(res)
-        return res
+        status = self.myjit.continue_run()
+        return self.handle_exception(status)
 
     def get_mem(self, addr, size=0xF):
         "hexdump @addr, size"