[Lldb-commits] [lldb] r216247 - Fixes a few more places where we were manually setting the filename.

Zachary Turner zturner at google.com
Thu Aug 21 16:56:55 PDT 2014


Author: zturner
Date: Thu Aug 21 18:56:55 2014
New Revision: 216247

URL: http://llvm.org/viewvc/llvm-project?rev=216247&view=rev
Log:
Fixes a few more places where we were manually setting the filename.

Modified:
    lldb/trunk/source/Expression/ClangExpressionParser.cpp
    lldb/trunk/source/Host/common/Host.cpp
    lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp

Modified: lldb/trunk/source/Expression/ClangExpressionParser.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/ClangExpressionParser.cpp?rev=216247&r1=216246&r2=216247&view=diff
==============================================================================
--- lldb/trunk/source/Expression/ClangExpressionParser.cpp (original)
+++ lldb/trunk/source/Expression/ClangExpressionParser.cpp Thu Aug 21 18:56:55 2014
@@ -312,7 +312,7 @@ ClangExpressionParser::Parse (Stream &st
         FileSpec tmpdir_file_spec;
         if (HostInfo::GetLLDBPath(lldb::ePathTypeLLDBTempSystemDir, tmpdir_file_spec))
         {
-            tmpdir_file_spec.GetFilename().SetCString("expr.XXXXXX");
+            tmpdir_file_spec.AppendPathComponent("expr.XXXXXX");
             temp_source_path = std::move(tmpdir_file_spec.GetPath());
         }
         else

Modified: lldb/trunk/source/Host/common/Host.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/common/Host.cpp?rev=216247&r1=216246&r2=216247&view=diff
==============================================================================
--- lldb/trunk/source/Host/common/Host.cpp (original)
+++ lldb/trunk/source/Host/common/Host.cpp Thu Aug 21 18:56:55 2014
@@ -921,7 +921,7 @@ Host::RunShellCommand (const char *comma
         FileSpec tmpdir_file_spec;
         if (HostInfo::GetLLDBPath(ePathTypeLLDBTempSystemDir, tmpdir_file_spec))
         {
-            tmpdir_file_spec.GetFilename().SetCString("lldb-shell-output.XXXXXX");
+            tmpdir_file_spec.AppendPathComponent("lldb-shell-output.XXXXXX");
             strncpy(output_file_path_buffer, tmpdir_file_spec.GetPath().c_str(), sizeof(output_file_path_buffer));
         }
         else

Modified: lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp?rev=216247&r1=216246&r2=216247&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp (original)
+++ lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp Thu Aug 21 18:56:55 2014
@@ -753,7 +753,7 @@ GDBRemoteCommunication::StartDebugserver
                 FileSpec tmpdir_file_spec;
                 if (HostInfo::GetLLDBPath(ePathTypeLLDBTempSystemDir, tmpdir_file_spec))
                 {
-                    tmpdir_file_spec.GetFilename().SetCString("debugserver-named-pipe.XXXXXX");
+                    tmpdir_file_spec.AppendPathComponent("debugserver-named-pipe.XXXXXX");
                     strncpy(named_pipe_path, tmpdir_file_spec.GetPath().c_str(), sizeof(named_pipe_path));
                 }
                 else





More information about the lldb-commits mailing list