Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
20faa68b
Commit
20faa68b
authored
Oct 18, 2017
by
George King
Committed by
Nick Coghlan
Oct 19, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move opcode tracing to occur after the possible update to f_lineno. (GH-3798)
parent
0b6a118a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Python/ceval.c
Python/ceval.c
+4
-4
No files found.
Python/ceval.c
View file @
20faa68b
...
...
@@ -4416,10 +4416,6 @@ maybe_call_line_trace(Py_tracefunc func, PyObject *obj,
*
instr_lb
=
bounds
.
ap_lower
;
*
instr_ub
=
bounds
.
ap_upper
;
}
/* Always emit an opcode event if we're tracing all opcodes. */
if
(
frame
->
f_trace_opcodes
)
{
result
=
call_trace
(
func
,
obj
,
tstate
,
frame
,
PyTrace_OPCODE
,
Py_None
);
}
/* If the last instruction falls at the start of a line or if it
represents a jump backwards, update the frame's line number and
then call the trace function if we're tracing source lines.
...
...
@@ -4430,6 +4426,10 @@ maybe_call_line_trace(Py_tracefunc func, PyObject *obj,
result
=
call_trace
(
func
,
obj
,
tstate
,
frame
,
PyTrace_LINE
,
Py_None
);
}
}
/* Always emit an opcode event if we're tracing all opcodes. */
if
(
frame
->
f_trace_opcodes
)
{
result
=
call_trace
(
func
,
obj
,
tstate
,
frame
,
PyTrace_OPCODE
,
Py_None
);
}
*
instr_prev
=
frame
->
f_lasti
;
return
result
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment