[Lldb-commits] [lldb] r186039 - Stop process monitor from ProcessPOSIX::Finalize
Andrew Kaylor
andrew.kaylor at intel.com
Wed Jul 10 14:57:27 PDT 2013
Author: akaylor
Date: Wed Jul 10 16:57:27 2013
New Revision: 186039
URL: http://llvm.org/viewvc/llvm-project?rev=186039&view=rev
Log:
Stop process monitor from ProcessPOSIX::Finalize
Modified:
lldb/trunk/source/Plugins/Process/FreeBSD/ProcessMonitor.h
lldb/trunk/source/Plugins/Process/Linux/ProcessMonitor.h
lldb/trunk/source/Plugins/Process/POSIX/ProcessPOSIX.cpp
lldb/trunk/source/Plugins/Process/POSIX/ProcessPOSIX.h
Modified: lldb/trunk/source/Plugins/Process/FreeBSD/ProcessMonitor.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/FreeBSD/ProcessMonitor.h?rev=186039&r1=186038&r2=186039&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/FreeBSD/ProcessMonitor.h (original)
+++ lldb/trunk/source/Plugins/Process/FreeBSD/ProcessMonitor.h Wed Jul 10 16:57:27 2013
@@ -190,6 +190,8 @@ public:
lldb_private::Error
Detach(lldb::tid_t tid);
+ void
+ StopMonitor();
private:
ProcessFreeBSD *m_process;
@@ -309,9 +311,6 @@ private:
void
StopMonitoringChildProcess();
- void
- StopMonitor();
-
/// Stops the operation thread used to attach/launch a process.
void
StopOpThread();
Modified: lldb/trunk/source/Plugins/Process/Linux/ProcessMonitor.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/Linux/ProcessMonitor.h?rev=186039&r1=186038&r2=186039&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/Linux/ProcessMonitor.h (original)
+++ lldb/trunk/source/Plugins/Process/Linux/ProcessMonitor.h Wed Jul 10 16:57:27 2013
@@ -177,6 +177,10 @@ public:
lldb_private::Error
Detach(lldb::tid_t tid);
+ /// Stops the monitoring the child process thread.
+ void
+ StopMonitor();
+
/// Stops the requested thread and waits for the stop signal.
bool
StopThread(lldb::tid_t tid);
@@ -302,9 +306,6 @@ private:
void
StopMonitoringChildProcess();
- void
- StopMonitor();
-
/// Stops the operation thread used to attach/launch a process.
void
StopOpThread();
Modified: lldb/trunk/source/Plugins/Process/POSIX/ProcessPOSIX.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/POSIX/ProcessPOSIX.cpp?rev=186039&r1=186038&r2=186039&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/POSIX/ProcessPOSIX.cpp (original)
+++ lldb/trunk/source/Plugins/Process/POSIX/ProcessPOSIX.cpp Wed Jul 10 16:57:27 2013
@@ -93,6 +93,14 @@ ProcessPOSIX::~ProcessPOSIX()
//------------------------------------------------------------------------------
// Process protocol.
+void
+ProcessPOSIX::Finalize()
+{
+ Process::Finalize();
+
+ if (m_monitor)
+ m_monitor->StopMonitor();
+}
bool
ProcessPOSIX::CanDebug(Target &target, bool plugin_specified_by_name)
Modified: lldb/trunk/source/Plugins/Process/POSIX/ProcessPOSIX.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/POSIX/ProcessPOSIX.h?rev=186039&r1=186038&r2=186039&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/POSIX/ProcessPOSIX.h (original)
+++ lldb/trunk/source/Plugins/Process/POSIX/ProcessPOSIX.h Wed Jul 10 16:57:27 2013
@@ -40,6 +40,9 @@ public:
//------------------------------------------------------------------
// Process protocol.
//------------------------------------------------------------------
+ virtual void
+ Finalize();
+
virtual bool
CanDebug(lldb_private::Target &target, bool plugin_specified_by_name);
More information about the lldb-commits
mailing list