[Lldb-commits] [lldb] r282309 - Fix build on Ubuntu.

Zachary Turner via lldb-commits lldb-commits at lists.llvm.org
Fri Sep 23 15:27:04 PDT 2016


Author: zturner
Date: Fri Sep 23 17:27:03 2016
New Revision: 282309

URL: http://llvm.org/viewvc/llvm-project?rev=282309&view=rev
Log:
Fix build on Ubuntu.

This was in some code that was #ifdef'd out on Windows, so I
didn't see it.

Modified:
    lldb/trunk/source/Host/common/Host.cpp

Modified: lldb/trunk/source/Host/common/Host.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/common/Host.cpp?rev=282309&r1=282308&r2=282309&view=diff
==============================================================================
--- lldb/trunk/source/Host/common/Host.cpp (original)
+++ lldb/trunk/source/Host/common/Host.cpp Fri Sep 23 17:27:03 2016
@@ -942,15 +942,15 @@ bool Host::AddPosixSpawnFileAction(void
       if (oflag & O_CREAT)
         mode = 0640;
 
-      error.SetError(
-          ::posix_spawn_file_actions_addopen(file_actions, info->GetFD(),
-                                             info->GetPath(), oflag, mode),
-          eErrorTypePOSIX);
+      error.SetError(::posix_spawn_file_actions_addopen(
+                         file_actions, info->GetFD(),
+                         info->GetPath().str().c_str(), oflag, mode),
+                     eErrorTypePOSIX);
       if (error.Fail() || log)
         error.PutToLog(log, "posix_spawn_file_actions_addopen (action=%p, "
                             "fd=%i, path='%s', oflag=%i, mode=%i)",
                        static_cast<void *>(file_actions), info->GetFD(),
-                       info->GetPath(), oflag, mode);
+                       info->GetPath().str().c_str(), oflag, mode);
     }
     break;
   }




More information about the lldb-commits mailing list