about summary refs log tree commit diff stats
path: root/test/arch/mips32/unit/asm_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/arch/mips32/unit/asm_test.py')
-rw-r--r--test/arch/mips32/unit/asm_test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/arch/mips32/unit/asm_test.py b/test/arch/mips32/unit/asm_test.py
index be26bf49..da792874 100644
--- a/test/arch/mips32/unit/asm_test.py
+++ b/test/arch/mips32/unit/asm_test.py
@@ -27,7 +27,7 @@ class Asm_Test(object):
         blocks, loc_db = parse_asm.parse_txt(mn_mips32, 'l', self.TXT,
                                                   loc_db=self.myjit.ir_arch.loc_db)
         # fix shellcode addr
-        loc_db.set_offset(loc_db.getby_name("main"), 0x0)
+        loc_db.set_location_offset(loc_db.get_name_location("main"), 0x0)
         s = StrPatchwork()
         patches = asmblock.asm_resolve_final(mn_mips32, blocks, loc_db)
         for offset, raw in patches.items():