[Lldb-commits] [lldb] 81b11c9 - Fix a macOS build break caused by 3dfb94986170.

Jim Ingham via lldb-commits lldb-commits at lists.llvm.org
Wed Oct 7 15:01:36 PDT 2020


Author: Jim Ingham
Date: 2020-10-07T15:01:27-07:00
New Revision: 81b11c91070f3a969b64b2c2e6011b02450fa75f

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

LOG: Fix a macOS build break caused by 3dfb94986170.

Added: 
    

Modified: 
    lldb/source/Plugins/Platform/MacOSX/objcxx/PlatformiOSSimulatorCoreSimulatorSupport.mm

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/Platform/MacOSX/objcxx/PlatformiOSSimulatorCoreSimulatorSupport.mm b/lldb/source/Plugins/Platform/MacOSX/objcxx/PlatformiOSSimulatorCoreSimulatorSupport.mm
index cfd44f9ae5ce..92bf716599b0 100644
--- a/lldb/source/Plugins/Platform/MacOSX/objcxx/PlatformiOSSimulatorCoreSimulatorSupport.mm
+++ b/lldb/source/Plugins/Platform/MacOSX/objcxx/PlatformiOSSimulatorCoreSimulatorSupport.mm
@@ -415,8 +415,9 @@ static Status HandleFileAction(ProcessLaunchInfo &launch_info,
               secondary_fd =
                   launch_info.GetPTY().OpenSecondary(O_RDWR, nullptr, 0);
             if (secondary_fd == PseudoTerminal::invalid_fd) {
+              std::string secondary_path = secondary_spec.GetPath();
               error.SetErrorStringWithFormat(
-                  "unable to open secondary pty '%s'", secondary_path);
+                  "unable to open secondary pty '%s'", secondary_path.c_str());
               return error; // Failure
             }
             [options setValue:[NSNumber numberWithInteger:secondary_fd]


        


More information about the lldb-commits mailing list