Skip to content

Commit f52d2d4

Browse files
committed
enable: add c_stack parameter
1 parent 72c5342 commit f52d2d4

File tree

6 files changed

+33
-17
lines changed

6 files changed

+33
-17
lines changed

Include/internal/pycore_global_objects_fini_generated.h

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Include/internal/pycore_global_strings.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ struct _Py_global_strings {
326326
STRUCT_FOR_ID(c_exception)
327327
STRUCT_FOR_ID(c_parameter_type)
328328
STRUCT_FOR_ID(c_return)
329+
STRUCT_FOR_ID(c_stack)
329330
STRUCT_FOR_ID(cached_datetime_module)
330331
STRUCT_FOR_ID(cached_statements)
331332
STRUCT_FOR_ID(cadata)

Include/internal/pycore_runtime_init_generated.h

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Include/internal/pycore_unicodeobject_generated.h

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Modules/clinic/faulthandler.c.h

Lines changed: 22 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Modules/faulthandler.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -589,17 +589,17 @@ faulthandler.enable as faulthandler_py_enable
589589
590590
file: object(py_default="sys.stderr") = NULL
591591
all_threads: bool = True
592+
c_stack: bool = True
592593
593594
Enable the fault handler.
594595
[clinic start generated code]*/
595596

596597
static PyObject *
597598
faulthandler_py_enable_impl(PyObject *module, PyObject *file,
598-
int all_threads)
599-
/*[clinic end generated code: output=348b6cfd9d6ac905 input=7bc5873504899ae6]*/
599+
int all_threads, int c_stack)
600+
/*[clinic end generated code: output=580d89b5eb62f1cb input=77277746a88b25ca]*/
600601
{
601602
int fd;
602-
int c_stack = 1;
603603
PyThreadState *tstate;
604604

605605
fd = faulthandler_get_fileno(&file);
@@ -788,7 +788,7 @@ static PyObject *
788788
faulthandler_dump_traceback_later_impl(PyObject *module,
789789
PyObject *timeout_obj, int repeat,
790790
PyObject *file, int exit)
791-
/*[clinic end generated code: output=a24d80d694d25ba2 input=aef7567b1048af00]*/
791+
/*[clinic end generated code: output=a24d80d694d25ba2 input=e474dbd9c8ac52cd]*/
792792
{
793793
PyTime_t timeout, timeout_us;
794794
int fd;

0 commit comments

Comments
 (0)