LLDB  mainline
AppleGetItemInfoHandler.cpp
Go to the documentation of this file.
1 //===-- AppleGetItemInfoHandler.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/LLDBLog.h"
24 #include "lldb/Utility/Log.h"
26 
27 using namespace lldb;
28 using namespace lldb_private;
29 
30 const char *AppleGetItemInfoHandler::g_get_item_info_function_name =
31  "__lldb_backtrace_recording_get_item_info";
32 const char *AppleGetItemInfoHandler::g_get_item_info_function_code =
33  " \n\
34 extern \"C\" \n\
35 { \n\
36  /* \n\
37  * mach defines \n\
38  */ \n\
39  \n\
40  typedef unsigned int uint32_t; \n\
41  typedef unsigned long long uint64_t; \n\
42  typedef uint32_t mach_port_t; \n\
43  typedef mach_port_t vm_map_t; \n\
44  typedef int kern_return_t; \n\
45  typedef uint64_t mach_vm_address_t; \n\
46  typedef uint64_t mach_vm_size_t; \n\
47  \n\
48  mach_port_t mach_task_self (); \n\
49  kern_return_t mach_vm_deallocate (vm_map_t target, mach_vm_address_t address, mach_vm_size_t size); \n\
50  \n\
51  /* \n\
52  * libBacktraceRecording defines \n\
53  */ \n\
54  \n\
55  typedef uint32_t queue_list_scope_t; \n\
56  typedef void *dispatch_queue_t; \n\
57  typedef void *introspection_dispatch_queue_info_t; \n\
58  typedef void *introspection_dispatch_item_info_ref; \n\
59  \n\
60  extern uint64_t __introspection_dispatch_queue_item_get_info (introspection_dispatch_item_info_ref item_info_ref, \n\
61  introspection_dispatch_item_info_ref *returned_queues_buffer, \n\
62  uint64_t *returned_queues_buffer_size); \n\
63  extern int printf(const char *format, ...); \n\
64  \n\
65  /* \n\
66  * return type define \n\
67  */ \n\
68  \n\
69  struct get_item_info_return_values \n\
70  { \n\
71  uint64_t item_info_buffer_ptr; /* the address of the items buffer from libBacktraceRecording */ \n\
72  uint64_t item_info_buffer_size; /* the size of the items buffer from libBacktraceRecording */ \n\
73  }; \n\
74  \n\
75  void __lldb_backtrace_recording_get_item_info \n\
76  (struct get_item_info_return_values *return_buffer, \n\
77  int debug, \n\
78  uint64_t /* introspection_dispatch_item_info_ref item_info_ref */ item, \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_item_info with args return_buffer == %p, debug == %d, item == 0x%llx, page_to_free == %p, page_to_free_size == 0x%llx\\n\", return_buffer, debug, item, 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  __introspection_dispatch_queue_item_get_info ((void*) item, \n\
90  (void**)&return_buffer->item_info_buffer_ptr, \n\
91  &return_buffer->item_info_buffer_size); \n\
92 } \n\
93 } \n\
94 ";
95 
96 AppleGetItemInfoHandler::AppleGetItemInfoHandler(Process *process)
97  : m_process(process), m_get_item_info_impl_code(),
98  m_get_item_info_function_mutex(),
99  m_get_item_info_return_buffer_addr(LLDB_INVALID_ADDRESS),
100  m_get_item_info_retbuffer_mutex() {}
101 
103 
105 
106  if (m_process && m_process->IsAlive() &&
108  std::unique_lock<std::mutex> lock(m_get_item_info_retbuffer_mutex,
109  std::defer_lock);
110  (void)lock.try_lock(); // Even if we don't get the lock, deallocate the buffer
112  }
113 }
114 
115 // Compile our __lldb_backtrace_recording_get_item_info() function (from the
116 // source above in g_get_item_info_function_code) if we don't find that
117 // function in the inferior already with USE_BUILTIN_FUNCTION defined. (e.g.
118 // this would be the case for testing.)
119 //
120 // Insert the __lldb_backtrace_recording_get_item_info into the inferior
121 // process if needed.
122 //
123 // Write the get_item_info_arglist into the inferior's memory space to prepare
124 // for the call.
125 //
126 // Returns the address of the arguments written down in the inferior process,
127 // which can be used to make the function call.
128 
130  Thread &thread, ValueList &get_item_info_arglist) {
131  ExecutionContext exe_ctx(thread.shared_from_this());
132  DiagnosticManager diagnostics;
135  FunctionCaller *get_item_info_caller = nullptr;
136 
137  // Scope for mutex locker:
138  {
139  std::lock_guard<std::mutex> guard(m_get_item_info_function_mutex);
140 
141  // First stage is to make the UtilityFunction to hold our injected
142  // function:
143 
145  if (g_get_item_info_function_code != nullptr) {
146  auto utility_fn_or_error = exe_ctx.GetTargetRef().CreateUtilityFunction(
148  eLanguageTypeObjC, exe_ctx);
149  if (!utility_fn_or_error) {
150  LLDB_LOG_ERROR(log, utility_fn_or_error.takeError(),
151  "Failed to create utility function: {0}.");
152  }
153  m_get_item_info_impl_code = std::move(*utility_fn_or_error);
154  } else {
155  LLDB_LOGF(log, "No get-item-info introspection code found.");
156  return LLDB_INVALID_ADDRESS;
157  }
158 
159  // Next make the runner function for our implementation utility function.
160  auto type_system_or_err =
161  thread.GetProcess()->GetTarget().GetScratchTypeSystemForLanguage(
163  if (auto err = type_system_or_err.takeError()) {
164  LLDB_LOG_ERROR(log, std::move(err),
165  "Error inseting get-item-info function");
166  return args_addr;
167  }
168  CompilerType get_item_info_return_type =
169  type_system_or_err->GetBasicTypeFromAST(eBasicTypeVoid)
170  .GetPointerType();
171 
172  Status error;
173  get_item_info_caller = m_get_item_info_impl_code->MakeFunctionCaller(
174  get_item_info_return_type, get_item_info_arglist,
175  thread.shared_from_this(), error);
176  if (error.Fail() || get_item_info_caller == nullptr) {
177  LLDB_LOGF(log, "Error Inserting get-item-info function: \"%s\".",
178  error.AsCString());
179  return args_addr;
180  }
181  } else {
182  // If it's already made, then we can just retrieve the caller:
183  get_item_info_caller = m_get_item_info_impl_code->GetFunctionCaller();
184  if (!get_item_info_caller) {
185  LLDB_LOGF(log, "Failed to get get-item-info introspection caller.");
187  return args_addr;
188  }
189  }
190  }
191 
192  diagnostics.Clear();
193 
194  // Now write down the argument values for this particular call. This looks
195  // like it might be a race condition if other threads were calling into here,
196  // but actually it isn't because we allocate a new args structure for this
197  // call by passing args_addr = LLDB_INVALID_ADDRESS...
198 
199  if (!get_item_info_caller->WriteFunctionArguments(
200  exe_ctx, args_addr, get_item_info_arglist, diagnostics)) {
201  if (log) {
202  LLDB_LOGF(log, "Error writing get-item-info function arguments.");
203  diagnostics.Dump(log);
204  }
205 
206  return args_addr;
207  }
208 
209  return args_addr;
210 }
211 
214  addr_t page_to_free,
215  uint64_t page_to_free_size,
216  Status &error) {
217  lldb::StackFrameSP thread_cur_frame = thread.GetStackFrameAtIndex(0);
218  ProcessSP process_sp(thread.CalculateProcess());
219  TargetSP target_sp(thread.CalculateTarget());
220  TypeSystemClang *clang_ast_context =
223 
224  GetItemInfoReturnInfo return_value;
225  return_value.item_buffer_ptr = LLDB_INVALID_ADDRESS;
226  return_value.item_buffer_size = 0;
227 
228  error.Clear();
229 
230  if (!thread.SafeToCallFunctions()) {
231  LLDB_LOGF(log, "Not safe to call functions on thread 0x%" PRIx64,
232  thread.GetID());
233  error.SetErrorString("Not safe to call functions on this thread.");
234  return return_value;
235  }
236 
237  // Set up the arguments for a call to
238 
239  // struct get_item_info_return_values
240  // {
241  // uint64_t item_info_buffer_ptr; /* the address of the items buffer
242  // from libBacktraceRecording */
243  // uint64_t item_info_buffer_size; /* the size of the items buffer from
244  // libBacktraceRecording */
245  // };
246  //
247  // void __lldb_backtrace_recording_get_item_info
248  // (struct
249  // get_item_info_return_values
250  // *return_buffer,
251  // int debug,
252  // uint64_t item,
253  // void *page_to_free,
254  // uint64_t page_to_free_size)
255 
256  // Where the return_buffer argument points to a 24 byte region of memory
257  // already allocated by lldb in the inferior process.
258 
259  CompilerType clang_void_ptr_type =
260  clang_ast_context->GetBasicType(eBasicTypeVoid).GetPointerType();
261  Value return_buffer_ptr_value;
262  return_buffer_ptr_value.SetValueType(Value::ValueType::Scalar);
263  return_buffer_ptr_value.SetCompilerType(clang_void_ptr_type);
264 
265  CompilerType clang_int_type = clang_ast_context->GetBasicType(eBasicTypeInt);
266  Value debug_value;
268  debug_value.SetCompilerType(clang_int_type);
269 
270  CompilerType clang_uint64_type =
271  clang_ast_context->GetBasicType(eBasicTypeUnsignedLongLong);
272  Value item_value;
274  item_value.SetCompilerType(clang_uint64_type);
275 
276  Value page_to_free_value;
277  page_to_free_value.SetValueType(Value::ValueType::Scalar);
278  page_to_free_value.SetCompilerType(clang_void_ptr_type);
279 
280  Value page_to_free_size_value;
281  page_to_free_size_value.SetValueType(Value::ValueType::Scalar);
282  page_to_free_size_value.SetCompilerType(clang_uint64_type);
283 
284  std::lock_guard<std::mutex> guard(m_get_item_info_retbuffer_mutex);
286  addr_t bufaddr = process_sp->AllocateMemory(
287  32, ePermissionsReadable | ePermissionsWritable, error);
288  if (!error.Success() || bufaddr == LLDB_INVALID_ADDRESS) {
289  LLDB_LOGF(log, "Failed to allocate memory for return buffer for get "
290  "current queues func call");
291  return return_value;
292  }
294  }
295 
296  ValueList argument_values;
297 
298  return_buffer_ptr_value.GetScalar() = m_get_item_info_return_buffer_addr;
299  argument_values.PushValue(return_buffer_ptr_value);
300 
301  debug_value.GetScalar() = 0;
302  argument_values.PushValue(debug_value);
303 
304  item_value.GetScalar() = item;
305  argument_values.PushValue(item_value);
306 
307  if (page_to_free != LLDB_INVALID_ADDRESS)
308  page_to_free_value.GetScalar() = page_to_free;
309  else
310  page_to_free_value.GetScalar() = 0;
311  argument_values.PushValue(page_to_free_value);
312 
313  page_to_free_size_value.GetScalar() = page_to_free_size;
314  argument_values.PushValue(page_to_free_size_value);
315 
316  addr_t args_addr = SetupGetItemInfoFunction(thread, argument_values);
317 
318  DiagnosticManager diagnostics;
319  ExecutionContext exe_ctx;
321  options.SetUnwindOnError(true);
322  options.SetIgnoreBreakpoints(true);
323  options.SetStopOthers(true);
324 #if __has_feature(address_sanitizer)
325  options.SetTimeout(process_sp->GetUtilityExpressionTimeout());
326 #else
327  options.SetTimeout(std::chrono::milliseconds(500));
328 #endif
329  options.SetTimeout(process_sp->GetUtilityExpressionTimeout());
330  options.SetTryAllThreads(false);
331  options.SetIsForUtilityExpr(true);
332  thread.CalculateExecutionContext(exe_ctx);
333 
335  error.SetErrorString("Unable to compile function to call "
336  "__introspection_dispatch_queue_item_get_info");
337  return return_value;
338  }
339 
340  ExpressionResults func_call_ret;
341  Value results;
342  FunctionCaller *func_caller = m_get_item_info_impl_code->GetFunctionCaller();
343  if (!func_caller) {
344  LLDB_LOGF(log, "Could not retrieve function caller for "
345  "__introspection_dispatch_queue_item_get_info.");
346  error.SetErrorString("Could not retrieve function caller for "
347  "__introspection_dispatch_queue_item_get_info.");
348  return return_value;
349  }
350 
351  func_call_ret = func_caller->ExecuteFunction(exe_ctx, &args_addr, options,
352  diagnostics, results);
353  if (func_call_ret != eExpressionCompleted || !error.Success()) {
354  LLDB_LOGF(log,
355  "Unable to call "
356  "__introspection_dispatch_queue_item_get_info(), got "
357  "ExpressionResults %d, error contains %s",
358  func_call_ret, error.AsCString(""));
359  error.SetErrorString("Unable to call "
360  "__introspection_dispatch_queue_get_item_info() for "
361  "list of queues");
362  return return_value;
363  }
364 
367  if (!error.Success() ||
368  return_value.item_buffer_ptr == LLDB_INVALID_ADDRESS) {
369  return_value.item_buffer_ptr = LLDB_INVALID_ADDRESS;
370  return return_value;
371  }
372 
375 
376  if (!error.Success()) {
377  return_value.item_buffer_ptr = LLDB_INVALID_ADDRESS;
378  return return_value;
379  }
380  LLDB_LOGF(log,
381  "AppleGetItemInfoHandler called "
382  "__introspection_dispatch_queue_item_get_info (page_to_free == "
383  "0x%" PRIx64 ", size = %" PRId64 "), returned page is at 0x%" PRIx64
384  ", size %" PRId64,
385  page_to_free, page_to_free_size, return_value.item_buffer_ptr,
386  return_value.item_buffer_size);
387 
388  return return_value;
389 }
lldb_private::Value::ValueType::Scalar
@ Scalar
A raw scalar value.
lldb_private::ExecutionContext
Definition: ExecutionContext.h:292
lldb_private::AppleGetItemInfoHandler::m_get_item_info_retbuffer_mutex
std::mutex m_get_item_info_retbuffer_mutex
Definition: AppleGetItemInfoHandler.h:106
lldb_private::Process::DeallocateMemory
Status DeallocateMemory(lldb::addr_t ptr)
The public interface to deallocating memory in the process.
Definition: Process.cpp:2333
FunctionCaller.h
lldb_private::EvaluateExpressionOptions::SetTimeout
void SetTimeout(const Timeout< std::micro > &timeout)
Definition: Target.h:349
lldb_private::AppleGetItemInfoHandler::SetupGetItemInfoFunction
lldb::addr_t SetupGetItemInfoFunction(Thread &thread, ValueList &get_item_info_arglist)
Definition: AppleGetItemInfoHandler.cpp:129
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:343
lldb_private::Process
Definition: Process.h:338
lldb_private::Thread::CalculateTarget
lldb::TargetSP CalculateTarget() override
Definition: Thread.cpp:1383
lldb_private::EvaluateExpressionOptions::SetIsForUtilityExpr
void SetIsForUtilityExpr(bool b)
Definition: Target.h:436
Module.h
lldb_private::EvaluateExpressionOptions
Definition: Target.h:281
lldb_private::ValueList
Definition: Value.h:157
lldb_private::Process::IsAlive
virtual bool IsAlive()
Check if a process is still alive.
Definition: Process.cpp:1084
lldb::addr_t
uint64_t addr_t
Definition: lldb-types.h:83
lldb_private::Thread::SafeToCallFunctions
virtual bool SafeToCallFunctions()
Check whether this thread is safe to run functions.
Definition: Thread.cpp:1641
lldb_private::AppleGetItemInfoHandler::m_get_item_info_impl_code
std::unique_ptr< UtilityFunction > m_get_item_info_impl_code
Definition: AppleGetItemInfoHandler.h:102
Process.h
lldb_private::Value::SetCompilerType
void SetCompilerType(const CompilerType &compiler_type)
Definition: Value.cpp:251
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:153
error
static llvm::raw_ostream & error(Stream &strm)
Definition: CommandReturnObject.cpp:17
lldb_private::ValueList::PushValue
void PushValue(const Value &value)
Definition: Value.cpp:665
lldb_private::Thread::CalculateProcess
lldb::ProcessSP CalculateProcess() override
Definition: Thread.cpp:1391
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:116
lldb_private::AppleGetItemInfoHandler::Detach
void Detach()
Definition: AppleGetItemInfoHandler.cpp:104
Log.h
TypeSystemClang.h
lldb_private::Thread
Definition: Thread.h:61
lldb::eExpressionCompleted
@ eExpressionCompleted
Definition: lldb-enumerations.h:271
StreamString.h
AppleGetItemInfoHandler.h
lldb::eBasicTypeInt
@ eBasicTypeInt
Definition: lldb-enumerations.h:761
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:2405
lldb_private::EvaluateExpressionOptions::SetTryAllThreads
void SetTryAllThreads(bool try_others=true)
Definition: Target.h:361
lldb_private::AppleGetItemInfoHandler::GetItemInfoReturnInfo::item_buffer_size
lldb::addr_t item_buffer_size
Definition: AppleGetItemInfoHandler.h:51
lldb_private::AppleGetItemInfoHandler::~AppleGetItemInfoHandler
~AppleGetItemInfoHandler()
lldb_private::AppleGetItemInfoHandler::m_process
lldb_private::Process * m_process
Definition: AppleGetItemInfoHandler.h:101
lldb::eBasicTypeVoid
@ eBasicTypeVoid
Definition: lldb-enumerations.h:749
lldb::eLanguageTypeObjC
@ eLanguageTypeObjC
Objective-C.
Definition: lldb-enumerations.h:453
lldb::eBasicTypeUnsignedLongLong
@ eBasicTypeUnsignedLongLong
Definition: lldb-enumerations.h:766
lldb_private::LLDBLog::SystemRuntime
@ SystemRuntime
lldb_private::EvaluateExpressionOptions::SetUnwindOnError
void SetUnwindOnError(bool unwind=false)
Definition: Target.h:328
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:1397
UtilityFunction.h
lldb_private::EvaluateExpressionOptions::SetIgnoreBreakpoints
void SetIgnoreBreakpoints(bool ignore=false)
Definition: Target.h:332
Symbol.h
lldb_private::AppleGetItemInfoHandler::m_get_item_info_function_mutex
std::mutex m_get_item_info_function_mutex
Definition: AppleGetItemInfoHandler.h:103
lldb_private::AppleGetItemInfoHandler::GetItemInfo
GetItemInfoReturnInfo GetItemInfo(Thread &thread, lldb::addr_t item, lldb::addr_t page_to_free, uint64_t page_to_free_size, lldb_private::Status &error)
Get the information about a work item by calling __introspection_dispatch_queue_item_get_info.
Definition: AppleGetItemInfoHandler.cpp:213
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::AppleGetItemInfoHandler::g_get_item_info_function_code
static const char * g_get_item_info_function_code
Definition: AppleGetItemInfoHandler.h:99
lldb_private::AppleGetItemInfoHandler::GetItemInfoReturnInfo::item_buffer_ptr
lldb::addr_t item_buffer_ptr
Definition: AppleGetItemInfoHandler.h:49
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:9797
lldb_private::AppleGetItemInfoHandler::GetItemInfoReturnInfo
Definition: AppleGetItemInfoHandler.h:48
LLDB_INVALID_ADDRESS
#define LLDB_INVALID_ADDRESS
Definition: lldb-defines.h:74
lldb_private::CompilerType::GetBasicTypeFromAST
CompilerType GetBasicTypeFromAST(lldb::BasicType basic_type) const
Create related types using the current type's AST.
Definition: CompilerType.cpp:474
lldb_private::CompilerType
Generic representation of a type in a programming language.
Definition: CompilerType.h:33
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:224
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:312
lldb_private::TypeSystemClang::GetBasicType
CompilerType GetBasicType(lldb::BasicType type)
Definition: TypeSystemClang.cpp:930
lldb_private::TypeSystemClang
A TypeSystem implementation based on Clang.
Definition: TypeSystemClang.h:105
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:2062
lldb_private::Log
Definition: Log.h:115
lldb_private::EvaluateExpressionOptions::SetStopOthers
void SetStopOthers(bool stop_others=true)
Definition: Target.h:365
lldb_private::Thread::GetStackFrameAtIndex
virtual lldb::StackFrameSP GetStackFrameAtIndex(uint32_t idx)
Definition: Thread.h:398
lldb_private::GetLog
Log * GetLog(Cat mask)
Retrieve the Log object for the channel associated with the given log enum.
Definition: Log.h:308
lldb_private::AppleGetItemInfoHandler::g_get_item_info_function_name
static const char * g_get_item_info_function_name
Definition: AppleGetItemInfoHandler.h:98
lldb
Definition: SBAddress.h:15
LLDB_LOG_ERROR
#define LLDB_LOG_ERROR(log, error,...)
Definition: Log.h:359
Value.h
LLDBLog.h
lldb_private::AppleGetItemInfoHandler::m_get_item_info_return_buffer_addr
lldb::addr_t m_get_item_info_return_buffer_addr
Definition: AppleGetItemInfoHandler.h:105
ExecutionContext.h
lldb_private::FunctionCaller
Definition: FunctionCaller.h:56