summaryrefslogtreecommitdiffstats
path: root/Python/ceval.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/ceval.c')
-rw-r--r--Python/ceval.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index f817f28..9dbcd3d 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -1017,7 +1017,12 @@ enter_tier_two:
uopcode = next_uop->opcode;
#ifdef Py_DEBUG
if (lltrace >= 3) {
- printf("%4d uop: ", (int)(next_uop - (current_executor == NULL ? next_uop : current_executor->trace)));
+ if (next_uop->opcode == _START_EXECUTOR || next_uop->opcode == _COLD_EXIT) {
+ printf("%4d uop: ", 0);
+ }
+ else {
+ printf("%4d uop: ", (int)(next_uop - current_executor->trace));
+ }
_PyUOpPrint(next_uop);
printf(" stack_level=%d\n",
(int)(stack_pointer - _PyFrame_Stackbase(frame)));
@@ -1113,7 +1118,7 @@ side_exit:
_PyUOpPrint(&next_uop[-1]);
printf(", exit %u, temp %d, target %d -> %s]\n",
exit_index, exit->temperature, exit->target,
- _PyOpcode_OpName[frame->instr_ptr->op.code]);
+ _PyOpcode_OpName[_PyCode_CODE(_PyFrame_GetCode(frame))[exit->target].op.code]);
}
#endif
Py_INCREF(exit->executor);