diff options
| author | ajax <devnull@localhost> | 2014-06-04 21:38:06 +0200 |
|---|---|---|
| committer | ajax <devnull@localhost> | 2014-06-04 21:38:06 +0200 |
| commit | 1ab973f6ed70092cec70fe6846de02b8195d2e64 (patch) | |
| tree | 1813a62a899d1cb3e65fe556c975147cc4711843 /miasm2/analysis/debugging.py | |
| parent | 58f4256ccc3e81f7e01ef2aafee7ad1dff982363 (diff) | |
| download | miasm-1ab973f6ed70092cec70fe6846de02b8195d2e64.tar.gz miasm-1ab973f6ed70092cec70fe6846de02b8195d2e64.zip | |
Debugging: fix watchmem second arg
Diffstat (limited to 'miasm2/analysis/debugging.py')
| -rw-r--r-- | miasm2/analysis/debugging.py | 9 |
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) |