summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/Utility/HistoryThread.cpp
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2013-11-12 00:09:58 +0000
committerJason Molenda <jmolenda@apple.com>2013-11-12 00:09:58 +0000
commitee87e7509015abebb2dbeb771d98124a200050e4 (patch)
treec3a1df3a427e85f1be76bc637446ade8665842ad /lldb/source/Plugins/Process/Utility/HistoryThread.cpp
parent04bf672537329ff0edd380fa62d4dfc9de0b33f2 (diff)
downloadbcm5719-llvm-ee87e7509015abebb2dbeb771d98124a200050e4.tar.gz
bcm5719-llvm-ee87e7509015abebb2dbeb771d98124a200050e4.zip
Add object logging to HistoryThread. Call the DoDestroy() method from
the HistoryThread dtor. llvm-svn: 194436
Diffstat (limited to 'lldb/source/Plugins/Process/Utility/HistoryThread.cpp')
-rw-r--r--lldb/source/Plugins/Process/Utility/HistoryThread.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Process/Utility/HistoryThread.cpp b/lldb/source/Plugins/Process/Utility/HistoryThread.cpp
index a4a65699f60..e612b6f3bf2 100644
--- a/lldb/source/Plugins/Process/Utility/HistoryThread.cpp
+++ b/lldb/source/Plugins/Process/Utility/HistoryThread.cpp
@@ -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_private::Process &process,
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
OpenPOWER on IntegriCloud