diff options
author | Pavel Labath <labath@google.com> | 2018-05-15 13:42:26 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2018-05-15 13:42:26 +0000 |
commit | 245dd2e0c76648b8f875a2f45003ffd8614eb6d6 (patch) | |
tree | be88759a81c898b69e633104c714d6ded212540f /lldb/source/Host/common/MonitoringProcessLauncher.cpp | |
parent | 349506a926c78af36cdcac75d44ac7522f168d06 (diff) | |
download | bcm5719-llvm-245dd2e0c76648b8f875a2f45003ffd8614eb6d6.tar.gz bcm5719-llvm-245dd2e0c76648b8f875a2f45003ffd8614eb6d6.zip |
Reapply "Remove Process references from the Host module"
This re-lands r332250/D46395, after fixing Mac build errors.
llvm-svn: 332353
Diffstat (limited to 'lldb/source/Host/common/MonitoringProcessLauncher.cpp')
-rw-r--r-- | lldb/source/Host/common/MonitoringProcessLauncher.cpp | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/lldb/source/Host/common/MonitoringProcessLauncher.cpp b/lldb/source/Host/common/MonitoringProcessLauncher.cpp index efc10004b5f..76c11454f57 100644 --- a/lldb/source/Host/common/MonitoringProcessLauncher.cpp +++ b/lldb/source/Host/common/MonitoringProcessLauncher.cpp @@ -9,7 +9,6 @@ #include "lldb/Host/MonitoringProcessLauncher.h" #include "lldb/Host/HostProcess.h" -#include "lldb/Target/Process.h" #include "lldb/Target/ProcessLaunchInfo.h" #include "lldb/Utility/Log.h" #include "lldb/Utility/Status.h" @@ -58,18 +57,9 @@ MonitoringProcessLauncher::LaunchProcess(const ProcessLaunchInfo &launch_info, if (process.GetProcessId() != LLDB_INVALID_PROCESS_ID) { Log *log(lldb_private::GetLogIfAllCategoriesSet(LIBLLDB_LOG_PROCESS)); - Host::MonitorChildProcessCallback callback = - launch_info.GetMonitorProcessCallback(); - - bool monitor_signals = false; - if (callback) { - // If the ProcessLaunchInfo specified a callback, use that. - monitor_signals = launch_info.GetMonitorSignals(); - } else { - callback = Process::SetProcessExitStatus; - } - - process.StartMonitoring(callback, monitor_signals); + assert(launch_info.GetMonitorProcessCallback()); + process.StartMonitoring(launch_info.GetMonitorProcessCallback(), + launch_info.GetMonitorSignals()); if (log) log->PutCString("started monitoring child process."); } else { |