about summary refs log tree commit diff stats
path: root/example/disas_and_graph.py
diff options
context:
space:
mode:
Diffstat (limited to 'example/disas_and_graph.py')
-rwxr-xr-xexample/disas_and_graph.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/example/disas_and_graph.py b/example/disas_and_graph.py
index 9ca32c23..f7b0fa60 100755
--- a/example/disas_and_graph.py
+++ b/example/disas_and_graph.py
@@ -151,9 +151,11 @@ from miasm.graph.graph_qt import graph_blocs
 
 
 #test symbols from ida
-for (n,f), ad in dll_dyn_funcs.items():
-    l  = symbol_pool.getby_name_create("%s_%s"%(n, f))
-    l.offset = ad
+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
+        symbol_pool.s_offset[l.offset] = l
 
 
 def my_disasm_callback(ad):