summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp
diff options
context:
space:
mode:
authorAndrew Kaylor <andrew.kaylor@intel.com>2013-07-09 22:36:48 +0000
committerAndrew Kaylor <andrew.kaylor@intel.com>2013-07-09 22:36:48 +0000
commit6578cb64788ea3c61476d7634515683faf5a91e5 (patch)
tree36ffaef67182033f4f1386139fca9b8fa842af7f /lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp
parent2c60538dddbe841303b01ac3fb8e9c53c0f1b082 (diff)
downloadbcm5719-llvm-6578cb64788ea3c61476d7634515683faf5a91e5.tar.gz
bcm5719-llvm-6578cb64788ea3c61476d7634515683faf5a91e5.zip
Reverting ProcessMonitor shared pointer changes
llvm-svn: 185981
Diffstat (limited to 'lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp')
-rw-r--r--lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp b/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp
index 005f55892a7..e09bfcaf418 100644
--- a/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp
+++ b/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp
@@ -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(),
OpenPOWER on IntegriCloud