summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2023-04-13 12:56:09 (GMT)
committerGitHub <noreply@github.com>2023-04-13 12:56:09 (GMT)
commit70e0a28bed1354ec450989271152ae697e1f0993 (patch)
treed564a57f7e066a3b6c621e06f65905de6e58c258 /Python
parent59e0de4903c02e72b329e505fddf1ad9794928bc (diff)
downloadcpython-70e0a28bed1354ec450989271152ae697e1f0993.zip
cpython-70e0a28bed1354ec450989271152ae697e1f0993.tar.gz
cpython-70e0a28bed1354ec450989271152ae697e1f0993.tar.bz2
GH-103082: Turn on branch events for FOR_ITER instructions. (#103507)
Turn on branch events for FOR_ITER instructions.
Diffstat (limited to 'Python')
-rw-r--r--Python/instrumentation.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/instrumentation.c b/Python/instrumentation.c
index 39a7eaa..8dc8b01 100644
--- a/Python/instrumentation.c
+++ b/Python/instrumentation.c
@@ -105,6 +105,8 @@ static const uint8_t INSTRUMENTED_OPCODES[256] = {
[INSTRUMENTED_END_FOR] = INSTRUMENTED_END_FOR,
[END_SEND] = INSTRUMENTED_END_SEND,
[INSTRUMENTED_END_SEND] = INSTRUMENTED_END_SEND,
+ [FOR_ITER] = INSTRUMENTED_FOR_ITER,
+ [INSTRUMENTED_FOR_ITER] = INSTRUMENTED_FOR_ITER,
[INSTRUMENTED_LINE] = INSTRUMENTED_LINE,
[INSTRUMENTED_INSTRUCTION] = INSTRUMENTED_INSTRUCTION,