From 1ab973f6ed70092cec70fe6846de02b8195d2e64 Mon Sep 17 00:00:00 2001 From: ajax Date: Wed, 4 Jun 2014 21:38:06 +0200 Subject: Debugging: fix watchmem second arg --- miasm2/analysis/debugging.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'miasm2/analysis/debugging.py') 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) -- cgit 1.4.1