about summary refs log tree commit diff stats
path: root/test/core/parse_asm.py
diff options
context:
space:
mode:
authorAjax <commial@gmail.com>2018-07-02 17:31:59 +0200
committerAjax <commial@gmail.com>2018-07-03 14:28:18 +0200
commit68fac2e86cc61eba9adfe520fa0e04a7e8943450 (patch)
tree2be74a21b54a3111f3c18746badfb0cf1ed41149 /test/core/parse_asm.py
parent6ef8dbb2223d0847e3822b545b249511e96a1f9b (diff)
downloadmiasm-68fac2e86cc61eba9adfe520fa0e04a7e8943450.tar.gz
miasm-68fac2e86cc61eba9adfe520fa0e04a7e8943450.zip
symbol_pool -> loc_db
Diffstat (limited to 'test/core/parse_asm.py')
-rwxr-xr-xtest/core/parse_asm.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/core/parse_asm.py b/test/core/parse_asm.py
index fab3a815..e8d5adc5 100755
--- a/test/core/parse_asm.py
+++ b/test/core/parse_asm.py
@@ -64,15 +64,15 @@ class TestParseAsm(unittest.TestCase):
         .string "toto"
         '''
 
-        asmcfg, symbol_pool = parse_txt(mn_x86, 32, ASM0)
+        asmcfg, loc_db = parse_txt(mn_x86, 32, ASM0)
         patches = asm_resolve_final(mn_x86,
                                     asmcfg,
-                                    symbol_pool)
+                                    loc_db)
         lbls = []
         for i in xrange(6):
-            lbls.append(symbol_pool.getby_name('lbl%d' % i))
+            lbls.append(loc_db.getby_name('lbl%d' % i))
         # align test
-        offset = symbol_pool.loc_key_to_offset(lbls[5])
+        offset = loc_db.loc_key_to_offset(lbls[5])
         assert(offset % 0x10 == 0)
         lbl2block = {}
         for block in asmcfg.blocks:
@@ -95,10 +95,10 @@ class TestParseAsm(unittest.TestCase):
             RET
         '''
 
-        asmcfg, symbol_pool = parse_txt(mn_x86, 32, ASM0)
+        asmcfg, loc_db = parse_txt(mn_x86, 32, ASM0)
         lbls = []
         for i in xrange(2):
-            lbls.append(symbol_pool.getby_name('lbl%d' % i))
+            lbls.append(loc_db.getby_name('lbl%d' % i))
         lbl2block = {}
         for block in asmcfg.blocks:
             lbl2block[block.loc_key] = block