LLDB  mainline
AppleGetPendingItemsHandler.cpp
Go to the documentation of this file.
1 //===-- AppleGetPendingItemsHandler.cpp -----------------------------------===//
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 
10 
12 #include "lldb/Core/Module.h"
13 #include "lldb/Core/Value.h"
17 #include "lldb/Symbol/Symbol.h"
19 #include "lldb/Target/Process.h"
20 #include "lldb/Target/Target.h"
21 #include "lldb/Target/Thread.h"
23 #include "lldb/Utility/Log.h"
25 
26 using namespace lldb;
27 using namespace lldb_private;
28 
29 const char *AppleGetPendingItemsHandler::g_get_pending_items_function_name =
30  "__lldb_backtrace_recording_get_pending_items";
31 const char *AppleGetPendingItemsHandler::g_get_pending_items_function_code =
32  " \n\
33 extern \"C\" \n\
34 { \n\
35  /* \n\
36  * mach defines \n\
37  */ \n\
38  \n\
39  typedef unsigned int uint32_t; \n\
40  typedef unsigned long long uint64_t; \n\
41  typedef uint32_t mach_port_t; \n\
42  typedef mach_port_t vm_map_t; \n\
43  typedef int kern_return_t; \n\
44  typedef uint64_t mach_vm_address_t; \n\
45  typedef uint64_t mach_vm_size_t; \n\
46  \n\
47  mach_port_t mach_task_self (); \n\
48  kern_return_t mach_vm_deallocate (vm_map_t target, mach_vm_address_t address, mach_vm_size_t size); \n\
49  \n\
50  /* \n\
51  * libBacktraceRecording defines \n\
52  */ \n\
53  \n\
54  typedef uint32_t queue_list_scope_t; \n\
55  typedef void *dispatch_queue_t; \n\
56  typedef void *introspection_dispatch_queue_info_t; \n\
57  typedef void *introspection_dispatch_item_info_ref; \n\
58  \n\
59  extern uint64_t __introspection_dispatch_queue_get_pending_items (dispatch_queue_t queue, \n\
60  introspection_dispatch_item_info_ref *returned_queues_buffer, \n\
61  uint64_t *returned_queues_buffer_size); \n\
62  extern int printf(const char *format, ...); \n\
63  \n\
64  /* \n\
65  * return type define \n\
66  */ \n\
67  \n\
68  struct get_pending_items_return_values \n\
69  { \n\
70  uint64_t pending_items_buffer_ptr; /* the address of the items buffer from libBacktraceRecording */ \n\
71  uint64_t pending_items_buffer_size; /* the size of the items buffer from libBacktraceRecording */ \n\
72  uint64_t count; /* the number of items included in the queues buffer */ \n\
73  }; \n\
74  \n\
75  void __lldb_backtrace_recording_get_pending_items \n\
76  (struct get_pending_items_return_values *return_buffer, \n\
77  int debug, \n\
78  uint64_t /* dispatch_queue_t */ queue, \n\
79  void *page_to_free, \n\
80  uint64_t page_to_free_size) \n\
81 { \n\
82  if (debug) \n\
83  printf (\"entering get_pending_items with args return_buffer == %p, debug == %d, queue == 0x%llx, page_to_free == %p, page_to_free_size == 0x%llx\\n\", return_buffer, debug, queue, page_to_free, page_to_free_size); \n\
84  if (page_to_free != 0) \n\
85  { \n\
86  mach_vm_deallocate (mach_task_self(), (mach_vm_address_t) page_to_free, (mach_vm_size_t) page_to_free_size); \n\
87  } \n\
88  \n\
89  return_buffer->count = __introspection_dispatch_queue_get_pending_items ( \n\
90  (void*) queue, \n\
91  (void**)&return_buffer->pending_items_buffer_ptr, \n\
92  &return_buffer->pending_items_buffer_size); \n\
93  if (debug) \n\
94  printf(\"result was count %lld\\n\", return_buffer->count); \n\
95 } \n\
96 } \n\
97 ";
98 
99 AppleGetPendingItemsHandler::AppleGetPendingItemsHandler(Process *process)
100  : m_process(process), m_get_pending_items_impl_code(),
101  m_get_pending_items_function_mutex(),
102  m_get_pending_items_return_buffer_addr(LLDB_INVALID_ADDRESS),
103  m_get_pending_items_retbuffer_mutex() {}
104 
106 
108  if (m_process && m_process->IsAlive() &&
110  std::unique_lock<std::mutex> lock(m_get_pending_items_retbuffer_mutex,
111  std::defer_lock);
112  (void)lock.try_lock(); // Even if we don't get the lock, deallocate the buffer
114  }
115 }
116 
117 // Compile our __lldb_backtrace_recording_get_pending_items() function (from
118 // the source above in g_get_pending_items_function_code) if we don't find that
119 // function in the inferior already with USE_BUILTIN_FUNCTION defined. (e.g.
120 // this would be the case for testing.)
121 //
122 // Insert the __lldb_backtrace_recording_get_pending_items into the inferior
123 // process if needed.
124 //
125 // Write the get_pending_items_arglist into the inferior's memory space to
126 // prepare for the call.
127 //
128 // Returns the address of the arguments written down in the inferior process,
129 // which can be used to make the function call.
130 
132  Thread &thread, ValueList &get_pending_items_arglist) {
133  ThreadSP thread_sp(thread.shared_from_this());
134  ExecutionContext exe_ctx(thread_sp);
135  DiagnosticManager diagnostics;
137 
139  FunctionCaller *get_pending_items_caller = nullptr;
140 
141  // Scope for mutex locker:
142  {
143  std::lock_guard<std::mutex> guard(m_get_pending_items_function_mutex);
144 
145  // First stage is to make the ClangUtility to hold our injected function:
146 
148  if (g_get_pending_items_function_code != nullptr) {
149  auto utility_fn_or_error = exe_ctx.GetTargetRef().CreateUtilityFunction(
152  if (!utility_fn_or_error) {
153  LLDB_LOG_ERROR(log, utility_fn_or_error.takeError(),
154  "Failed to create UtilityFunction for pending-items "
155  "introspection: {0}.");
156  return args_addr;
157  }
158  m_get_pending_items_impl_code = std::move(*utility_fn_or_error);
159  } else {
160  LLDB_LOGF(log, "No pending-items introspection code found.");
161  return LLDB_INVALID_ADDRESS;
162  }
163 
164  // Next make the runner function for our implementation utility function.
165  Status error;
167  thread.GetProcess()->GetTarget());
168  CompilerType get_pending_items_return_type =
169  clang_ast_context->GetBasicType(eBasicTypeVoid).GetPointerType();
170  get_pending_items_caller =
171  m_get_pending_items_impl_code->MakeFunctionCaller(
172  get_pending_items_return_type, get_pending_items_arglist,
173  thread_sp, error);
174  if (error.Fail() || get_pending_items_caller == nullptr) {
175  LLDB_LOGF(log,
176  "Failed to install pending-items introspection function "
177  "caller: %s.",
178  error.AsCString());
180  return args_addr;
181  }
182  }
183  }
184 
185  diagnostics.Clear();
186 
187  if (get_pending_items_caller == nullptr) {
188  LLDB_LOGF(log, "Failed to get get_pending_items_caller.");
189  return LLDB_INVALID_ADDRESS;
190  }
191 
192  // Now write down the argument values for this particular call. This looks
193  // like it might be a race condition if other threads were calling into here,
194  // but actually it isn't because we allocate a new args structure for this
195  // call by passing args_addr = LLDB_INVALID_ADDRESS...
196 
197  if (!get_pending_items_caller->WriteFunctionArguments(
198  exe_ctx, args_addr, get_pending_items_arglist, diagnostics)) {
199  if (log) {
200  LLDB_LOGF(log, "Error writing pending-items function arguments.");
201  diagnostics.Dump(log);
202  }
203 
204  return args_addr;
205  }
206 
207  return args_addr;
208 }
209 
212  addr_t page_to_free,
213  uint64_t page_to_free_size,
214  Status &error) {
215  lldb::StackFrameSP thread_cur_frame = thread.GetStackFrameAtIndex(0);
216  ProcessSP process_sp(thread.CalculateProcess());
217  TargetSP target_sp(thread.CalculateTarget());
218  TypeSystemClang *clang_ast_context =
221 
222  GetPendingItemsReturnInfo return_value;
223  return_value.items_buffer_ptr = LLDB_INVALID_ADDRESS;
224  return_value.items_buffer_size = 0;
225  return_value.count = 0;
226 
227  error.Clear();
228 
229  if (!thread.SafeToCallFunctions()) {
230  LLDB_LOGF(log, "Not safe to call functions on thread 0x%" PRIx64,
231  thread.GetID());
232  error.SetErrorString("Not safe to call functions on this thread.");
233  return return_value;
234  }
235 
236  // Set up the arguments for a call to
237 
238  // struct get_pending_items_return_values
239  // {
240  // uint64_t pending_items_buffer_ptr; /* the address of the items
241  // buffer from libBacktraceRecording */
242  // uint64_t pending_items_buffer_size; /* the size of the items buffer
243  // from libBacktraceRecording */
244  // uint64_t count; /* the number of items included in the
245  // queues buffer */
246  // };
247  //
248  // void __lldb_backtrace_recording_get_pending_items
249  // (struct
250  // get_pending_items_return_values
251  // *return_buffer,
252  // int debug,
253  // uint64_t /* dispatch_queue_t */
254  // queue
255  // void *page_to_free,
256  // uint64_t page_to_free_size)
257 
258  // Where the return_buffer argument points to a 24 byte region of memory
259  // already allocated by lldb in the inferior process.
260 
261  CompilerType clang_void_ptr_type =
262  clang_ast_context->GetBasicType(eBasicTypeVoid).GetPointerType();
263  Value return_buffer_ptr_value;
264  return_buffer_ptr_value.SetValueType(Value::ValueType::Scalar);
265  return_buffer_ptr_value.SetCompilerType(clang_void_ptr_type);
266 
267  CompilerType clang_int_type = clang_ast_context->GetBasicType(eBasicTypeInt);
268  Value debug_value;
270  debug_value.SetCompilerType(clang_int_type);
271 
272  CompilerType clang_uint64_type =
273  clang_ast_context->GetBasicType(eBasicTypeUnsignedLongLong);
274  Value queue_value;
276  queue_value.SetCompilerType(clang_uint64_type);
277 
278  Value page_to_free_value;
279  page_to_free_value.SetValueType(Value::ValueType::Scalar);
280  page_to_free_value.SetCompilerType(clang_void_ptr_type);
281 
282  Value page_to_free_size_value;
283  page_to_free_size_value.SetValueType(Value::ValueType::Scalar);
284  page_to_free_size_value.SetCompilerType(clang_uint64_type);
285 
286  std::lock_guard<std::mutex> guard(m_get_pending_items_retbuffer_mutex);
288  addr_t bufaddr = process_sp->AllocateMemory(
289  32, ePermissionsReadable | ePermissionsWritable, error);
290  if (!error.Success() || bufaddr == LLDB_INVALID_ADDRESS) {
291  LLDB_LOGF(log, "Failed to allocate memory for return buffer for get "
292  "current queues func call");
293  return return_value;
294  }
296  }
297 
298  ValueList argument_values;
299 
300  return_buffer_ptr_value.GetScalar() = m_get_pending_items_return_buffer_addr;
301  argument_values.PushValue(return_buffer_ptr_value);
302 
303  debug_value.GetScalar() = 0;
304  argument_values.PushValue(debug_value);
305 
306  queue_value.GetScalar() = queue;
307  argument_values.PushValue(queue_value);
308 
309  if (page_to_free != LLDB_INVALID_ADDRESS)
310  page_to_free_value.GetScalar() = page_to_free;
311  else
312  page_to_free_value.GetScalar() = 0;
313  argument_values.PushValue(page_to_free_value);
314 
315  page_to_free_size_value.GetScalar() = page_to_free_size;
316  argument_values.PushValue(page_to_free_size_value);
317 
318  addr_t args_addr = SetupGetPendingItemsFunction(thread, argument_values);
319 
320  DiagnosticManager diagnostics;
321  ExecutionContext exe_ctx;
322  FunctionCaller *get_pending_items_caller =
323  m_get_pending_items_impl_code->GetFunctionCaller();
324 
326  options.SetUnwindOnError(true);
327  options.SetIgnoreBreakpoints(true);
328  options.SetStopOthers(true);
329 #if __has_feature(address_sanitizer)
330  options.SetTimeout(process_sp->GetUtilityExpressionTimeout());
331 #else
332  options.SetTimeout(std::chrono::milliseconds(500));
333 #endif
334  options.SetTryAllThreads(false);
335  options.SetIsForUtilityExpr(true);
336  thread.CalculateExecutionContext(exe_ctx);
337 
338  if (get_pending_items_caller == nullptr) {
339  error.SetErrorString("Unable to compile function to call "
340  "__introspection_dispatch_queue_get_pending_items");
341  return return_value;
342  }
343 
344  ExpressionResults func_call_ret;
345  Value results;
346  func_call_ret = get_pending_items_caller->ExecuteFunction(
347  exe_ctx, &args_addr, options, diagnostics, results);
348  if (func_call_ret != eExpressionCompleted || !error.Success()) {
349  LLDB_LOGF(log,
350  "Unable to call "
351  "__introspection_dispatch_queue_get_pending_items(), got "
352  "ExpressionResults %d, error contains %s",
353  func_call_ret, error.AsCString(""));
354  error.SetErrorString("Unable to call "
355  "__introspection_dispatch_queue_get_pending_items() "
356  "for list of queues");
357  return return_value;
358  }
359 
362  if (!error.Success() ||
363  return_value.items_buffer_ptr == LLDB_INVALID_ADDRESS) {
364  return_value.items_buffer_ptr = LLDB_INVALID_ADDRESS;
365  return return_value;
366  }
367 
370 
371  if (!error.Success()) {
372  return_value.items_buffer_ptr = LLDB_INVALID_ADDRESS;
373  return return_value;
374  }
375 
378  if (!error.Success()) {
379  return_value.items_buffer_ptr = LLDB_INVALID_ADDRESS;
380  return return_value;
381  }
382 
383  LLDB_LOGF(log,
384  "AppleGetPendingItemsHandler called "
385  "__introspection_dispatch_queue_get_pending_items "
386  "(page_to_free == 0x%" PRIx64 ", size = %" PRId64
387  "), returned page is at 0x%" PRIx64 ", size %" PRId64
388  ", count = %" PRId64,
389  page_to_free, page_to_free_size, return_value.items_buffer_ptr,
390  return_value.items_buffer_size, return_value.count);
391 
392  return return_value;
393 }
lldb_private::Value::ValueType::Scalar
@ Scalar
A raw scalar value.
lldb_private::ExecutionContext
Definition: ExecutionContext.h:292
lldb_private::Process::DeallocateMemory
Status DeallocateMemory(lldb::addr_t ptr)
The public interface to deallocating memory in the process.
Definition: Process.cpp:2332
FunctionCaller.h
lldb_private::EvaluateExpressionOptions::SetTimeout
void SetTimeout(const Timeout< std::micro > &timeout)
Definition: Target.h:321
lldb_private::Value
Definition: Value.h:38
lldb_private::Value::SetValueType
void SetValueType(ValueType value_type)
Definition: Value.h:89
lldb_private::DiagnosticManager::Dump
void Dump(Log *log)
Definition: DiagnosticManager.cpp:18
lldb::ExpressionResults
ExpressionResults
The results of expression evaluation.
Definition: lldb-enumerations.h:270
LLDB_LOGF
#define LLDB_LOGF(log,...)
Definition: Log.h:249
lldb_private::Process
Definition: Process.h:341
lldb_private::AppleGetPendingItemsHandler::g_get_pending_items_function_code
static const char * g_get_pending_items_function_code
Definition: AppleGetPendingItemsHandler.h:103
lldb_private::Thread::CalculateTarget
lldb::TargetSP CalculateTarget() override
Definition: Thread.cpp:1390
lldb_private::EvaluateExpressionOptions::SetIsForUtilityExpr
void SetIsForUtilityExpr(bool b)
Definition: Target.h:408
Module.h
lldb_private::AppleGetPendingItemsHandler::m_get_pending_items_function_mutex
std::mutex m_get_pending_items_function_mutex
Definition: AppleGetPendingItemsHandler.h:107
lldb_private::EvaluateExpressionOptions
Definition: Target.h:253
lldb_private::ValueList
Definition: Value.h:157
LIBLLDB_LOG_SYSTEM_RUNTIME
#define LIBLLDB_LOG_SYSTEM_RUNTIME
Definition: Logging.h:40
lldb_private::Process::IsAlive
virtual bool IsAlive()
Check if a process is still alive.
Definition: Process.cpp:1049
lldb::addr_t
uint64_t addr_t
Definition: lldb-types.h:83
lldb_private::AppleGetPendingItemsHandler::GetPendingItemsReturnInfo::count
uint64_t count
Definition: AppleGetPendingItemsHandler.h:56
lldb_private::Thread::SafeToCallFunctions
virtual bool SafeToCallFunctions()
Check whether this thread is safe to run functions.
Definition: Thread.cpp:1648
Process.h
lldb_private::Value::SetCompilerType
void SetCompilerType(const CompilerType &compiler_type)
Definition: Value.cpp:254
Target.h
lldb_private::Value::GetScalar
const Scalar & GetScalar() const
Definition: Value.h:112
lldb_private::Thread::GetProcess
lldb::ProcessSP GetProcess() const
Definition: Thread.h:154
error
static llvm::raw_ostream & error(Stream &strm)
Definition: CommandReturnObject.cpp:17
lldb_private::ValueList::PushValue
void PushValue(const Value &value)
Definition: Value.cpp:675
lldb_private::Thread::CalculateProcess
lldb::ProcessSP CalculateProcess() override
Definition: Thread.cpp:1398
lldb_private::FunctionCaller::WriteFunctionArguments
bool WriteFunctionArguments(ExecutionContext &exe_ctx, lldb::addr_t &args_addr_ref, DiagnosticManager &diagnostic_manager)
Insert the default function argument struct.
Definition: FunctionCaller.cpp:115
Log.h
TypeSystemClang.h
lldb_private::Thread
Definition: Thread.h:62
lldb::eExpressionCompleted
@ eExpressionCompleted
Definition: lldb-enumerations.h:271
StreamString.h
lldb::eBasicTypeInt
@ eBasicTypeInt
Definition: lldb-enumerations.h:754
lldb_private::Target::CreateUtilityFunction
llvm::Expected< std::unique_ptr< UtilityFunction > > CreateUtilityFunction(std::string expression, std::string name, lldb::LanguageType language, ExecutionContext &exe_ctx)
Creates and installs a UtilityFunction for the given language.
Definition: Target.cpp:2319
AppleGetPendingItemsHandler.h
lldb_private::AppleGetPendingItemsHandler::m_get_pending_items_retbuffer_mutex
std::mutex m_get_pending_items_retbuffer_mutex
Definition: AppleGetPendingItemsHandler.h:110
lldb_private::EvaluateExpressionOptions::SetTryAllThreads
void SetTryAllThreads(bool try_others=true)
Definition: Target.h:333
lldb_private::GetLogIfAllCategoriesSet
Log * GetLogIfAllCategoriesSet(uint32_t mask)
Definition: Logging.cpp:58
lldb::eBasicTypeVoid
@ eBasicTypeVoid
Definition: lldb-enumerations.h:743
lldb_private::AppleGetPendingItemsHandler::Detach
void Detach()
Definition: AppleGetPendingItemsHandler.cpp:107
lldb::eBasicTypeUnsignedLongLong
@ eBasicTypeUnsignedLongLong
Definition: lldb-enumerations.h:759
lldb_private::EvaluateExpressionOptions::SetUnwindOnError
void SetUnwindOnError(bool unwind=false)
Definition: Target.h:300
lldb_private::AppleGetPendingItemsHandler::GetPendingItemsReturnInfo::items_buffer_size
lldb::addr_t items_buffer_size
Definition: AppleGetPendingItemsHandler.h:54
Thread.h
lldb_private::UserID::GetID
lldb::user_id_t GetID() const
Get accessor for the user ID.
Definition: UserID.h:47
lldb_private::Thread::CalculateExecutionContext
void CalculateExecutionContext(ExecutionContext &exe_ctx) override
Reconstruct the object's execution context into sc.
Definition: Thread.cpp:1404
UtilityFunction.h
lldb_private::AppleGetPendingItemsHandler::GetPendingItemsReturnInfo
Definition: AppleGetPendingItemsHandler.h:50
lldb_private::EvaluateExpressionOptions::SetIgnoreBreakpoints
void SetIgnoreBreakpoints(bool ignore=false)
Definition: Target.h:304
Symbol.h
lldb_private::Status
Definition: Status.h:44
lldb_private::CompilerType::GetPointerType
CompilerType GetPointerType() const
Return a new CompilerType that is a pointer to this type.
Definition: CompilerType.cpp:407
lldb_private::DiagnosticManager
Definition: DiagnosticManager.h:93
lldb_private::ScratchTypeSystemClang::GetForTarget
static TypeSystemClang * GetForTarget(Target &target, llvm::Optional< IsolatedASTKind > ast_kind=DefaultAST, bool create_on_demand=true)
Returns the scratch TypeSystemClang for the given target.
Definition: TypeSystemClang.cpp:9739
lldb_private::AppleGetPendingItemsHandler::~AppleGetPendingItemsHandler
~AppleGetPendingItemsHandler()
LLDB_INVALID_ADDRESS
#define LLDB_INVALID_ADDRESS
Definition: lldb-defines.h:86
lldb_private::CompilerType
Generic representation of a type in a programming language.
Definition: CompilerType.h:33
lldb_private::AppleGetPendingItemsHandler::g_get_pending_items_function_name
static const char * g_get_pending_items_function_name
Definition: AppleGetPendingItemsHandler.h:102
DiagnosticManager.h
lldb_private::DiagnosticManager::Clear
void Clear()
Definition: DiagnosticManager.h:95
lldb_private::ExecutionContext::GetTargetRef
Target & GetTargetRef() const
Returns a reference to the target object.
Definition: ExecutionContext.cpp:226
lldb_private::AppleGetPendingItemsHandler::m_process
lldb_private::Process * m_process
Definition: AppleGetPendingItemsHandler.h:105
lldb_private::AppleGetPendingItemsHandler::GetPendingItemsReturnInfo::items_buffer_ptr
lldb::addr_t items_buffer_ptr
Definition: AppleGetPendingItemsHandler.h:51
lldb::eLanguageTypeC
@ eLanguageTypeC
Non-standardized C, such as K&R.
Definition: lldb-enumerations.h:439
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
lldb_private::FunctionCaller::ExecuteFunction
lldb::ExpressionResults ExecuteFunction(ExecutionContext &exe_ctx, lldb::addr_t *args_addr_ptr, const EvaluateExpressionOptions &options, DiagnosticManager &diagnostic_manager, Value &results)
Run the function this FunctionCaller was created with.
Definition: FunctionCaller.cpp:313
lldb_private::TypeSystemClang::GetBasicType
CompilerType GetBasicType(lldb::BasicType type)
Definition: TypeSystemClang.cpp:940
lldb_private::TypeSystemClang
A TypeSystem implementation based on Clang.
Definition: TypeSystemClang.h:106
lldb_private::AppleGetPendingItemsHandler::SetupGetPendingItemsFunction
lldb::addr_t SetupGetPendingItemsFunction(Thread &thread, ValueList &get_pending_items_arglist)
Definition: AppleGetPendingItemsHandler.cpp:131
ConstString.h
lldb_private::Process::ReadUnsignedIntegerFromMemory
uint64_t ReadUnsignedIntegerFromMemory(lldb::addr_t load_addr, size_t byte_size, uint64_t fail_value, Status &error)
Reads an unsigned integer of the specified byte size from process memory.
Definition: Process.cpp:2064
lldb_private::Log
Definition: Log.h:49
lldb_private::EvaluateExpressionOptions::SetStopOthers
void SetStopOthers(bool stop_others=true)
Definition: Target.h:337
lldb_private::Thread::GetStackFrameAtIndex
virtual lldb::StackFrameSP GetStackFrameAtIndex(uint32_t idx)
Definition: Thread.h:399
lldb_private::AppleGetPendingItemsHandler::m_get_pending_items_return_buffer_addr
lldb::addr_t m_get_pending_items_return_buffer_addr
Definition: AppleGetPendingItemsHandler.h:109
lldb
Definition: SBAddress.h:15
LLDB_LOG_ERROR
#define LLDB_LOG_ERROR(log, error,...)
Definition: Log.h:265
Value.h
ExecutionContext.h
lldb_private::AppleGetPendingItemsHandler::m_get_pending_items_impl_code
std::unique_ptr< UtilityFunction > m_get_pending_items_impl_code
Definition: AppleGetPendingItemsHandler.h:106
lldb_private::AppleGetPendingItemsHandler::GetPendingItems
GetPendingItemsReturnInfo GetPendingItems(Thread &thread, lldb::addr_t queue, lldb::addr_t page_to_free, uint64_t page_to_free_size, lldb_private::Status &error)
Get the list of pending items for a given queue via a call to __introspection_dispatch_queue_get_pend...
Definition: AppleGetPendingItemsHandler.cpp:211
lldb_private::FunctionCaller
Definition: FunctionCaller.h:56