about summary refs log tree commit diff stats
path: root/example/disasm/full.py
diff options
context:
space:
mode:
authorAjax <commial@gmail.com>2015-11-09 14:49:51 +0100
committerAjax <commial@gmail.com>2015-11-09 15:01:12 +0100
commitb4114c3e786cf9c90b9c81cb4594d7775a266f5d (patch)
tree55e86387c9e1ee9b2b0c7fed92d8cf6cffde9160 /example/disasm/full.py
parent7681a432c7c98df9d075701a172df0d5f311f753 (diff)
downloadfocaccia-miasm-b4114c3e786cf9c90b9c81cb4594d7775a266f5d.tar.gz
focaccia-miasm-b4114c3e786cf9c90b9c81cb4594d7775a266f5d.zip
Example: move output .txt to .dot
Diffstat (limited to 'example/disasm/full.py')
-rw-r--r--example/disasm/full.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/example/disasm/full.py b/example/disasm/full.py
index db12c45b..03928e73 100644
--- a/example/disasm/full.py
+++ b/example/disasm/full.py
@@ -150,7 +150,7 @@ for blocs in all_funcs_blocs.values():
 
 log.info('generate graph file')
 g = bloc2graph(all_blocs, True)
-open('graph_execflow.txt', 'w').write(g)
+open('graph_execflow.dot', 'w').write(g)
 
 log.info('generate intervals')
 
@@ -167,7 +167,7 @@ for i, j in done_interval.intervals:
 
 
 all_lines.sort(key=lambda x: x.offset)
-open('lines.txt', 'w').write('\n'.join([str(l) for l in all_lines]))
+open('lines.dot', 'w').write('\n'.join([str(l) for l in all_lines]))
 log.info('total lines %s' % total_l)
 
 
@@ -200,4 +200,4 @@ if args.gen_ir:
         ir_arch_a.dead_simp()
 
     out = ir_arch_a.graph()
-    open('graph_irflow.txt', 'w').write(out)
+    open('graph_irflow.dot', 'w').write(out)