diff options
author | Mark Shannon <mark@hotpy.org> | 2023-07-28 08:48:35 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-28 08:48:35 (GMT) |
commit | 3b1a4c18426c78a2fda0d59728bfe9eb92889722 (patch) | |
tree | c512a79c5cd867b030ce76fa757968749b895d6c /Include | |
parent | 4014869b4b2456b3da1118a37332f9e9e851aebf (diff) | |
download | cpython-3b1a4c18426c78a2fda0d59728bfe9eb92889722.zip cpython-3b1a4c18426c78a2fda0d59728bfe9eb92889722.tar.gz cpython-3b1a4c18426c78a2fda0d59728bfe9eb92889722.tar.bz2 |
[3.12] GH-106897: Add `RERAISE` event to `sys.monitoring`. (GH-107291) (GH-107346)
* Ensures that exception handling events are balanced. Each [re]raise event has a matching unwind/handled event.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/cpython/code.h | 4 | ||||
-rw-r--r-- | Include/internal/pycore_instruments.h | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/Include/cpython/code.h b/Include/cpython/code.h index 7449a98..565b394 100644 --- a/Include/cpython/code.h +++ b/Include/cpython/code.h @@ -10,9 +10,9 @@ extern "C" { /* Count of all "real" monitoring events (not derived from other events) */ -#define _PY_MONITORING_UNGROUPED_EVENTS 14 +#define _PY_MONITORING_UNGROUPED_EVENTS 15 /* Count of all monitoring events */ -#define _PY_MONITORING_EVENTS 16 +#define _PY_MONITORING_EVENTS 17 /* Table of which tools are active for each monitored event. */ typedef struct _Py_Monitors { diff --git a/Include/internal/pycore_instruments.h b/Include/internal/pycore_instruments.h index 9fb3952..cfa5d09 100644 --- a/Include/internal/pycore_instruments.h +++ b/Include/internal/pycore_instruments.h @@ -36,12 +36,13 @@ extern "C" { #define PY_MONITORING_EVENT_EXCEPTION_HANDLED 11 #define PY_MONITORING_EVENT_PY_UNWIND 12 #define PY_MONITORING_EVENT_PY_THROW 13 +#define PY_MONITORING_EVENT_RERAISE 14 /* Ancilliary events */ -#define PY_MONITORING_EVENT_C_RETURN 14 -#define PY_MONITORING_EVENT_C_RAISE 15 +#define PY_MONITORING_EVENT_C_RETURN 15 +#define PY_MONITORING_EVENT_C_RAISE 16 typedef uint32_t _PyMonitoringEventSet; |