fhdl/tracer: recognize CALL_FUNCTION_VAR opcode
This commit is contained in:
parent
12158ceadf
commit
7e2581bf17
|
@ -5,7 +5,8 @@ from collections import defaultdict
|
||||||
def get_var_name(frame):
|
def get_var_name(frame):
|
||||||
code = frame.f_code
|
code = frame.f_code
|
||||||
call_index = frame.f_lasti
|
call_index = frame.f_lasti
|
||||||
if opname[code.co_code[call_index]] != "CALL_FUNCTION":
|
call_opc = opname[code.co_code[call_index]]
|
||||||
|
if call_opc != "CALL_FUNCTION" and call_opc != "CALL_FUNCTION_VAR":
|
||||||
return None
|
return None
|
||||||
index = call_index+3
|
index = call_index+3
|
||||||
while True:
|
while True:
|
||||||
|
|
Loading…
Reference in New Issue