LLDB  mainline
SystemRuntimeMacOSX.h
Go to the documentation of this file.
1 //===-- SystemRuntimeMacOSX.h -----------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLDB_SOURCE_PLUGINS_SYSTEMRUNTIME_MACOSX_SYSTEMRUNTIMEMACOSX_H
10 #define LLDB_SOURCE_PLUGINS_SYSTEMRUNTIME_MACOSX_SYSTEMRUNTIMEMACOSX_H
11 
12 #include <mutex>
13 #include <string>
14 #include <vector>
15 
16 // Other libraries and framework include
17 #include "lldb/Core/ModuleList.h"
18 #include "lldb/Target/Process.h"
19 #include "lldb/Target/QueueItem.h"
22 #include "lldb/Utility/FileSpec.h"
24 #include "lldb/Utility/UUID.h"
25 
28 #include "AppleGetQueuesHandler.h"
30 
32 public:
34 
35  ~SystemRuntimeMacOSX() override;
36 
37  // Static Functions
38  static void Initialize();
39 
40  static void Terminate();
41 
42  static llvm::StringRef GetPluginNameStatic() {
43  return "systemruntime-macosx";
44  }
45 
48 
49  // instance methods
50 
51  void Clear(bool clear_process);
52 
53  void Detach() override;
54 
55  const std::vector<lldb_private::ConstString> &
56  GetExtendedBacktraceTypes() override;
57 
58  lldb::ThreadSP
59  GetExtendedBacktraceThread(lldb::ThreadSP thread,
60  lldb_private::ConstString type) override;
61 
62  lldb::ThreadSP
63  GetExtendedBacktraceForQueueItem(lldb::QueueItemSP queue_item_sp,
64  lldb_private::ConstString type) override;
65 
66  lldb::ThreadSP GetExtendedBacktraceFromItemRef(lldb::addr_t item_ref);
67 
68  void PopulateQueueList(lldb_private::QueueList &queue_list) override;
69 
70  void PopulateQueuesUsingLibBTR(lldb::addr_t queues_buffer,
71  uint64_t queues_buffer_size, uint64_t count,
72  lldb_private::QueueList &queue_list);
73 
75  uint64_t items_buffer_size,
76  uint64_t count,
77  lldb_private::Queue *queue);
78 
80  GetQueueNameFromThreadQAddress(lldb::addr_t dispatch_qaddr) override;
81 
83  GetQueueIDFromThreadQAddress(lldb::addr_t dispatch_qaddr) override;
84 
86  lldb::addr_t dispatch_qaddr) override;
87 
89 
91  lldb::addr_t item_ref) override;
92 
93  lldb::QueueKind GetQueueKind(lldb::addr_t dispatch_queue_addr) override;
94 
97 
98  bool SafeToCallFunctionsOnThisThread(lldb::ThreadSP thread_sp) override;
99 
100  // PluginInterface protocol
101  llvm::StringRef GetPluginName() override { return GetPluginNameStatic(); }
102 
103 protected:
105  mutable std::recursive_mutex m_mutex;
106 
107 private:
113 
114  libBacktraceRecording_info() = default;
115  };
116 
117  // A structure which reflects the data recorded in the
118  // libBacktraceRecording introspection_dispatch_item_info_s.
119  struct ItemInfo {
127  std::vector<lldb::addr_t> enqueuing_callstack;
131  };
132 
133  // The offsets of different fields of the dispatch_queue_t structure in
134  // a thread/queue process.
135  // Based on libdispatch src/queue_private.h, struct dispatch_queue_offsets_s
136  // With dqo_version 1-3, the dqo_label field is a per-queue value and cannot
137  // be cached.
138  // With dqo_version 4 (Mac OS X 10.9 / iOS 7), dqo_label is a constant value
139  // that can be cached.
152 
153  uint16_t dqo_suspend_cnt; // version 5 and later, starting with Mac OS X
154  // 10.10/iOS 8
155  uint16_t dqo_suspend_cnt_size; // version 5 and later, starting with Mac OS
156  // X 10.10/iOS 8
157  uint16_t dqo_target_queue; // version 5 and later, starting with Mac OS X
158  // 10.10/iOS 8
159  uint16_t dqo_target_queue_size; // version 5 and later, starting with Mac OS
160  // X 10.10/iOS 8
161  uint16_t
162  dqo_priority; // version 5 and later, starting with Mac OS X 10.10/iOS 8
163  uint16_t dqo_priority_size; // version 5 and later, starting with Mac OS X
164  // 10.10/iOS 8
165 
167  dqo_version = UINT16_MAX;
168  dqo_flags = UINT16_MAX;
169  dqo_serialnum = UINT16_MAX;
170  dqo_label = UINT16_MAX;
171  dqo_width = UINT16_MAX;
172  dqo_running = UINT16_MAX;
173  dqo_suspend_cnt = UINT16_MAX;
174  dqo_target_queue = UINT16_MAX;
175  dqo_target_queue = UINT16_MAX;
176  dqo_priority = UINT16_MAX;
177  dqo_label_size = 0;
178  dqo_flags_size = 0;
179  dqo_serialnum_size = 0;
180  dqo_width_size = 0;
181  dqo_running_size = 0;
184  dqo_priority_size = 0;
185  }
186 
187  bool IsValid() { return dqo_version != UINT16_MAX; }
188 
189  bool LabelIsValid() { return dqo_label != UINT16_MAX; }
190  };
191 
193  uint16_t vo_version = UINT16_MAX;
198 
199  LibdispatchVoucherOffsets() = default;
200 
201  bool IsValid() { return vo_version != UINT16_MAX; }
202  };
203 
205  uint16_t dti_version = UINT16_MAX;
209 
210  LibdispatchTSDIndexes() = default;
211 
212  bool IsValid() { return dti_version != UINT16_MAX; }
213  };
214 
216  uint16_t plo_version = UINT16_MAX;
220 
221  LibpthreadOffsets() = default;
222 
223  bool IsValid() { return plo_version != UINT16_MAX; }
224  };
225 
226  // The libBacktraceRecording function
227  // __introspection_dispatch_queue_get_pending_items has
228  // two forms. It can either return a simple array of item_refs (void *) size
229  // or it can return
230  // a header with uint32_t version, a uint32_t size of item, and then an array
231  // of item_refs (void*)
232  // and code addresses (void*) for all the pending blocks.
233 
237  };
238 
240  bool new_style; // new-style means both item_refs and code_addresses avail
241  // old-style means only item_refs is filled in
242  std::vector<ItemRefAndCodeAddress> item_refs_and_code_addresses;
243  };
244 
246 
248 
249  void ReadLibdispatchOffsets();
250 
252 
253  void ReadLibpthreadOffsets();
254 
256 
258 
260 
262 
267 
271 
274 
277 
280 
283 
284  SystemRuntimeMacOSX(const SystemRuntimeMacOSX &) = delete;
285  const SystemRuntimeMacOSX &operator=(const SystemRuntimeMacOSX &) = delete;
286 };
287 
288 #endif // LLDB_SOURCE_PLUGINS_SYSTEMRUNTIME_MACOSX_SYSTEMRUNTIMEMACOSX_H
SystemRuntimeMacOSX::LibdispatchOffsets::IsValid
bool IsValid()
Definition: SystemRuntimeMacOSX.h:187
lldb_private::AppleGetPendingItemsHandler
Definition: AppleGetPendingItemsHandler.h:44
SystemRuntimeMacOSX::LibdispatchTSDIndexes::dti_qos_class_index
uint64_t dti_qos_class_index
Definition: SystemRuntimeMacOSX.h:208
SystemRuntimeMacOSX::LibdispatchOffsets::dqo_target_queue
uint16_t dqo_target_queue
Definition: SystemRuntimeMacOSX.h:157
SystemRuntimeMacOSX::m_dispatch_queue_offsets_addr
lldb::addr_t m_dispatch_queue_offsets_addr
Definition: SystemRuntimeMacOSX.h:272
SystemRuntimeMacOSX::Clear
void Clear(bool clear_process)
Definition: SystemRuntimeMacOSX.cpp:105
SystemRuntimeMacOSX::LibdispatchOffsets::dqo_label
uint16_t dqo_label
Definition: SystemRuntimeMacOSX.h:142
SystemRuntimeMacOSX::LibdispatchOffsets::dqo_running_size
uint16_t dqo_running_size
Definition: SystemRuntimeMacOSX.h:151
SystemRuntimeMacOSX::m_libdispatch_offsets
struct LibdispatchOffsets m_libdispatch_offsets
Definition: SystemRuntimeMacOSX.h:273
SystemRuntimeMacOSX::m_dispatch_tsd_indexes_addr
lldb::addr_t m_dispatch_tsd_indexes_addr
Definition: SystemRuntimeMacOSX.h:278
SystemRuntimeMacOSX::GetQueueNameFromThreadQAddress
std::string GetQueueNameFromThreadQAddress(lldb::addr_t dispatch_qaddr) override
Get the queue name for a thread given a thread's dispatch_qaddr.
Definition: SystemRuntimeMacOSX.cpp:117
SystemRuntimeMacOSX::GetExtendedBacktraceThread
lldb::ThreadSP GetExtendedBacktraceThread(lldb::ThreadSP thread, lldb_private::ConstString type) override
Return a Thread which shows the origin of this thread's creation.
Definition: SystemRuntimeMacOSX.cpp:457
StructuredData.h
UUID.h
SystemRuntimeMacOSX::ItemInfo::enqueuing_queue_serialnum
uint64_t enqueuing_queue_serialnum
Definition: SystemRuntimeMacOSX.h:123
SystemRuntimeMacOSX::LibdispatchVoucherOffsets::vo_activity_ids_count_size
uint16_t vo_activity_ids_count_size
Definition: SystemRuntimeMacOSX.h:195
SystemRuntimeMacOSX::LibdispatchTSDIndexes::IsValid
bool IsValid()
Definition: SystemRuntimeMacOSX.h:212
SystemRuntimeMacOSX::m_get_thread_item_info_handler
lldb_private::AppleGetThreadItemInfoHandler m_get_thread_item_info_handler
Definition: SystemRuntimeMacOSX.h:266
AppleGetThreadItemInfoHandler.h
SystemRuntimeMacOSX::ReadLibpthreadOffsets
void ReadLibpthreadOffsets()
Definition: SystemRuntimeMacOSX.cpp:345
lldb_private::Process
Definition: Process.h:338
SystemRuntimeMacOSX::LibdispatchVoucherOffsets::IsValid
bool IsValid()
Definition: SystemRuntimeMacOSX.h:201
SystemRuntimeMacOSX::LibdispatchTSDIndexes::dti_version
uint16_t dti_version
Definition: SystemRuntimeMacOSX.h:205
SystemRuntimeMacOSX::LibdispatchOffsets::dqo_target_queue_size
uint16_t dqo_target_queue_size
Definition: SystemRuntimeMacOSX.h:159
lldb_private::SystemRuntime
Definition: SystemRuntime.h:43
SystemRuntimeMacOSX::ItemRefAndCodeAddress
Definition: SystemRuntimeMacOSX.h:234
SystemRuntimeMacOSX::SystemRuntimeMacOSX
SystemRuntimeMacOSX(lldb_private::Process *process)
Definition: SystemRuntimeMacOSX.cpp:80
SystemRuntimeMacOSX::ItemInfo::enqueuing_callstack_frame_count
uint32_t enqueuing_callstack_frame_count
Definition: SystemRuntimeMacOSX.h:125
SystemRuntimeMacOSX::PendingItemsForQueue::new_style
bool new_style
Definition: SystemRuntimeMacOSX.h:240
lldb::addr_t
uint64_t addr_t
Definition: lldb-types.h:83
SystemRuntimeMacOSX::Initialize
static void Initialize()
Definition: SystemRuntimeMacOSX.cpp:1020
SystemRuntimeMacOSX::m_get_pending_items_handler
lldb_private::AppleGetPendingItemsHandler m_get_pending_items_handler
Definition: SystemRuntimeMacOSX.h:264
SystemRuntimeMacOSX::ItemInfo::enqueuing_thread_id
uint64_t enqueuing_thread_id
Definition: SystemRuntimeMacOSX.h:122
SystemRuntimeMacOSX::LibpthreadOffsets::IsValid
bool IsValid()
Definition: SystemRuntimeMacOSX.h:223
SystemRuntimeMacOSX::LibdispatchOffsets::dqo_flags_size
uint16_t dqo_flags_size
Definition: SystemRuntimeMacOSX.h:145
SystemRuntimeMacOSX::LibdispatchOffsets::dqo_priority
uint16_t dqo_priority
Definition: SystemRuntimeMacOSX.h:162
SystemRuntimeMacOSX::LibdispatchTSDIndexes::LibdispatchTSDIndexes
LibdispatchTSDIndexes()=default
SystemRuntimeMacOSX::ItemInfo::item_that_enqueued_this
lldb::addr_t item_that_enqueued_this
Definition: SystemRuntimeMacOSX.h:120
Process.h
SystemRuntimeMacOSX::BacktraceRecordingHeadersInitialized
bool BacktraceRecordingHeadersInitialized()
Definition: SystemRuntimeMacOSX.cpp:612
SystemRuntimeMacOSX::GetExtendedBacktraceTypes
const std::vector< lldb_private::ConstString > & GetExtendedBacktraceTypes() override
Return a list of thread origin extended backtraces that may be available.
Definition: SystemRuntimeMacOSX.cpp:714
SystemRuntimeMacOSX
Definition: SystemRuntimeMacOSX.h:31
SystemRuntimeMacOSX::ExtractItemInfoFromBuffer
ItemInfo ExtractItemInfoFromBuffer(lldb_private::DataExtractor &extractor)
Definition: SystemRuntimeMacOSX.cpp:994
lldb::queue_id_t
uint64_t queue_id_t
Definition: lldb-types.h:91
SystemRuntimeMacOSX::PopulatePendingItemsForQueue
void PopulatePendingItemsForQueue(lldb_private::Queue *queue) override
Get the pending work items for a libdispatch Queue.
Definition: SystemRuntimeMacOSX.cpp:867
SystemRuntimeMacOSX::ItemInfo::target_queue_serialnum
uint64_t target_queue_serialnum
Definition: SystemRuntimeMacOSX.h:124
SystemRuntimeMacOSX::ItemInfo::enqueuing_queue_label
std::string enqueuing_queue_label
Definition: SystemRuntimeMacOSX.h:129
ModuleList.h
SystemRuntimeMacOSX::m_mutex
std::recursive_mutex m_mutex
Definition: SystemRuntimeMacOSX.h:105
SystemRuntimeMacOSX::PendingItemsForQueue
Definition: SystemRuntimeMacOSX.h:239
SystemRuntimeMacOSX::libBacktraceRecording_info::item_info_data_offset
uint16_t item_info_data_offset
Definition: SystemRuntimeMacOSX.h:112
lldb_private::DataExtractor
Definition: DataExtractor.h:48
SystemRuntimeMacOSX::m_page_to_free_size
uint64_t m_page_to_free_size
Definition: SystemRuntimeMacOSX.h:269
SystemRuntimeMacOSX::LibdispatchVoucherOffsets::vo_activity_ids_array
uint16_t vo_activity_ids_array
Definition: SystemRuntimeMacOSX.h:196
SystemRuntimeMacOSX::ReadLibdispatchOffsetsAddress
void ReadLibdispatchOffsetsAddress()
Definition: SystemRuntimeMacOSX.cpp:266
SystemRuntimeMacOSX::m_dispatch_voucher_offsets_addr
lldb::addr_t m_dispatch_voucher_offsets_addr
Definition: SystemRuntimeMacOSX.h:281
lldb_private::AppleGetThreadItemInfoHandler
Definition: AppleGetThreadItemInfoHandler.h:43
SystemRuntimeMacOSX::m_break_id
lldb::user_id_t m_break_id
Definition: SystemRuntimeMacOSX.h:104
SystemRuntimeMacOSX::GetPluginName
llvm::StringRef GetPluginName() override
Definition: SystemRuntimeMacOSX.h:101
SystemRuntimeMacOSX::LibdispatchTSDIndexes::dti_voucher_index
uint64_t dti_voucher_index
Definition: SystemRuntimeMacOSX.h:207
lldb_private::AppleGetQueuesHandler
Definition: AppleGetQueuesHandler.h:41
lldb_private::StructuredData::ObjectSP
std::shared_ptr< Object > ObjectSP
Definition: StructuredData.h:59
SystemRuntimeMacOSX::LibdispatchOffsets::dqo_width_size
uint16_t dqo_width_size
Definition: SystemRuntimeMacOSX.h:149
SystemRuntimeMacOSX::GetPluginNameStatic
static llvm::StringRef GetPluginNameStatic()
Definition: SystemRuntimeMacOSX.h:42
SystemRuntimeMacOSX::PopulateQueuesUsingLibBTR
void PopulateQueuesUsingLibBTR(lldb::addr_t queues_buffer, uint64_t queues_buffer_size, uint64_t count, lldb_private::QueueList &queue_list)
Definition: SystemRuntimeMacOSX.cpp:920
AppleGetItemInfoHandler.h
SystemRuntimeMacOSX::LibpthreadOffsets::plo_pthread_tsd_base_address_offset
uint16_t plo_pthread_tsd_base_address_offset
Definition: SystemRuntimeMacOSX.h:218
SystemRuntimeMacOSX::ReadLibdispatchOffsets
void ReadLibdispatchOffsets()
Definition: SystemRuntimeMacOSX.cpp:298
SystemRuntimeMacOSX::LibdispatchOffsets::dqo_flags
uint16_t dqo_flags
Definition: SystemRuntimeMacOSX.h:144
SystemRuntimeMacOSX::LibdispatchTSDIndexes
Definition: SystemRuntimeMacOSX.h:204
SystemRuntimeMacOSX::LibpthreadOffsets::LibpthreadOffsets
LibpthreadOffsets()=default
lldb_private::ConstString
Definition: ConstString.h:39
SystemRuntimeMacOSX::PopulatePendingQueuesUsingLibBTR
void PopulatePendingQueuesUsingLibBTR(lldb::addr_t items_buffer, uint64_t items_buffer_size, uint64_t count, lldb_private::Queue *queue)
AppleGetPendingItemsHandler.h
SystemRuntimeMacOSX::LibdispatchOffsets::dqo_running
uint16_t dqo_running
Definition: SystemRuntimeMacOSX.h:150
SystemRuntimeMacOSX::m_libpthread_offsets
struct LibpthreadOffsets m_libpthread_offsets
Definition: SystemRuntimeMacOSX.h:276
SystemRuntimeMacOSX::LibdispatchOffsets
Definition: SystemRuntimeMacOSX.h:140
SystemRuntimeMacOSX::CompleteQueueItem
void CompleteQueueItem(lldb_private::QueueItem *queue_item, lldb::addr_t item_ref) override
Complete the fields in a QueueItem.
Definition: SystemRuntimeMacOSX.cpp:884
SystemRuntimeMacOSX::LibpthreadOffsets::plo_version
uint16_t plo_version
Definition: SystemRuntimeMacOSX.h:216
SystemRuntimeMacOSX::libBacktraceRecording_info::libBacktraceRecording_info
libBacktraceRecording_info()=default
SystemRuntimeMacOSX::m_get_item_info_handler
lldb_private::AppleGetItemInfoHandler m_get_item_info_handler
Definition: SystemRuntimeMacOSX.h:265
SystemRuntimeMacOSX::~SystemRuntimeMacOSX
~SystemRuntimeMacOSX() override
Definition: SystemRuntimeMacOSX.cpp:95
string
string(SUBSTRING ${p} 10 -1 pStripped) if($
Definition: Plugins/CMakeLists.txt:40
SystemRuntimeMacOSX::LibdispatchVoucherOffsets::vo_activity_ids_array_entry_size
uint16_t vo_activity_ids_array_entry_size
Definition: SystemRuntimeMacOSX.h:197
SystemRuntimeMacOSX::Detach
void Detach() override
Called before detaching from a process.
Definition: SystemRuntimeMacOSX.cpp:97
SystemRuntimeMacOSX::ItemRefAndCodeAddress::item_ref
lldb::addr_t item_ref
Definition: SystemRuntimeMacOSX.h:235
SystemRuntimeMacOSX::LibdispatchVoucherOffsets::LibdispatchVoucherOffsets
LibdispatchVoucherOffsets()=default
SystemRuntimeMacOSX::LibdispatchOffsets::dqo_serialnum_size
uint16_t dqo_serialnum_size
Definition: SystemRuntimeMacOSX.h:147
SystemRuntimeMacOSX::libBacktraceRecording_info::queue_info_data_offset
uint16_t queue_info_data_offset
Definition: SystemRuntimeMacOSX.h:110
SystemRuntimeMacOSX::LibdispatchVoucherOffsets::vo_activity_ids_count
uint16_t vo_activity_ids_count
Definition: SystemRuntimeMacOSX.h:194
SystemRuntimeMacOSX::ItemRefAndCodeAddress::code_address
lldb::addr_t code_address
Definition: SystemRuntimeMacOSX.h:236
lldb_private::AppleGetItemInfoHandler
Definition: AppleGetItemInfoHandler.h:42
SystemRuntimeMacOSX::LibdispatchOffsets::dqo_width
uint16_t dqo_width
Definition: SystemRuntimeMacOSX.h:148
SystemRuntimeMacOSX::ReadLibdispatchTSDIndexes
void ReadLibdispatchTSDIndexes()
Definition: SystemRuntimeMacOSX.cpp:392
SystemRuntimeMacOSX::ItemInfo::enqueuing_callstack
std::vector< lldb::addr_t > enqueuing_callstack
Definition: SystemRuntimeMacOSX.h:127
SystemRuntimeMacOSX::LibdispatchTSDIndexes::dti_queue_index
uint64_t dti_queue_index
Definition: SystemRuntimeMacOSX.h:206
SystemRuntimeMacOSX::m_page_to_free
lldb::addr_t m_page_to_free
Definition: SystemRuntimeMacOSX.h:268
lldb_private::Queue
Definition: Queue.h:32
SystemRuntimeMacOSX::Terminate
static void Terminate()
Definition: SystemRuntimeMacOSX.cpp:1026
SystemRuntimeMacOSX::PopulateQueueList
void PopulateQueueList(lldb_private::QueueList &queue_list) override
Populate the Process' QueueList with libdispatch / GCD queues that exist.
Definition: SystemRuntimeMacOSX.cpp:724
SystemRuntimeMacOSX::m_libdispatch_voucher_offsets
struct LibdispatchVoucherOffsets m_libdispatch_voucher_offsets
Definition: SystemRuntimeMacOSX.h:282
SystemRuntimeMacOSX::CreateInstance
static lldb_private::SystemRuntime * CreateInstance(lldb_private::Process *process)
Definition: SystemRuntimeMacOSX.cpp:43
SystemRuntimeMacOSX::LibdispatchOffsets::dqo_version
uint16_t dqo_version
Definition: SystemRuntimeMacOSX.h:141
SystemRuntimeMacOSX::LibdispatchOffsets::dqo_suspend_cnt_size
uint16_t dqo_suspend_cnt_size
Definition: SystemRuntimeMacOSX.h:155
uint32_t
SystemRuntimeMacOSX::SafeToCallFunctionsOnThisThread
bool SafeToCallFunctionsOnThisThread(lldb::ThreadSP thread_sp) override
Determine whether it is safe to run an expression on a given thread.
Definition: SystemRuntimeMacOSX.cpp:222
SystemRuntimeMacOSX::LibdispatchOffsets::dqo_serialnum
uint16_t dqo_serialnum
Definition: SystemRuntimeMacOSX.h:146
SystemRuntimeMacOSX::LibpthreadOffsets::plo_pthread_tsd_base_offset
uint16_t plo_pthread_tsd_base_offset
Definition: SystemRuntimeMacOSX.h:217
SystemRuntimeMacOSX::GetExtendedBacktraceForQueueItem
lldb::ThreadSP GetExtendedBacktraceForQueueItem(lldb::QueueItemSP queue_item_sp, lldb_private::ConstString type) override
Get the extended backtrace thread for a QueueItem.
Definition: SystemRuntimeMacOSX.cpp:588
SystemRuntimeMacOSX::GetQueueKind
lldb::QueueKind GetQueueKind(lldb::addr_t dispatch_queue_addr) override
Retrieve the Queue kind for the queue at a thread's dispatch_qaddr.
Definition: SystemRuntimeMacOSX.cpp:171
SystemRuntimeMacOSX::m_get_queues_handler
lldb_private::AppleGetQueuesHandler m_get_queues_handler
Definition: SystemRuntimeMacOSX.h:263
uint16_t
SystemRuntimeMacOSX::libBacktraceRecording_info::item_info_version
uint16_t item_info_version
Definition: SystemRuntimeMacOSX.h:111
SystemRuntime.h
SystemRuntimeMacOSX::libBacktraceRecording_info::queue_info_version
uint16_t queue_info_version
Definition: SystemRuntimeMacOSX.h:109
SystemRuntimeMacOSX::ItemInfo
Definition: SystemRuntimeMacOSX.h:119
SystemRuntimeMacOSX::LibdispatchOffsets::LibdispatchOffsets
LibdispatchOffsets()
Definition: SystemRuntimeMacOSX.h:166
lldb::user_id_t
uint64_t user_id_t
Definition: lldb-types.h:84
SystemRuntimeMacOSX::m_libdispatch_tsd_indexes
struct LibdispatchTSDIndexes m_libdispatch_tsd_indexes
Definition: SystemRuntimeMacOSX.h:279
SystemRuntimeMacOSX::ItemInfo::target_queue_label
std::string target_queue_label
Definition: SystemRuntimeMacOSX.h:130
SystemRuntimeMacOSX::LibdispatchOffsets::dqo_label_size
uint16_t dqo_label_size
Definition: SystemRuntimeMacOSX.h:143
SystemRuntimeMacOSX::PendingItemsForQueue::item_refs_and_code_addresses
std::vector< ItemRefAndCodeAddress > item_refs_and_code_addresses
Definition: SystemRuntimeMacOSX.h:242
QueueItem.h
FileSpec.h
SystemRuntimeMacOSX::ItemInfo::function_or_block
lldb::addr_t function_or_block
Definition: SystemRuntimeMacOSX.h:121
ConstString.h
SystemRuntimeMacOSX::GetPendingItemRefsForQueue
PendingItemsForQueue GetPendingItemRefsForQueue(lldb::addr_t queue)
Definition: SystemRuntimeMacOSX.cpp:790
lldb_private::QueueItem
Definition: QueueItem.h:32
SystemRuntimeMacOSX::libBacktraceRecording_info
Definition: SystemRuntimeMacOSX.h:108
SystemRuntimeMacOSX::GetQueueIDFromThreadQAddress
lldb::queue_id_t GetQueueIDFromThreadQAddress(lldb::addr_t dispatch_qaddr) override
Get the QueueID for the libdispatch queue given the thread's dispatch_qaddr.
Definition: SystemRuntimeMacOSX.cpp:237
lldb_private::QueueList
Definition: QueueList.h:28
SystemRuntimeMacOSX::GetExtendedBacktraceFromItemRef
lldb::ThreadSP GetExtendedBacktraceFromItemRef(lldb::addr_t item_ref)
Definition: SystemRuntimeMacOSX.cpp:550
SystemRuntimeMacOSX::ReadLibdispatchTSDIndexesAddress
void ReadLibdispatchTSDIndexesAddress()
Definition: SystemRuntimeMacOSX.cpp:370
SystemRuntimeMacOSX::LibpthreadOffsets
Definition: SystemRuntimeMacOSX.h:215
AppleGetQueuesHandler.h
SystemRuntimeMacOSX::ItemInfo::stop_id
uint32_t stop_id
Definition: SystemRuntimeMacOSX.h:126
SystemRuntimeMacOSX::operator=
const SystemRuntimeMacOSX & operator=(const SystemRuntimeMacOSX &)=delete
SystemRuntimeMacOSX::LibdispatchOffsets::dqo_suspend_cnt
uint16_t dqo_suspend_cnt
Definition: SystemRuntimeMacOSX.h:153
SystemRuntimeMacOSX::m_lib_backtrace_recording_info
libBacktraceRecording_info m_lib_backtrace_recording_info
Definition: SystemRuntimeMacOSX.h:270
SystemRuntimeMacOSX::LibdispatchOffsets::dqo_priority_size
uint16_t dqo_priority_size
Definition: SystemRuntimeMacOSX.h:163
SystemRuntimeMacOSX::ItemInfo::enqueuing_thread_label
std::string enqueuing_thread_label
Definition: SystemRuntimeMacOSX.h:128
SystemRuntimeMacOSX::AddThreadExtendedInfoPacketHints
void AddThreadExtendedInfoPacketHints(lldb_private::StructuredData::ObjectSP dict) override
Add key-value pairs to the StructuredData dictionary object with information debugserver may need whe...
Definition: SystemRuntimeMacOSX.cpp:195
SystemRuntimeMacOSX::LibdispatchVoucherOffsets::vo_version
uint16_t vo_version
Definition: SystemRuntimeMacOSX.h:193
lldb::QueueKind
QueueKind
Queue type.
Definition: lldb-enumerations.h:965
SystemRuntimeMacOSX::ReadLibpthreadOffsetsAddress
void ReadLibpthreadOffsetsAddress()
Definition: SystemRuntimeMacOSX.cpp:322
SystemRuntimeMacOSX::LibdispatchVoucherOffsets
Definition: SystemRuntimeMacOSX.h:192
SystemRuntimeMacOSX::GetLibdispatchQueueAddressFromThreadQAddress
lldb::addr_t GetLibdispatchQueueAddressFromThreadQAddress(lldb::addr_t dispatch_qaddr) override
Get the libdispatch_queue_t address for the queue given the thread's dispatch_qaddr.
Definition: SystemRuntimeMacOSX.cpp:159
UINT64_MAX
#define UINT64_MAX
Definition: lldb-defines.h:23
SystemRuntimeMacOSX::LibdispatchOffsets::LabelIsValid
bool LabelIsValid()
Definition: SystemRuntimeMacOSX.h:189
SystemRuntimeMacOSX::LibpthreadOffsets::plo_pthread_tsd_entry_size
uint16_t plo_pthread_tsd_entry_size
Definition: SystemRuntimeMacOSX.h:219
SystemRuntimeMacOSX::m_libpthread_layout_offsets_addr
lldb::addr_t m_libpthread_layout_offsets_addr
Definition: SystemRuntimeMacOSX.h:275