about summary refs log tree commit diff stats
path: root/example/expression/access_c.py
diff options
context:
space:
mode:
authorAjax <commial@gmail.com>2018-07-02 19:12:53 +0200
committerAjax <commial@gmail.com>2018-07-03 14:28:18 +0200
commitd314460a5a19be1f3334baedf0105d9b72fc8620 (patch)
tree967c5856dcf37980cf80a2ea48cc7ee0e008e1bd /example/expression/access_c.py
parent68fac2e86cc61eba9adfe520fa0e04a7e8943450 (diff)
downloadmiasm-d314460a5a19be1f3334baedf0105d9b72fc8620.tar.gz
miasm-d314460a5a19be1f3334baedf0105d9b72fc8620.zip
Update symbol_pool's deprecated API -> LocationDB
Diffstat (limited to 'example/expression/access_c.py')
-rw-r--r--example/expression/access_c.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/expression/access_c.py b/example/expression/access_c.py
index 9b92d201..8e440cc1 100644
--- a/example/expression/access_c.py
+++ b/example/expression/access_c.py
@@ -144,7 +144,7 @@ dis_engine, ira = machine.dis_engine, machine.ira
 mdis = dis_engine(cont.bin_stream, loc_db=cont.loc_db)
 addr_head = 0
 asmcfg = mdis.dis_multiblock(addr_head)
-lbl_head = mdis.loc_db.getby_offset(addr_head)
+lbl_head = mdis.loc_db.get_offset_location(addr_head)
 
 ir_arch_a = ira(mdis.loc_db)
 for block in asmcfg.blocks: