about summary refs log tree commit diff stats
path: root/miasm2/core/cpu.py
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2018-06-19 17:45:55 +0200
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2018-06-19 17:45:55 +0200
commit3667e05bbd7f2ebb6aa856b99df9d7ffd0a18ca3 (patch)
tree9f089a88b7e43aaa79671cecd4dab3e681d77ffa /miasm2/core/cpu.py
parent8f5ca332780cf9e08761060e9903bc085dbc8430 (diff)
downloadmiasm-3667e05bbd7f2ebb6aa856b99df9d7ffd0a18ca3.tar.gz
miasm-3667e05bbd7f2ebb6aa856b99df9d7ffd0a18ca3.zip
Cpu: fix bad doc
Diffstat (limited to 'miasm2/core/cpu.py')
-rw-r--r--miasm2/core/cpu.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/miasm2/core/cpu.py b/miasm2/core/cpu.py
index a142ab77..80f81aff 100644
--- a/miasm2/core/cpu.py
+++ b/miasm2/core/cpu.py
@@ -1030,7 +1030,7 @@ class instruction(object):
                 if name == '_':
                     fixed_expr[exprloc] = self.get_asm_next_offset(exprloc)
                     continue
-                if not name in symbols:
+                if symbols.getby_name(name) is None:
                     raise ValueError('Unresolved symbol: %r' % exprloc)
 
                 offset = symbols.loc_key_to_offset(loc_key)