Reverting ProcessMonitor shared pointer changes

llvm-svn: 185981
This commit is contained in:
Andrew Kaylor
2013-07-09 22:36:48 +00:00
parent 2c60538ddd
commit 6578cb6478
6 changed files with 18 additions and 22 deletions

View File

@@ -115,8 +115,7 @@ ProcessPOSIX::DoAttachToProcessWithID(lldb::pid_t pid)
if (log && log->GetMask().Test(POSIX_LOG_VERBOSE))
log->Printf ("ProcessPOSIX::%s(pid = %" PRIi64 ")", __FUNCTION__, GetID());
ProcessPOSIXSP process_sp(static_pointer_cast<ProcessPOSIX>(CalculateProcess()));
m_monitor = new ProcessMonitor(process_sp, pid, error);
m_monitor = new ProcessMonitor(this, pid, error);
if (!error.Success())
return error;
@@ -226,8 +225,7 @@ ProcessPOSIX::DoLaunch (Module *module,
file_action = launch_info.GetFileActionForFD (STDERR_FILENO);
stderr_path = GetFilePath(file_action, stderr_path);
ProcessPOSIXSP process_sp(static_pointer_cast<ProcessPOSIX>(CalculateProcess()));
m_monitor = new ProcessMonitor (process_sp,
m_monitor = new ProcessMonitor (this,
module,
launch_info.GetArguments().GetConstArgumentVector(),
launch_info.GetEnvironmentEntries().GetConstArgumentVector(),