diff -Naur a/lldb-17.0.6.src/tools/lldb-vscode/lldb-vscode.cpp b/lldb-17.0.6.src/tools/lldb-vscode/lldb-vscode.cpp --- a/lldb-17.0.6.src/tools/lldb-vscode/lldb-vscode.cpp 2023-10-31 14:00:30.000000000 +0600 +++ b/lldb-17.0.6.src/tools/lldb-vscode/lldb-vscode.cpp 2023-11-21 22:10:02.270452291 +0600 @@ -3328,7 +3328,7 @@ // On Linux with the Yama security module enabled, a process can only attach // to its descendants by default. In the runInTerminal case the target // process is launched by the client so we need to allow tracing explicitly. -#if defined(__linux__) +#if defined(__linux__) && defined(PR_SET_PTRACER) if (debugger_pid != LLDB_INVALID_PROCESS_ID) (void)prctl(PR_SET_PTRACER, debugger_pid, 0, 0, 0); #endif