Skip to content

Commit 912d449

Browse files
Optimized
1 parent 6361863 commit 912d449

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lldb/source/Host/posix/ProcessLauncherPosixFork.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,13 +192,12 @@ struct ForkLaunchInfo {
192192
}
193193

194194
// Start tracing this child that is about to exec.
195-
#if !defined(_AIX)
196-
if (ptrace(PT_TRACE_ME, 0, nullptr, 0) == -1)
197-
ExitWithError(error_fd, "ptrace");
198-
#else
195+
#ifdef _AIX
199196
if (ptrace64(PT_TRACE_ME, 0, 0, 0, nullptr) == -1)
200-
ExitWithError(error_fd, "ptrace");
197+
#else
198+
if (ptrace(PT_TRACE_ME, 0, nullptr, 0) == -1)
201199
#endif
200+
ExitWithError(error_fd, "ptrace");
202201
}
203202

204203
// Execute. We should never return...

0 commit comments

Comments
 (0)