diff options
author | Jason Molenda <jmolenda@apple.com> | 2014-03-06 06:31:18 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 2014-03-06 06:31:18 +0000 |
commit | a8ff543c280f9f2eee2fac4c5cdacd97b21ea1a1 (patch) | |
tree | fcc91283836c03a11857d4c0903f398c12451301 /lldb/source/Plugins/Process/Utility/HistoryThread.cpp | |
parent | 568a833f68def7b1dddd4de06c0dd2a7510a0723 (diff) | |
download | bcm5719-llvm-a8ff543c280f9f2eee2fac4c5cdacd97b21ea1a1.tar.gz bcm5719-llvm-a8ff543c280f9f2eee2fac4c5cdacd97b21ea1a1.zip |
When a client asks for a queue pending item's extended backtrace,
hold a strong pointer to that extended backtrace thread in the Process
just like we do for asking a thread's extended backtrace.
Also, give extended backtrace threads an invalid ThreadIndexID number.
We'll still give them valid thread_id's. Clients who want to know the
original thread's IndexID can call GetExtendedBacktraceOriginatingIndexID().
<rdar://problem/16126034>
llvm-svn: 203088
Diffstat (limited to 'lldb/source/Plugins/Process/Utility/HistoryThread.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/Utility/HistoryThread.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/Utility/HistoryThread.cpp b/lldb/source/Plugins/Process/Utility/HistoryThread.cpp index d045bc7e10d..6b8c7dfd5d3 100644 --- a/lldb/source/Plugins/Process/Utility/HistoryThread.cpp +++ b/lldb/source/Plugins/Process/Utility/HistoryThread.cpp @@ -20,12 +20,14 @@ using namespace lldb; using namespace lldb_private; +// Constructor + HistoryThread::HistoryThread (lldb_private::Process &process, lldb::tid_t tid, std::vector<lldb::addr_t> pcs, uint32_t stop_id, bool stop_id_is_valid) : - Thread (process, tid), + Thread (process, tid, true), m_framelist_mutex(), m_framelist(), m_pcs (pcs), @@ -43,6 +45,8 @@ HistoryThread::HistoryThread (lldb_private::Process &process, log->Printf ("%p HistoryThread::HistoryThread", this); } +// Destructor + HistoryThread::~HistoryThread () { Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_OBJECT)); |