diff options
| author | Ed Maste <emaste@FreeBSD.org> | 2015-07-03 16:57:06 +0000 | 
|---|---|---|
| committer | Ed Maste <emaste@FreeBSD.org> | 2015-07-03 16:57:06 +0000 | 
| commit | 5e95aa85bb660d45e9905ef1d7180b2678280660 (patch) | |
| tree | 3c2e41c3be19b7fc7666ed45a5f91ec3b6e35f2a /source/API/SBLaunchInfo.cpp | |
| parent | 12bd4897ff0678fa663e09d78ebc22dd255ceb86 (diff) | |
Notes
Diffstat (limited to 'source/API/SBLaunchInfo.cpp')
| -rw-r--r-- | source/API/SBLaunchInfo.cpp | 26 | 
1 files changed, 21 insertions, 5 deletions
diff --git a/source/API/SBLaunchInfo.cpp b/source/API/SBLaunchInfo.cpp index dcb0e1b488ba4..54bed8799b8bf 100644 --- a/source/API/SBLaunchInfo.cpp +++ b/source/API/SBLaunchInfo.cpp @@ -7,8 +7,6 @@  //  //===----------------------------------------------------------------------===// -#include "lldb/lldb-python.h" -  #include "lldb/API/SBLaunchInfo.h"  #include "lldb/API/SBFileSpec.h" @@ -36,6 +34,12 @@ SBLaunchInfo::ref ()      return *m_opaque_sp;  } +const lldb_private::ProcessLaunchInfo & +SBLaunchInfo::ref () const +{ +    return *m_opaque_sp; +} +  lldb::pid_t  SBLaunchInfo::GetProcessID()  { @@ -169,13 +173,13 @@ SBLaunchInfo::Clear ()  const char *  SBLaunchInfo::GetWorkingDirectory () const  { -    return m_opaque_sp->GetWorkingDirectory(); +    return m_opaque_sp->GetWorkingDirectory().GetCString();  }  void  SBLaunchInfo::SetWorkingDirectory (const char *working_dir)  { -    m_opaque_sp->SetWorkingDirectory(working_dir); +    m_opaque_sp->SetWorkingDirectory(FileSpec{working_dir, false});  }  uint32_t @@ -217,6 +221,18 @@ SBLaunchInfo::SetShell (const char * path)      m_opaque_sp->SetShell (FileSpec(path, false));  } +bool +SBLaunchInfo::GetShellExpandArguments () +{ +    return m_opaque_sp->GetShellExpandArguments(); +} + +void +SBLaunchInfo::SetShellExpandArguments (bool expand) +{ +    m_opaque_sp->SetShellExpandArguments(expand); +} +  uint32_t  SBLaunchInfo::GetResumeCount ()  { @@ -244,7 +260,7 @@ SBLaunchInfo::AddDuplicateFileAction (int fd, int dup_fd)  bool  SBLaunchInfo::AddOpenFileAction (int fd, const char *path, bool read, bool write)  { -    return m_opaque_sp->AppendOpenFileAction(fd, path, read, write); +    return m_opaque_sp->AppendOpenFileAction(fd, FileSpec{path, false}, read, write);  }  bool  | 
