Adjust the calls to __introspection_dispatch_thread_get_item_info to
use a system-wide unique thread ID instead of a pthread_t to identify
the thread we want debug info for.  Also, free some more memory regions
that needed to be freed.

llvm-svn: 201117
diff --git a/lldb/source/Plugins/SystemRuntime/MacOSX/AppleGetThreadItemInfoHandler.h b/lldb/source/Plugins/SystemRuntime/MacOSX/AppleGetThreadItemInfoHandler.h
index a7fb9c7..1733f21 100644
--- a/lldb/source/Plugins/SystemRuntime/MacOSX/AppleGetThreadItemInfoHandler.h
+++ b/lldb/source/Plugins/SystemRuntime/MacOSX/AppleGetThreadItemInfoHandler.h
@@ -67,8 +67,8 @@
     /// memory that needs to be freed, pass in the address and size and it will
     /// be freed before getting the list of queues.
     ///
-    /// @param [in] thread
-    ///     The thread to run this plan on.
+    /// @param [in] thread_id
+    ///     The thread to get the extended backtrace for.
     ///
     /// @param [in] page_to_free
     ///     An address of an inferior process vm page that needs to be deallocated,
@@ -86,7 +86,7 @@
     ///     the information, the item_buffer_ptr value will be LLDB_INVALID_ADDRESS.
     //----------------------------------------------------------
     GetThreadItemInfoReturnInfo
-    GetThreadItemInfo (Thread &thread, lldb::addr_t page_to_free, uint64_t page_to_free_size, lldb_private::Error &error);
+    GetThreadItemInfo (Thread &thread, lldb::tid_t thread_id, lldb::addr_t page_to_free, uint64_t page_to_free_size, lldb_private::Error &error);
 
 
     void