fhdl/tracer: recognize CALL_FUNCTION_VAR opcode

This commit is contained in:
Sebastien Bourdeauducq 2013-03-12 13:48:09 +01:00
parent 12158ceadf
commit 7e2581bf17
1 changed files with 2 additions and 1 deletions

View File

@ -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: