From 696b52878ff0c704d66539181d0ddda0d1b30c87 Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Thu, 14 Aug 2014 16:01:25 +0000 Subject: Refactor FileAction out of ProcessLaunchInfo. FileAction was previously a nested class in ProcessLaunchInfo. This led to some unfortunate style consequences, such as requiring the AddPosixSpawnFileAction() funciton to be defined in the Target layer, instead of the more appropriate Host layer. This patch makes FileAction its own independent class in the Target layer, and then moves AddPosixSpawnFileAction() into Host as a result. Differential Revision: http://reviews.llvm.org/D4877 llvm-svn: 215649 --- lldb/source/Plugins/Process/Windows/ProcessWindows.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lldb/source/Plugins/Process/Windows/ProcessWindows.cpp') diff --git a/lldb/source/Plugins/Process/Windows/ProcessWindows.cpp b/lldb/source/Plugins/Process/Windows/ProcessWindows.cpp index d4210257035..de625e3c4ba 100644 --- a/lldb/source/Plugins/Process/Windows/ProcessWindows.cpp +++ b/lldb/source/Plugins/Process/Windows/ProcessWindows.cpp @@ -18,6 +18,7 @@ #include "lldb/Host/Host.h" #include "lldb/Symbol/ObjectFile.h" #include "lldb/Target/DynamicLoader.h" +#include "lldb/Target/FileAction.h" #include "lldb/Target/Target.h" #include "ProcessWindows.h" @@ -30,7 +31,7 @@ namespace HANDLE GetStdioHandle(ProcessLaunchInfo &launch_info, int fd) { - const ProcessLaunchInfo::FileAction *action = launch_info.GetFileActionForFD(fd); + const FileAction *action = launch_info.GetFileActionForFD(fd); if (action == nullptr) return NULL; SECURITY_ATTRIBUTES secattr = {0}; -- cgit v1.2.3