fhdl/tracer: recognize LOAD_DEREF opcode

This commit is contained in:
Sebastien Bourdeauducq 2013-03-12 10:31:56 +01:00
parent 3c75121783
commit 12158ceadf
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ def get_var_name(frame):
elif opc == "STORE_DEREF": elif opc == "STORE_DEREF":
name_index = int(code.co_code[index+1]) name_index = int(code.co_code[index+1])
return code.co_cellvars[name_index] return code.co_cellvars[name_index]
elif opc == "LOAD_GLOBAL" or opc == "LOAD_ATTR" or opc == "LOAD_FAST": elif opc == "LOAD_GLOBAL" or opc == "LOAD_ATTR" or opc == "LOAD_FAST" or opc == "LOAD_DEREF":
index += 3 index += 3
elif opc == "DUP_TOP": elif opc == "DUP_TOP":
index += 1 index += 1