From a6e9130d5243beccb72b68eee7c62b439dd5f32f Mon Sep 17 00:00:00 2001 From: Jason Molenda Date: Tue, 19 Nov 2013 05:44:41 +0000 Subject: Add logging for the SB API which creates extended threads. Take a stab at fixing the too-soon freeing of the extended backtrace thread list in Process. llvm-svn: 195104 --- lldb/source/Plugins/SystemRuntime/MacOSX/SystemRuntimeMacOSX.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lldb/source/Plugins/SystemRuntime/MacOSX/SystemRuntimeMacOSX.h') diff --git a/lldb/source/Plugins/SystemRuntime/MacOSX/SystemRuntimeMacOSX.h b/lldb/source/Plugins/SystemRuntime/MacOSX/SystemRuntimeMacOSX.h index 24029d78996..c472bee8572 100644 --- a/lldb/source/Plugins/SystemRuntime/MacOSX/SystemRuntimeMacOSX.h +++ b/lldb/source/Plugins/SystemRuntime/MacOSX/SystemRuntimeMacOSX.h @@ -126,7 +126,7 @@ private: GetThreadCreatorItem (lldb::ThreadSP thread); lldb::tid_t - GetNewThreadUniquethreadID (lldb::ThreadSP original_thread_sp); + GetNewThreadUniqueThreadID (lldb::ThreadSP original_thread_sp); void SetNewThreadThreadName (lldb::ThreadSP original_thread_sp, lldb::ThreadSP new_extended_thread_sp); @@ -137,6 +137,9 @@ private: void SetNewThreadExtendedBacktraceToken (lldb::ThreadSP original_thread_sp, lldb::ThreadSP new_extended_thread_sp); + void + SetNewThreadQueueID (lldb::ThreadSP original_thread_sp, lldb::ThreadSP new_extended_thread_sp); + struct ldi_queue_offsets { uint16_t next; uint16_t prev; @@ -158,6 +161,7 @@ private: uint16_t pthread_id; uint16_t enqueueing_thread_dispatch_queue_t; uint16_t enqueueing_thread_dispatch_block_ptr; + uint16_t queue_id_from_thread_info; }; struct ldi_header { -- cgit v1.2.3