From 773d981ce2d41b12742a33cd603b4491afd845ef Mon Sep 17 00:00:00 2001 From: Jim Ingham Date: Thu, 18 Nov 2010 02:47:07 +0000 Subject: 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 --- lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp') 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(); } -- cgit v1.1