about summary refs log tree commit diff stats
path: root/miasm2/analysis/debugging.py
diff options
context:
space:
mode:
Diffstat (limited to 'miasm2/analysis/debugging.py')
-rw-r--r--miasm2/analysis/debugging.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/miasm2/analysis/debugging.py b/miasm2/analysis/debugging.py
index 473f20f1..28e5ab3c 100644
--- a/miasm2/analysis/debugging.py
+++ b/miasm2/analysis/debugging.py
@@ -350,10 +350,11 @@ class DebugCmd(cmd.Cmd, object):
                 size = int(args[1])
         else:
             size = 0xF
-            if "0x" in args[0]:
-                addr = int(args[0], 16)
-            else:
-                addr = int(args[0])
+
+        if "0x" in args[0]:
+            addr = int(args[0], 16)
+        else:
+            addr = int(args[0])
 
         self.dbg.watch_mem(addr, size)