about summary refs log tree commit diff stats
path: root/example/symbol_exec/depgraph.py
diff options
context:
space:
mode:
authorserpilliere <serpilliere@users.noreply.github.com>2015-10-27 22:48:56 +0100
committerserpilliere <serpilliere@users.noreply.github.com>2015-10-27 22:48:56 +0100
commit3f9071a50671bb7a72d68e2dece83795aa9f9728 (patch)
tree0772e7aa28487f314206b9d5658981a56162d865 /example/symbol_exec/depgraph.py
parent6e0eb4f5eb8c53fc6002b955b96a5c06213d220f (diff)
parent5dbf046bbe07a28485a84eca14405d271d1ea7fa (diff)
downloadmiasm-3f9071a50671bb7a72d68e2dece83795aa9f9728.tar.gz
miasm-3f9071a50671bb7a72d68e2dece83795aa9f9728.zip
Merge pull request #244 from a-vincent/allow_int_base_selection
In interactive use, allow C-like prefixes to choose the base of integers
Diffstat (limited to 'example/symbol_exec/depgraph.py')
-rw-r--r--example/symbol_exec/depgraph.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/example/symbol_exec/depgraph.py b/example/symbol_exec/depgraph.py
index 5b6f373a..6aa9cf81 100644
--- a/example/symbol_exec/depgraph.py
+++ b/example/symbol_exec/depgraph.py
@@ -55,7 +55,7 @@ if args.rename_args:
             init_ctx[e_mem] = ExprId("arg%d" % i)
 
 # Disassemble the targeted function
-blocks = mdis.dis_multibloc(int(args.func_addr, 16))
+blocks = mdis.dis_multibloc(int(args.func_addr, 0))
 
 # Generate IR
 for block in blocks:
@@ -71,7 +71,7 @@ dg = DependencyGraph(ir_arch, implicit=args.implicit,
 		     follow_call=not(args.unfollow_call))
 
 # Build information
-target_addr = int(args.target_addr, 16)
+target_addr = int(args.target_addr, 0)
 current_block = list(ir_arch.getby_offset(target_addr))[0]
 line_nb = 0
 for line_nb, line in enumerate(current_block.lines):