summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2014-08-15 22:04:21 +0000
committerZachary Turner <zturner@google.com>2014-08-15 22:04:21 +0000
commitc00cf4a0688ea62229a5d44d5f000bc62c172263 (patch)
tree3c9aad742b18c8fe789c3f96b2291d4a3cdfb92f /lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
parent5d62c26fa01c0ff7915fe8f8bb779ce2a8a2d8a7 (diff)
downloadbcm5719-llvm-c00cf4a0688ea62229a5d44d5f000bc62c172263.tar.gz
bcm5719-llvm-c00cf4a0688ea62229a5d44d5f000bc62c172263.zip
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
Diffstat (limited to 'lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp')
-rw-r--r--lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
index 5824ebd1684..6a7e6b89289 100644
--- a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
+++ b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
@@ -126,14 +126,14 @@ namespace
}
const char *
- GetFilePath (const lldb_private::FileAction *file_action, const char *default_path)
+ GetFilePath(const lldb_private::FileAction *file_action, const char *default_path)
{
const char *pts_name = "/dev/pts/";
const char *path = NULL;
if (file_action)
{
- if (file_action->GetAction () == FileAction::eFileActionOpen)
+ if (file_action->GetAction() == FileAction::eFileActionOpen)
{
path = file_action->GetPath ();
// By default the stdio paths passed in will be pseudo-terminal
OpenPOWER on IntegriCloud