From 455cfbe8b7aed7cb5be8e1b9aa1917a9f7d51821 Mon Sep 17 00:00:00 2001 From: Ajax Date: Mon, 25 Jan 2016 11:05:29 +0100 Subject: BasicBlocks: update examples with the new API --- example/ida/graph_ir.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'example/ida/graph_ir.py') diff --git a/example/ida/graph_ir.py b/example/ida/graph_ir.py index b181f72a..4447cadd 100644 --- a/example/ida/graph_ir.py +++ b/example/ida/graph_ir.py @@ -119,8 +119,7 @@ print hex(ad) ab = mdis.dis_multibloc(ad) print "generating graph" -g = bloc2graph(ab, True) -open('asm_flow.dot', 'w').write(g) +open('asm_flow.dot', 'w').write(ab.graph.dot(label=True)) print "generating IR... %x" % ad -- cgit 1.4.1