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.
<rdar://problem/15496603> 

llvm-svn: 195104
diff --git a/lldb/source/Plugins/SystemRuntime/MacOSX/SystemRuntimeMacOSX.h b/lldb/source/Plugins/SystemRuntime/MacOSX/SystemRuntimeMacOSX.h
index 24029d7..c472bee 100644
--- a/lldb/source/Plugins/SystemRuntime/MacOSX/SystemRuntimeMacOSX.h
+++ b/lldb/source/Plugins/SystemRuntime/MacOSX/SystemRuntimeMacOSX.h
@@ -126,7 +126,7 @@
     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 @@
     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 @@
         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 {