mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
fhdl/tracer: recognize CALL_FUNCTION_VAR opcode
This commit is contained in:
parent
12158ceadf
commit
7e2581bf17
1 changed files with 2 additions and 1 deletions
|
@ -5,7 +5,8 @@ from collections import defaultdict
|
|||
def get_var_name(frame):
|
||||
code = frame.f_code
|
||||
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
|
||||
index = call_index+3
|
||||
while True:
|
||||
|
|
Loading…
Reference in a new issue