From c00cf4a0688ea62229a5d44d5f000bc62c172263 Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Fri, 15 Aug 2014 22:04:21 +0000 Subject: Move FileSystem functions out of Host and into their own classes. More specifically, this change can be summarized as follows: 1) Makes an lldbHostPosix library which contains code common to all posix platforms. 2) Creates Host/FileSystem.h which defines a common FileSystem interface. 3) Implements FileSystem.h in Host/windows and Host/posix. 4) Creates Host/FileCache.h, implemented in Host/common, which defines a class useful for storing handles to open files needed by the debugger. Differential Revision: http://reviews.llvm.org/D4889 llvm-svn: 215775 --- lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp') diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp index 30bd762..bd378ce 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp @@ -22,6 +22,7 @@ #include "lldb/Core/StreamFile.h" #include "lldb/Core/StreamString.h" #include "lldb/Host/FileSpec.h" +#include "lldb/Host/FileSystem.h" #include "lldb/Host/Host.h" #include "lldb/Host/Socket.h" #include "lldb/Host/TimeValue.h" @@ -843,7 +844,7 @@ GDBRemoteCommunication::StartDebugserverProcess (const char *hostname, out_port = Args::StringToUInt32(port_cstr, 0); name_pipe_file.Close(); } - Host::Unlink(named_pipe_path); + FileSystem::Unlink(named_pipe_path); } else if (listen) { -- cgit v1.1