gh-129223: Do not allow the compiler to optimise away symbols for deb… · python/cpython@170075a · GitHub
Skip to content

Commit 170075a

Browse files
committed
gh-129223: Do not allow the compiler to optimise away symbols for debug sections
Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
1 parent 5c9a63f commit 170075a

3 files changed

Lines changed: 17 additions & 11 deletions

File tree

Include/internal/pycore_debug_offsets.h

Lines changed: 11 additions & 10 deletions

Modules/_asynciomodule.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ typedef struct _Py_AsyncioModuleDebugOffsets {
117117
} asyncio_thread_state;
118118
} Py_AsyncioModuleDebugOffsets;
119119

120+
PyAPI_DATA(Py_AsyncioModuleDebugOffsets) AsyncioDebug;
120121
GENERATE_DEBUG_SECTION(AsyncioDebug, Py_AsyncioModuleDebugOffsets AsyncioDebug)
121122
= {.asyncio_task_object = {
122123
.size = sizeof(TaskObj),

Modules/_testexternalinspection.c

Lines changed: 5 additions & 1 deletion

0 commit comments

Comments
 (0)