fhdl/tracer: recognize LOAD_DEREF opcode
This commit is contained in:
parent
3c75121783
commit
12158ceadf
|
@ -19,7 +19,7 @@ def get_var_name(frame):
|
|||
elif opc == "STORE_DEREF":
|
||||
name_index = int(code.co_code[index+1])
|
||||
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
|
||||
elif opc == "DUP_TOP":
|
||||
index += 1
|
||||
|
|
Loading…
Reference in New Issue