[Lldb-commits] [lldb] r194436 - Add object logging to HistoryThread. Call the DoDestroy() method from

Jason Molenda jmolenda at apple.com
Mon Nov 11 16:09:58 PST 2013


Author: jmolenda
Date: Mon Nov 11 18:09:58 2013
New Revision: 194436

URL: http://llvm.org/viewvc/llvm-project?rev=194436&view=rev
Log:
Add object logging to HistoryThread.  Call the DoDestroy() method from
the HistoryThread dtor.

Modified:
    lldb/trunk/source/Plugins/Process/Utility/HistoryThread.cpp

Modified: lldb/trunk/source/Plugins/Process/Utility/HistoryThread.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/Utility/HistoryThread.cpp?rev=194436&r1=194435&r2=194436&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/Utility/HistoryThread.cpp (original)
+++ lldb/trunk/source/Plugins/Process/Utility/HistoryThread.cpp Mon Nov 11 18:09:58 2013
@@ -13,6 +13,7 @@
 #include "Plugins/Process/Utility/HistoryThread.h"
 #include "Plugins/Process/Utility/RegisterContextHistory.h"
 
+#include "lldb/Core/Log.h"
 #include "lldb/Target/StackFrameList.h"
 #include "lldb/Target/Process.h"
 
@@ -31,10 +32,17 @@ HistoryThread::HistoryThread (lldb_priva
         m_stop_id_is_valid (stop_id_is_valid)
 {
     m_unwinder_ap.reset (new HistoryUnwind (*this, pcs, stop_id, stop_id_is_valid));
+    Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_OBJECT));
+    if (log)
+        log->Printf ("%p HistoryThread::HistoryThread", this);
 }
 
 HistoryThread::~HistoryThread ()
 {
+    Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_OBJECT));
+    if (log)
+        log->Printf ("%p HistoryThread::~HistoryThread (tid=0x%" PRIx64 ")", this, GetID());
+    DestroyThread();
 }
 
 lldb::RegisterContextSP





More information about the lldb-commits mailing list