about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorserpilliere <devnull@localhost>2011-11-07 14:19:07 +0100
committerserpilliere <devnull@localhost>2011-11-07 14:19:07 +0100
commitb20d4b409f26a3d9109a09984e944979941a0aa8 (patch)
tree4d2630aee8ded825a3f0d6ba9f0fbdd24b6903a2
parentb9b27d5bf0c023d41399df9bc041ba64e6bf7044 (diff)
downloadmiasm-b20d4b409f26a3d9109a09984e944979941a0aa8.tar.gz
miasm-b20d4b409f26a3d9109a09984e944979941a0aa8.zip
fix symbol bug in disasm example
-rwxr-xr-xexample/disas_and_graph.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/example/disas_and_graph.py b/example/disas_and_graph.py
index ac99678a..b21ba2af 100755
--- a/example/disas_and_graph.py
+++ b/example/disas_and_graph.py
@@ -151,9 +151,10 @@ from miasm.graph.graph_qt import graph_blocs
 
 
 #test symbols from ida
-for (n,f), ad in dll_dyn_funcs.items():
-    l = asmbloc.asm_label("%s_%s"%(n, f), ad)
-    symbol_pool.add(l)
+for (n,f), ads in dll_dyn_funcs.items():
+    for ad in ads:
+        l  = symbol_pool.getby_name_create("%s_%s"%(n, f))
+        l.offset = ad
 
 
 def my_disasm_callback(ad):