mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
gh-127604: Add C stack dumps to faulthandler
(#128159)
This commit is contained in:
parent
ea8ec95cfa
commit
8dfa840773
13 changed files with 378 additions and 69 deletions
|
@ -56,6 +56,7 @@ struct _faulthandler_runtime_state {
|
|||
#ifdef MS_WINDOWS
|
||||
void *exc_handler;
|
||||
#endif
|
||||
int c_stack;
|
||||
} fatal_error;
|
||||
|
||||
struct {
|
||||
|
|
|
@ -99,6 +99,9 @@ extern int _PyTraceBack_Print(
|
|||
extern int _Py_WriteIndentedMargin(int, const char*, PyObject *);
|
||||
extern int _Py_WriteIndent(int, PyObject *);
|
||||
|
||||
// Export for the faulthandler module
|
||||
PyAPI_FUNC(void) _Py_DumpStack(int fd);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue