diff --git a/lldb/source/Host/posix/ProcessLauncherPosixFork.cpp b/lldb/source/Host/posix/ProcessLauncherPosixFork.cpp index 4a0437b634ee3..7b8b42a4b7fe0 100644 --- a/lldb/source/Host/posix/ProcessLauncherPosixFork.cpp +++ b/lldb/source/Host/posix/ProcessLauncherPosixFork.cpp @@ -192,7 +192,11 @@ struct ForkLaunchInfo { } // Start tracing this child that is about to exec. +#ifdef _AIX + if (ptrace64(PT_TRACE_ME, 0, 0, 0, nullptr) == -1) +#else if (ptrace(PT_TRACE_ME, 0, nullptr, 0) == -1) +#endif ExitWithError(error_fd, "ptrace"); }