Skip to content

Commit b577888

Browse files
fix debug
1 parent e1d5f41 commit b577888

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

Python/ceval.c

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,11 @@ _PyObjectArray_Free(PyObject **array, PyObject **scratch)
785785
#include "generated_tail_call_handlers.c.h"
786786
static inline PyObject *_TAIL_CALL_shim(TAIL_CALL_PARAMS)
787787
{
788+
#ifdef LLTRACE
789+
return (INSTRUCTION_TABLE[next_instr->op.code])(frame, stack_pointer, tstate, next_instr, next_instr->op.arg, entry_frame, lltrace);
790+
#else
788791
return (INSTRUCTION_TABLE[next_instr->op.code])(frame, stack_pointer, tstate, next_instr, next_instr->op.arg, entry_frame);
792+
#endif
789793
}
790794
#endif
791795

@@ -818,11 +822,11 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
818822

819823
#if defined(Py_DEBUG) && !defined(Py_STACKREF_DEBUG)
820824
/* Set these to invalid but identifiable values for debugging. */
821-
e.f_funcobj = (_PyStackRef){.bits = 0xaaa0};
822-
e.f_locals = (PyObject*)0xaaa1;
823-
e.frame_obj = (PyFrameObject*)0xaaa2;
824-
e.f_globals = (PyObject*)0xaaa3;
825-
e.f_builtins = (PyObject*)0xaaa4;
825+
entry_f.f_funcobj = (_PyStackRef){.bits = 0xaaa0};
826+
entry_f.f_locals = (PyObject*)0xaaa1;
827+
entry_f.frame_obj = (PyFrameObject*)0xaaa2;
828+
entry_f.f_globals = (PyObject*)0xaaa3;
829+
entry_f.f_builtins = (PyObject*)0xaaa4;
826830
#endif
827831
entry_f.f_executable = PyStackRef_None;
828832
entry_f.instr_ptr = (_Py_CODEUNIT *)_Py_INTERPRETER_TRAMPOLINE_INSTRUCTIONS + 1;

0 commit comments

Comments
 (0)