diff options
author | Pavel Labath <labath@google.com> | 2018-01-10 13:53:40 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2018-01-10 13:53:40 +0000 |
commit | 75c6de0be204408855fcac97ecbbfeddecdac8c9 (patch) | |
tree | 76a0b1a3bed193d3c0560c06c0a38b03b84396ce /lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.h | |
parent | 0643ea9ae0c1865c37812b9527a2e27e381b44a9 (diff) | |
download | bcm5719-llvm-75c6de0be204408855fcac97ecbbfeddecdac8c9.tar.gz bcm5719-llvm-75c6de0be204408855fcac97ecbbfeddecdac8c9.zip |
Another attempt to fix FreeBsd build
the previous fix did not work because of different const qualifications
on the envp pointer.
This should resolve that (and remove a couple of const_casts in the
process).
llvm-svn: 322187
Diffstat (limited to 'lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.h')
-rw-r--r-- | lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.h b/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.h index 0963453a31b..c1c68f77644 100644 --- a/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.h +++ b/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.h @@ -48,7 +48,7 @@ public: /// Launches an inferior process ready for debugging. Forms the /// implementation of Process::DoLaunch. ProcessMonitor(ProcessFreeBSD *process, lldb_private::Module *module, - char const *argv[], char const *envp[], + char const *argv[], lldb_private::Environment env, const lldb_private::FileSpec &stdin_file_spec, const lldb_private::FileSpec &stdout_file_spec, const lldb_private::FileSpec &stderr_file_spec, @@ -219,7 +219,7 @@ private: /// launching a child process. struct LaunchArgs : OperationArgs { LaunchArgs(ProcessMonitor *monitor, lldb_private::Module *module, - char const **argv, char const **envp, + char const **argv, lldb_private::Environment env, const lldb_private::FileSpec &stdin_file_spec, const lldb_private::FileSpec &stdout_file_spec, const lldb_private::FileSpec &stderr_file_spec, @@ -229,7 +229,7 @@ private: lldb_private::Module *m_module; // The executable image to launch. char const **m_argv; // Process arguments. - char const **m_envp; // Process environment. + lldb_private::Environment m_env; // Process environment. const lldb_private::FileSpec m_stdin_file_spec; // Redirect stdin or empty. const lldb_private::FileSpec m_stdout_file_spec; // Redirect stdout or empty. |