aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp
diff options
context:
space:
mode:
authorJim Ingham <jingham@apple.com>2010-11-18 02:47:07 +0000
committerJim Ingham <jingham@apple.com>2010-11-18 02:47:07 +0000
commit773d981ce2d41b12742a33cd603b4491afd845ef (patch)
tree33275d8f4bba06e8399a8260d87d5426d52d709b /lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp
parent8930615e780ff5dbba952ced757c0720a8042f2f (diff)
downloadllvm-773d981ce2d41b12742a33cd603b4491afd845ef.zip
llvm-773d981ce2d41b12742a33cd603b4491afd845ef.tar.gz
llvm-773d981ce2d41b12742a33cd603b4491afd845ef.tar.bz2
The thread plan destructors may call Thread virtual methods. That means they have to get cleaned up in the derived class's destructor. Make sure that happens.
llvm-svn: 119675
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp
index 6ee1406..c1b5fa4 100644
--- a/lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp
@@ -48,6 +48,7 @@ ThreadGDBRemote::ThreadGDBRemote (ProcessGDBRemote &process, lldb::tid_t tid) :
ThreadGDBRemote::~ThreadGDBRemote ()
{
ProcessGDBRemoteLog::LogIf(GDBR_LOG_THREAD, "%p: ThreadGDBRemote::~ThreadGDBRemote (pid = %i, tid = 0x%4.4x)", this, m_process.GetID(), GetID());
+ DestroyThread();
}