mirror of
https://github.com/python/cpython.git
synced 2025-08-22 01:35:16 +00:00
bpo-42923: Dump extension modules on fatal error (GH-24207)
The Py_FatalError() function and the faulthandler module now dump the list of extension modules on a fatal error. Add _Py_DumpExtensionModules() and _PyModule_IsExtension() internal functions.
This commit is contained in:
parent
f7b5bacd7a
commit
250035d134
8 changed files with 96 additions and 0 deletions
|
@ -84,6 +84,12 @@ typedef struct PyModuleDef{
|
|||
freefunc m_free;
|
||||
} PyModuleDef;
|
||||
|
||||
|
||||
// Internal C API
|
||||
#ifdef Py_BUILD_CORE
|
||||
extern int _PyModule_IsExtension(PyObject *obj);
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue