Skip to content

Commit 8660205

Browse files
committed
[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... (cherry picked from commit ee607ed)
1 parent 92706bb commit 8660205

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lldb/tools/debugserver/source/MacOSX/MachProcess.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3267,8 +3267,8 @@ typedef int (*posix_spawnattr_setarchpref_np_t)(
32673267
(posix_spawnattr_setarchpref_np_t)dlsym(
32683268
RTLD_DEFAULT, "posix_spawnattr_setarchpref_np");
32693269
if (posix_spawnattr_setarchpref_np_fn) {
3270-
err.SetError((*posix_spawnattr_setarchpref_np)(&attr, 1, &cpu_type,
3271-
&cpu_subtype, &ocount));
3270+
err.SetError((*posix_spawnattr_setarchpref_np_fn)(
3271+
&attr, 1, &cpu_type, &cpu_subtype, &ocount));
32723272
slice_preference_set = err.Success();
32733273
if (err.Fail() || DNBLogCheckLogBit(LOG_PROCESS))
32743274
err.LogThreaded(

0 commit comments

Comments
 (0)