summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
diff options
context:
space:
mode:
authorOleksiy Vyalov <ovyalov@google.com>2015-02-19 17:58:04 +0000
committerOleksiy Vyalov <ovyalov@google.com>2015-02-19 17:58:04 +0000
commit8bc34f4d96a4b6cf736dad96bc83156b3014bb53 (patch)
treea2118ed2b376f676818ab883fbc68ff115d8282f /lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
parentf08a3ccf50791e4f3d05341754633ed7fc6371aa (diff)
Prevent LLGS from crashing when exiting - make NativeProcessLinux to wait until ThreadStateCoordinator is fully stopped before entering ~NativeProcessLinux.
http://reviews.llvm.org/D7692 llvm-svn: 229875
Diffstat (limited to 'lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp')
-rw-r--r--lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
index a72b6a24063a..068c40296858 100644
--- a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
+++ b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
@@ -1453,7 +1453,8 @@ WAIT_AGAIN:
}
}
-NativeProcessLinux::~NativeProcessLinux()
+void
+NativeProcessLinux::Terminate ()
{
StopMonitor();
}
@@ -3637,6 +3638,7 @@ NativeProcessLinux::StopCoordinatorThread()
// Tell the coordinator we're done. This will cause the coordinator
// run loop thread to exit when the processing queue hits this message.
m_coordinator_up->StopCoordinator ();
+ m_coordinator_thread.Join (nullptr);
}
bool