diff --git a/peps/pep-0768.rst b/peps/pep-0768.rst index 9105435a84f..e074f30c89b 100644 --- a/peps/pep-0768.rst +++ b/peps/pep-0768.rst @@ -135,9 +135,9 @@ A new structure is added to PyThreadState to support remote debugging: .. code-block:: C - typedef struct _remote_debugger_support { + typedef struct { int debugger_pending_call; - char debugger_script_path[MAX_SCRIPT_PATH_SIZE]; + char debugger_script_path[Py_MAX_SCRIPT_PATH_SIZE]; } _PyRemoteDebuggerSupport; This structure is appended to ``PyThreadState``, adding only a few fields that @@ -147,7 +147,7 @@ provides a filesystem path to a Python source file (.py) that will be executed w the interpreter reaches a safe point. The path must point to a Python source file, not compiled Python code (.pyc) or any other format. -The value for ``MAX_SCRIPT_PATH_SIZE`` will be a trade-off between binary size +The value for ``Py_MAX_SCRIPT_PATH_SIZE`` will be a trade-off between binary size and how big debugging scripts' paths can be. To limit the memory overhead per thread we will be limiting this to 512 bytes. This size will also be provided as part of the debugger support structure so debuggers know how much they can