diff --git a/peps/pep-0768.rst b/peps/pep-0768.rst index e074f30c89b..164d2cdec55 100644 --- a/peps/pep-0768.rst +++ b/peps/pep-0768.rst @@ -137,7 +137,7 @@ A new structure is added to PyThreadState to support remote debugging: typedef struct { int debugger_pending_call; - char debugger_script_path[Py_MAX_SCRIPT_PATH_SIZE]; + char debugger_script_path[...]; } _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 ``Py_MAX_SCRIPT_PATH_SIZE`` will be a trade-off between binary size +The size of ``debugger_script_path`` 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