diff options
Diffstat (limited to 'lldb/include/lldb/API/SBLaunchInfo.h')
-rw-r--r-- | lldb/include/lldb/API/SBLaunchInfo.h | 43 |
1 files changed, 40 insertions, 3 deletions
diff --git a/lldb/include/lldb/API/SBLaunchInfo.h b/lldb/include/lldb/API/SBLaunchInfo.h index c7b381ffdf97..04ebb5707688 100644 --- a/lldb/include/lldb/API/SBLaunchInfo.h +++ b/lldb/include/lldb/API/SBLaunchInfo.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBLaunchInfo_h_ -#define LLDB_SBLaunchInfo_h_ +#ifndef LLDB_API_SBLAUNCHINFO_H +#define LLDB_API_SBLAUNCHINFO_H #include "lldb/API/SBDefines.h" @@ -26,6 +26,10 @@ public: ~SBLaunchInfo(); + SBLaunchInfo(const SBLaunchInfo &rhs); + + SBLaunchInfo &operator=(const SBLaunchInfo &rhs); + lldb::pid_t GetProcessID(); uint32_t GetUserID(); @@ -90,8 +94,41 @@ public: const char *GetEnvironmentEntryAtIndex(uint32_t idx); + /// Update this object with the given environment variables. + /// + /// If append is false, the provided environment will replace the existing + /// environment. Otherwise, existing values will be updated of left untouched + /// accordingly. + /// + /// \param [in] envp + /// The new environment variables as a list of strings with the following + /// format + /// name=value + /// + /// \param [in] append + /// Flag that controls whether to replace the existing environment. void SetEnvironmentEntries(const char **envp, bool append); + /// Update this object with the given environment variables. + /// + /// If append is false, the provided environment will replace the existing + /// environment. Otherwise, existing values will be updated of left untouched + /// accordingly. + /// + /// \param [in] env + /// The new environment variables. + /// + /// \param [in] append + /// Flag that controls whether to replace the existing environment. + void SetEnvironment(const SBEnvironment &env, bool append); + + /// Return the environment variables of this object. + /// + /// \return + /// An lldb::SBEnvironment object which is a copy of the SBLaunchInfo's + /// environment. + SBEnvironment GetEnvironment(); + void Clear(); const char *GetWorkingDirectory() const; @@ -146,4 +183,4 @@ protected: } // namespace lldb -#endif // LLDB_SBLaunchInfo_h_ +#endif // LLDB_API_SBLAUNCHINFO_H |