# HG changeset patch # User anatofuz # Date 1544606508 -32400 # Node ID 00bd9b3e6d86354cc7256babe677269a4b8c0c53 # Parent 0eaa19833fe4c23135e1f9c63b50f3aebdf67c4c use trace_cbc_mode diff -r 0eaa19833fe4 -r 00bd9b3e6d86 src/core/cbc-interp.cbc --- a/src/core/cbc-interp.cbc Tue Dec 11 15:04:06 2018 +0900 +++ b/src/core/cbc-interp.cbc Wed Dec 12 18:21:48 2018 +0900 @@ -57,7 +57,7 @@ static int tracing_enabled = 0; static int op_count=0; -static int cbc_trace=0; +int cbc_trace=0; // #define ddd(x) printf("count=%d op=%d cur_op=%p reg[0]=%p reg[2]=%p \n", op_count++, *i->cur_op, i->cur_op, GET_REG(i->cur_op, 0,i).o, GET_REG(i->cur_op, 2,i).o) #define ddd(x) ((op_count++,cbc_trace)?printf("count=%d op=%d\n", op_count, *(MVMuint16 *)i->cur_op):0) diff -r 0eaa19833fe4 -r 00bd9b3e6d86 src/core/interp.c --- a/src/core/interp.c Tue Dec 11 15:04:06 2018 +0900 +++ b/src/core/interp.c Wed Dec 12 18:21:48 2018 +0900 @@ -62,7 +62,7 @@ int use_cbc = 0; int op_count = 0; -int cbc_trace = 0; +extern int cbc_trace; extern void MVM_interp_run_cbc(MVMThreadContext *tc); /* This is the interpreter run loop. We have one of these per thread. */ diff -r 0eaa19833fe4 -r 00bd9b3e6d86 src/main.c --- a/src/main.c Tue Dec 11 15:04:06 2018 +0900 +++ b/src/main.c Wed Dec 12 18:21:48 2018 +0900 @@ -133,7 +133,7 @@ return OPT_DEBUGPORT; else if (starts_with(arg, "--cbc")) return OPT_CBC; - else if (starts_with(arg, "--cbc-trace")) + else if (starts_with(arg, "--trace-cbc")) return OPT_CBC_TRACE; else return UNKNOWN_FLAG;