@@ -281,7 +281,7 @@ class _remote_debugging.RemoteUnwinder "RemoteUnwinderObject *" "&RemoteUnwinder
281281/*[clinic input]
282282@permit_long_summary
283283_remote_debugging.RemoteUnwinder.__init__
284- pid: int
284+ pid: pid_t
285285 *
286286 all_threads: bool = False
287287 only_active_thread: bool = False
@@ -334,14 +334,14 @@ other runtime data.
334334
335335static int
336336_remote_debugging_RemoteUnwinder___init___impl (RemoteUnwinderObject * self ,
337- int pid , int all_threads ,
337+ pid_t pid , int all_threads ,
338338 int only_active_thread ,
339339 int mode , int debug ,
340340 int skip_non_matching_threads ,
341341 int native , int gc ,
342342 int opcodes , int cache_frames ,
343343 int stats )
344- /*[clinic end generated code: output=0031f743f4b9ad52 input=9d25ae328d62626d ]*/
344+ /*[clinic end generated code: output=acfe554c8a92cf6b input=3b5a5ad153709125 ]*/
345345{
346346 // Validate that all_threads and only_active_thread are not both True
347347 if (all_threads && only_active_thread ) {
@@ -1376,7 +1376,7 @@ cleanup_runtime_offsets(RuntimeOffsets *offsets)
13761376}
13771377
13781378static int
1379- init_runtime_offsets (RuntimeOffsets * offsets , int pid , int debug )
1379+ init_runtime_offsets (RuntimeOffsets * offsets , pid_t pid , int debug )
13801380{
13811381 offsets -> debug = debug ;
13821382 if (_Py_RemoteDebug_InitProcHandle (& offsets -> handle , pid ) < 0 ) {
@@ -1414,7 +1414,7 @@ class _remote_debugging.GCMonitor "GCMonitorObject *" "&GCMonitor_Type"
14141414/*[clinic input]
14151415@permit_long_summary
14161416_remote_debugging.GCMonitor.__init__
1417- pid: int
1417+ pid: pid_t
14181418 *
14191419 debug: bool = False
14201420
@@ -1437,9 +1437,9 @@ a running Python process.
14371437[clinic start generated code]*/
14381438
14391439static int
1440- _remote_debugging_GCMonitor___init___impl (GCMonitorObject * self , int pid ,
1440+ _remote_debugging_GCMonitor___init___impl (GCMonitorObject * self , pid_t pid ,
14411441 int debug )
1442- /*[clinic end generated code: output=2cdf351c2f6335db input=03da0b2d3282ae1b ]*/
1442+ /*[clinic end generated code: output=03b4c92bef0673ad input=dcc6ee2ec5a16fa1 ]*/
14431443{
14441444 return init_runtime_offsets (& self -> offsets , pid , debug );
14451445}
@@ -2226,7 +2226,7 @@ _remote_debugging_zstd_available_impl(PyObject *module)
22262226/*[clinic input]
22272227_remote_debugging.get_child_pids
22282228
2229- pid: int
2229+ pid: pid_t
22302230 Process ID of the parent process
22312231 *
22322232 recursive: bool = True
@@ -2248,24 +2248,24 @@ list is returned.
22482248[clinic start generated code]*/
22492249
22502250static PyObject *
2251- _remote_debugging_get_child_pids_impl (PyObject * module , int pid ,
2251+ _remote_debugging_get_child_pids_impl (PyObject * module , pid_t pid ,
22522252 int recursive )
2253- /*[clinic end generated code: output=1ae2289c6b953e4b input=c6437b52e2fdd880 ]*/
2253+ /*[clinic end generated code: output=fa3dfd1b02eed29b input=3325d95e9f39d75d ]*/
22542254{
2255- return enumerate_child_pids (( pid_t ) pid , recursive );
2255+ return enumerate_child_pids (pid , recursive );
22562256}
22572257
22582258/*[clinic input]
22592259_remote_debugging.is_python_process
22602260
2261- pid: int
2261+ pid: pid_t
22622262
22632263Check if a process is a Python process.
22642264[clinic start generated code]*/
22652265
22662266static PyObject *
2267- _remote_debugging_is_python_process_impl (PyObject * module , int pid )
2268- /*[clinic end generated code: output=22947dc8afcac362 input=13488e28c7295d84 ]*/
2267+ _remote_debugging_is_python_process_impl (PyObject * module , pid_t pid )
2268+ /*[clinic end generated code: output=63541478c889e536 input=ff998fef4aeef433 ]*/
22692269{
22702270 proc_handle_t handle ;
22712271
@@ -2288,7 +2288,7 @@ _remote_debugging_is_python_process_impl(PyObject *module, int pid)
22882288/*[clinic input]
22892289_remote_debugging.get_gc_stats
22902290
2291- pid: int
2291+ pid: pid_t
22922292 *
22932293 all_interpreters: bool = False
22942294 If True, return GC statistics from all interpreters.
@@ -2314,9 +2314,9 @@ Get garbage collector statistics from external Python process.
23142314[clinic start generated code]*/
23152315
23162316static PyObject *
2317- _remote_debugging_get_gc_stats_impl (PyObject * module , int pid ,
2317+ _remote_debugging_get_gc_stats_impl (PyObject * module , pid_t pid ,
23182318 int all_interpreters )
2319- /*[clinic end generated code: output=d9dce5f7add149bb input=a2a08a45a8f0b119 ]*/
2319+ /*[clinic end generated code: output=dd33199ccb6a56e9 input=41399e77788aa369 ]*/
23202320{
23212321 RuntimeOffsets offsets ;
23222322 if (init_runtime_offsets (& offsets , pid , /*debug=*/ 1 ) < 0 ) {
0 commit comments