Commit a0973b09 authored by Damien George's avatar Damien George
Browse files

py/vm: Fix VM opcode tracing to print correct stack pointer.

Also const_table is now moved to the code_state->fun_bc structure.
parent 220df854
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
#include "py/bc.h" #include "py/bc.h"
#if 0 #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 #else
#define TRACE(ip) #define TRACE(ip)
#endif #endif
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment