about summary refs log tree commit diff stats
path: root/example/disasm/file.py
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2018-06-19 17:01:20 +0200
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2018-06-19 18:11:01 +0200
commit3b339448178ba2ff41bda606829deacc21df7198 (patch)
tree644544ae3cb356af99f8dc4976b21b008d6c5028 /example/disasm/file.py
parent0adddb12a7410c4bbdd6ee79252e9bf05ca22818 (diff)
downloadmiasm-3b339448178ba2ff41bda606829deacc21df7198.tar.gz
miasm-3b339448178ba2ff41bda606829deacc21df7198.zip
All: fix var name to reflect object types
Diffstat (limited to 'example/disasm/file.py')
-rw-r--r--example/disasm/file.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/example/disasm/file.py b/example/disasm/file.py
index 88ba6162..196e1b1a 100644
--- a/example/disasm/file.py
+++ b/example/disasm/file.py
@@ -13,6 +13,6 @@ cont = Container.from_stream(open(sys.argv[1]))
 mdis = dis_x86_32(cont.bin_stream)
 # Inform the engine to avoid disassembling null instructions
 mdis.dont_dis_nulstart_bloc = True
-blocks = mdis.dis_multiblock(addr)
+asmcfg = mdis.dis_multiblock(addr)
 
-open('graph.dot', 'w').write(blocks.dot())
+open('graph.dot', 'w').write(asmcfg.dot())