mirror of
https://github.com/python/cpython.git
synced 2025-08-27 04:05:34 +00:00
gh-128563: Move lltrace into the frame struct (GH-129113)
This commit is contained in:
parent
31f149d5b3
commit
5809b25909
5 changed files with 26 additions and 17 deletions
|
@ -80,7 +80,7 @@
|
|||
|
||||
/* PRE_DISPATCH_GOTO() does lltrace if enabled. Normally a no-op */
|
||||
#ifdef LLTRACE
|
||||
#define PRE_DISPATCH_GOTO() if (lltrace >= 5) { \
|
||||
#define PRE_DISPATCH_GOTO() if (frame->lltrace >= 5) { \
|
||||
lltrace_instruction(frame, stack_pointer, next_instr, opcode, oparg); }
|
||||
#else
|
||||
#define PRE_DISPATCH_GOTO() ((void)0)
|
||||
|
@ -89,7 +89,8 @@
|
|||
#if LLTRACE
|
||||
#define LLTRACE_RESUME_FRAME() \
|
||||
do { \
|
||||
lltrace = maybe_lltrace_resume_frame(frame, GLOBALS()); \
|
||||
int lltrace = maybe_lltrace_resume_frame(frame, GLOBALS()); \
|
||||
frame->lltrace = lltrace; \
|
||||
if (lltrace < 0) { \
|
||||
goto exit_unwind; \
|
||||
} \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue