You've already forked Core2forAWS-MicroPython
mirror of
https://github.com/m5stack/Core2forAWS-MicroPython.git
synced 2026-05-20 10:30:31 -07:00
py/vm: Fix VM opcode tracing to print correct stack pointer.
Also const_table is now moved to the code_state->fun_bc structure.
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
#include "py/bc.h"
|
||||
|
||||
#if 0
|
||||
#define TRACE(ip) printf("sp=%d ", (int)(sp - code_state->sp)); mp_bytecode_print2(ip, 1, code_state->const_table);
|
||||
#define TRACE(ip) printf("sp=%d ", (int)(sp - &code_state->state[0] + 1)); mp_bytecode_print2(ip, 1, code_state->fun_bc->const_table);
|
||||
#else
|
||||
#define TRACE(ip)
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user