[llvm-branch-commits] [lldb] ee607ed - [debugserver] Call posix_spawnattr_setarchpref_np throught the fn ptr.

Jonas Devlieghere via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sat Dec 5 17:43:46 PST 2020


Author: Jonas Devlieghere
Date: 2020-12-05T17:38:42-08:00
New Revision: ee607ed5c36efd8e0536ddbeab1f2025b0e5f045

URL: https://github.com/llvm/llvm-project/commit/ee607ed5c36efd8e0536ddbeab1f2025b0e5f045
DIFF: https://github.com/llvm/llvm-project/commit/ee607ed5c36efd8e0536ddbeab1f2025b0e5f045.diff

LOG: [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...

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/lldb/tools/debugserver/source/MacOSX/MachProcess.mm b/lldb/tools/debugserver/source/MacOSX/MachProcess.mm
index 386c5e42306a..7176a47972bf 100644
--- a/lldb/tools/debugserver/source/MacOSX/MachProcess.mm
+++ b/lldb/tools/debugserver/source/MacOSX/MachProcess.mm
@@ -3279,8 +3279,8 @@ typedef int (*posix_spawnattr_setarchpref_np_t)(
           (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(


        


More information about the llvm-branch-commits mailing list