fix label lookup

This commit is contained in:
Bryan Bishop 2012-04-27 15:33:37 -05:00
parent 9ed1a474d0
commit d319aea119

View File

@ -4988,10 +4988,10 @@ def get_label_for(address):
return thing["label"]
#the new way
if is_script_already_parsed_at(address):
obj = script_parse_table[address]
obj = script_parse_table[address]
if obj:
if hasattr(obj, "label"):
return getattr(obj, "label")
return obj.label.name
else:
return "AlreadyParsedNoDefaultUnknownLabel_" + hex(address)