about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorajax <devnull@localhost>2014-06-04 21:38:06 +0200
committerajax <devnull@localhost>2014-06-04 21:38:06 +0200
commit1ab973f6ed70092cec70fe6846de02b8195d2e64 (patch)
tree1813a62a899d1cb3e65fe556c975147cc4711843
parent58f4256ccc3e81f7e01ef2aafee7ad1dff982363 (diff)
downloadmiasm-1ab973f6ed70092cec70fe6846de02b8195d2e64.tar.gz
miasm-1ab973f6ed70092cec70fe6846de02b8195d2e64.zip
Debugging: fix watchmem second arg
-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)