From ee607ed5c36efd8e0536ddbeab1f2025b0e5f045 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Sat, 5 Dec 2020 17:35:32 -0800 Subject: [PATCH] [debugserver] Call posix_spawnattr_setarchpref_np throught the fn ptr. Fourth time is the charm? Of course all of these issues don't show up when the function is available... --- lldb/tools/debugserver/source/MacOSX/MachProcess.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lldb/tools/debugserver/source/MacOSX/MachProcess.mm b/lldb/tools/debugserver/source/MacOSX/MachProcess.mm index 386c5e4..7176a47 100644 --- a/lldb/tools/debugserver/source/MacOSX/MachProcess.mm +++ b/lldb/tools/debugserver/source/MacOSX/MachProcess.mm @@ -3279,8 +3279,8 @@ pid_t MachProcess::PosixSpawnChildForPTraceDebugging( (posix_spawnattr_setarchpref_np_t)dlsym( RTLD_DEFAULT, "posix_spawnattr_setarchpref_np"); if (posix_spawnattr_setarchpref_np_fn) { - err.SetError((*posix_spawnattr_setarchpref_np)(&attr, 1, &cpu_type, - &cpu_subtype, &ocount)); + err.SetError((*posix_spawnattr_setarchpref_np_fn)( + &attr, 1, &cpu_type, &cpu_subtype, &ocount)); slice_preference_set = err.Success(); if (err.Fail() || DNBLogCheckLogBit(LOG_PROCESS)) err.LogThreaded( -- 2.7.4