LLDB mainline
ItaniumABIRuntime.cpp
Go to the documentation of this file.
1//===----------------------------------------------------------------------===//
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#include "ItaniumABIRuntime.h"
10
16
17using namespace lldb;
18using namespace lldb_private;
19
20static const char *vtable_demangled_prefix = "vtable for ";
21
23
26 const LanguageRuntime::VTableInfo &vtable_info) {
27 if (vtable_info.addr.IsSectionOffset()) {
28 // See if we have cached info for this type already
29 TypeAndOrName type_info = GetDynamicTypeInfo(vtable_info.addr);
30 if (type_info)
31 return type_info;
32
33 if (vtable_info.symbol) {
35 llvm::StringRef symbol_name =
37 LLDB_LOGF(log,
38 "0x%16.16" PRIx64
39 ": static-type = '%s' has vtable symbol '%s'\n",
40 in_value.GetPointerValue().address,
41 in_value.GetTypeName().GetCString(), symbol_name.str().c_str());
42 // We are a C++ class, that's good. Get the class name and look it
43 // up:
44 llvm::StringRef class_name = symbol_name;
45 class_name.consume_front(vtable_demangled_prefix);
46 // We know the class name is absolute, so tell FindTypes that by
47 // prefixing it with the root namespace:
48 std::string lookup_name("::");
49 lookup_name.append(class_name.data(), class_name.size());
50
51 type_info.SetName(class_name);
52 ConstString const_lookup_name(lookup_name);
53 TypeList class_types;
54 ModuleSP module_sp = vtable_info.symbol->CalculateSymbolContextModule();
55 // First look in the module that the vtable symbol came from and
56 // look for a single exact match.
57 TypeResults results;
58 TypeQuery query(const_lookup_name.GetStringRef(),
59 TypeQueryOptions::e_exact_match |
60 TypeQueryOptions::e_strict_namespaces |
61 TypeQueryOptions::e_find_one);
62 if (module_sp) {
63 module_sp->FindTypes(query, results);
64 TypeSP type_sp = results.GetFirstType();
65 if (type_sp)
66 class_types.Insert(type_sp);
67 }
68
69 // If we didn't find a symbol, then move on to the entire module
70 // list in the target and get as many unique matches as possible
71 if (class_types.Empty()) {
72 query.SetFindOne(false);
73 m_process->GetTarget().GetImages().FindTypes(nullptr, query, results);
74 for (const auto &type_sp : results.GetTypeMap().Types())
75 class_types.Insert(type_sp);
76 }
77
78 lldb::TypeSP type_sp;
79 if (class_types.Empty()) {
80 LLDB_LOGF(log, "0x%16.16" PRIx64 ": is not dynamic\n",
81 in_value.GetPointerValue().address);
82 return TypeAndOrName();
83 }
84 if (class_types.GetSize() == 1) {
85 type_sp = class_types.GetTypeAtIndex(0);
86 if (type_sp) {
88 type_sp->GetForwardCompilerType())) {
89 LLDB_LOGF(log,
90 "0x%16.16" PRIx64
91 ": static-type = '%s' has dynamic type: uid={0x%" PRIx64
92 "}, type-name='%s'\n",
93 in_value.GetPointerValue().address,
94 in_value.GetTypeName().AsCString(), type_sp->GetID(),
95 type_sp->GetName().GetCString());
96 type_info.SetTypeSP(type_sp);
97 }
98 }
99 } else {
100 size_t i;
101 if (log) {
102 for (i = 0; i < class_types.GetSize(); i++) {
103 type_sp = class_types.GetTypeAtIndex(i);
104 if (type_sp) {
105 LLDB_LOGF(log,
106 "0x%16.16" PRIx64
107 ": static-type = '%s' has multiple matching dynamic "
108 "types: uid={0x%" PRIx64 "}, type-name='%s'\n",
109 in_value.GetPointerValue().address,
110 in_value.GetTypeName().AsCString(), type_sp->GetID(),
111 type_sp->GetName().GetCString());
112 }
113 }
114 }
115
116 for (i = 0; i < class_types.GetSize(); i++) {
117 type_sp = class_types.GetTypeAtIndex(i);
118 if (type_sp) {
120 type_sp->GetForwardCompilerType())) {
121 LLDB_LOGF(log,
122 "0x%16.16" PRIx64 ": static-type = '%s' has multiple "
123 "matching dynamic types, picking "
124 "this one: uid={0x%" PRIx64 "}, type-name='%s'\n",
125 in_value.GetPointerValue().address,
126 in_value.GetTypeName().AsCString(), type_sp->GetID(),
127 type_sp->GetName().GetCString());
128 type_info.SetTypeSP(type_sp);
129 }
130 }
131 }
132
133 LLDB_LOGF(log,
134 "0x%16.16" PRIx64
135 ": static-type = '%s' has multiple matching dynamic "
136 "types, didn't find a C++ match\n",
137 in_value.GetPointerValue().address,
138 in_value.GetTypeName().AsCString());
139 }
140 if (type_info)
141 SetDynamicTypeInfo(vtable_info.addr, type_info);
142 return type_info;
143 }
144 }
145 return TypeAndOrName();
146}
147
149 // Check to make sure the class has a vtable.
150 CompilerType original_type = type;
151 if (type.IsPointerOrReferenceType()) {
152 CompilerType pointee_type = type.GetPointeeType();
153 if (pointee_type)
154 type = pointee_type;
155 }
156
157 // Make sure this is a class or a struct first by checking the type class
158 // bitfield that gets returned.
159 if ((type.GetTypeClass() & (eTypeClassStruct | eTypeClassClass)) == 0) {
160 return llvm::createStringError(
161 std::errc::invalid_argument,
162 "type \"%s\" is not a class or struct or a pointer to one",
163 original_type.GetTypeName().AsCString("<invalid>"));
164 }
165
166 // Check if the type has virtual functions by asking it if it is polymorphic.
167 if (!type.IsPolymorphicClass()) {
168 return llvm::createStringError(std::errc::invalid_argument,
169 "type \"%s\" doesn't have a vtable",
170 type.GetTypeName().AsCString("<invalid>"));
171 }
172 return llvm::Error::success();
173}
174
175// This function can accept both pointers or references to classes as well as
176// instances of classes. If you are using this function during dynamic type
177// detection, only valid ValueObjects that return true to
178// CouldHaveDynamicValue(...) should call this function and \a check_type
179// should be set to false. This function is also used by ValueObjectVTable
180// and is can pass in instances of classes which is not suitable for dynamic
181// type detection, these cases should pass true for \a check_type.
182llvm::Expected<LanguageRuntime::VTableInfo>
184
185 CompilerType type = in_value.GetCompilerType();
186 if (check_type) {
187 if (llvm::Error err = TypeHasVTable(type))
188 return std::move(err);
189 }
190 ExecutionContext exe_ctx(in_value.GetExecutionContextRef());
191 Process *process = exe_ctx.GetProcessPtr();
192 if (process == nullptr)
193 return llvm::createStringError(std::errc::invalid_argument,
194 "invalid process");
195
196 auto [original_ptr, address_type] =
198 ? in_value.GetPointerValue()
199 : in_value.GetAddressOf(/*scalar_is_load_address=*/true);
200 if (original_ptr == LLDB_INVALID_ADDRESS || address_type != eAddressTypeLoad)
201 return llvm::createStringError(std::errc::invalid_argument,
202 "failed to get the address of the value");
203
205 lldb::addr_t vtable_load_addr =
206 process->ReadPointerFromMemory(original_ptr, error);
207
208 if (!error.Success() || vtable_load_addr == LLDB_INVALID_ADDRESS)
209 return llvm::createStringError(
210 std::errc::invalid_argument,
211 "failed to read vtable pointer from memory at 0x%" PRIx64,
212 original_ptr);
213
214 // The vtable load address can have authentication bits with
215 // AArch64 targets on Darwin.
216 vtable_load_addr = process->FixDataAddress(vtable_load_addr);
217
218 // Find the symbol that contains the "vtable_load_addr" address
219 Address vtable_addr;
220 if (!process->GetTarget().ResolveLoadAddress(vtable_load_addr, vtable_addr))
221 return llvm::createStringError(std::errc::invalid_argument,
222 "failed to resolve vtable pointer 0x%" PRIx64
223 "to a section",
224 vtable_load_addr);
225
226 // Check our cache first to see if we already have this info
227 {
228 std::lock_guard<std::mutex> locker(m_mutex);
229 auto pos = m_vtable_info_map.find(vtable_addr);
230 if (pos != m_vtable_info_map.end())
231 return pos->second;
232 }
233
234 Symbol *symbol = vtable_addr.CalculateSymbolContextSymbol();
235 if (symbol == nullptr)
236 return llvm::createStringError(std::errc::invalid_argument,
237 "no symbol found for 0x%" PRIx64,
238 vtable_load_addr);
239 llvm::StringRef name = symbol->GetMangled().GetDemangledName().GetStringRef();
240 if (name.starts_with(vtable_demangled_prefix)) {
241 LanguageRuntime::VTableInfo info = {vtable_addr, symbol};
242 std::lock_guard<std::mutex> locker(m_mutex);
243 auto pos = m_vtable_info_map[vtable_addr] = info;
244 return info;
245 }
246 return llvm::createStringError(std::errc::invalid_argument,
247 "symbol found that contains 0x%" PRIx64
248 " is not a vtable symbol",
249 vtable_load_addr);
250}
251
253 ValueObject &in_value, lldb::DynamicValueType use_dynamic,
254 TypeAndOrName &class_type_or_name, Address &dynamic_address,
255 Value::ValueType &value_type) {
256 // For Itanium, if the type has a vtable pointer in the object, it will be at
257 // offset 0 in the object. That will point to the "address point" within the
258 // vtable (not the beginning of the vtable.) We can then look up the symbol
259 // containing this "address point" and that symbol's name demangled will
260 // contain the full class name. The second pointer above the "address point"
261 // is the "offset_to_top". We'll use that to get the start of the value
262 // object which holds the dynamic type.
263
264 // Check if we have a vtable pointer in this value. If we don't it will
265 // return an error, else it will return a valid resolved address. We don't
266 // want GetVTableInfo to check the type since we accept void * as a possible
267 // dynamic type and that won't pass the type check. We already checked the
268 // type above in CouldHaveDynamicValue(...).
269 llvm::Expected<LanguageRuntime::VTableInfo> vtable_info_or_err =
270 GetVTableInfo(in_value, /*check_type=*/false);
271 if (!vtable_info_or_err) {
272 llvm::consumeError(vtable_info_or_err.takeError());
273 return false;
274 }
275
276 const LanguageRuntime::VTableInfo &vtable_info = vtable_info_or_err.get();
277 class_type_or_name = GetTypeInfo(in_value, vtable_info);
278
279 if (!class_type_or_name)
280 return false;
281
282 CompilerType type = class_type_or_name.GetCompilerType();
283 // There can only be one type with a given name, so we've just found
284 // duplicate definitions, and this one will do as well as any other. We
285 // don't consider something to have a dynamic type if it is the same as
286 // the static type. So compare against the value we were handed.
287 if (!type)
288 return true;
289
290 if (TypeSystemClang::AreTypesSame(in_value.GetCompilerType(), type)) {
291 // The dynamic type we found was the same type, so we don't have a
292 // dynamic type here...
293 return false;
294 }
295
296 // The offset_to_top is two pointers above the vtable pointer.
297 Target &target = m_process->GetTarget();
298 const addr_t vtable_load_addr = vtable_info.addr.GetLoadAddress(&target);
299 if (vtable_load_addr == LLDB_INVALID_ADDRESS)
300 return false;
301 const uint32_t addr_byte_size = m_process->GetAddressByteSize();
302 const lldb::addr_t offset_to_top_location =
303 vtable_load_addr - 2 * addr_byte_size;
304 // Watch for underflow, offset_to_top_location should be less than
305 // vtable_load_addr
306 if (offset_to_top_location >= vtable_load_addr)
307 return false;
309 const int64_t offset_to_top = target.ReadSignedIntegerFromMemory(
310 Address(offset_to_top_location), addr_byte_size, INT64_MIN, error);
311
312 if (offset_to_top == INT64_MIN)
313 return false;
314 // So the dynamic type is a value that starts at offset_to_top above
315 // the original address.
316 lldb::addr_t dynamic_addr =
317 in_value.GetPointerValue().address + offset_to_top;
318 if (!m_process->GetTarget().ResolveLoadAddress(dynamic_addr,
319 dynamic_address)) {
320 dynamic_address.SetRawAddress(dynamic_addr);
321 }
322 return true;
323}
324
326 std::vector<const char *> &names, bool catch_bp, bool throw_bp,
327 bool for_expressions) {
328 // One complication here is that most users DON'T want to stop at
329 // __cxa_allocate_expression, but until we can do anything better with
330 // predicting unwinding the expression parser does. So we have two forms of
331 // the exception breakpoints, one for expressions that leaves out
332 // __cxa_allocate_exception, and one that includes it. The
333 // SetExceptionBreakpoints does the latter, the CreateExceptionBreakpoint in
334 // the runtime the former.
335 static const char *g_catch_name = "__cxa_begin_catch";
336 static const char *g_throw_name1 = "__cxa_throw";
337 static const char *g_throw_name2 = "__cxa_rethrow";
338 static const char *g_exception_throw_name = "__cxa_allocate_exception";
339
340 if (catch_bp)
341 names.push_back(g_catch_name);
342
343 if (throw_bp) {
344 names.push_back(g_throw_name1);
345 names.push_back(g_throw_name2);
346 }
347
348 if (for_expressions)
349 names.push_back(g_exception_throw_name);
350}
351
353 FileSpecList &filter_modules, const Target &target) {
354 if (target.GetArchitecture().GetTriple().getVendor() == llvm::Triple::Apple) {
355 // Limit the number of modules that are searched for these breakpoints for
356 // Apple binaries.
357 filter_modules.EmplaceBack("libc++abi.dylib");
358 filter_modules.EmplaceBack("libSystem.B.dylib");
359 filter_modules.EmplaceBack("libc++abi.1.0.dylib");
360 filter_modules.EmplaceBack("libc++abi.1.dylib");
361 }
362}
363
366 if (!thread_sp->SafeToCallFunctions())
367 return {};
368
369 TypeSystemClangSP scratch_ts_sp =
371 if (!scratch_ts_sp)
372 return {};
373
374 CompilerType voidstar =
375 scratch_ts_sp->GetBasicType(eBasicTypeVoid).GetPointerType();
376
377 DiagnosticManager diagnostics;
378 ExecutionContext exe_ctx;
380
381 options.SetUnwindOnError(true);
382 options.SetIgnoreBreakpoints(true);
383 options.SetStopOthers(true);
384 options.SetTimeout(m_process->GetUtilityExpressionTimeout());
385 options.SetTryAllThreads(false);
386 thread_sp->CalculateExecutionContext(exe_ctx);
387
388 const ModuleList &modules = m_process->GetTarget().GetImages();
389 SymbolContextList contexts;
390 SymbolContext context;
391
393 ConstString("__cxa_current_exception_type"), eSymbolTypeCode, contexts);
394 contexts.GetContextAtIndex(0, context);
395 if (!context.symbol) {
396 return {};
397 }
398 Address addr = context.symbol->GetAddress();
399
401 FunctionCaller *function_caller =
402 m_process->GetTarget().GetFunctionCallerForLanguage(
403 eLanguageTypeC, voidstar, addr, ValueList(), "caller", error);
404
405 ExpressionResults func_call_ret;
406 Value results;
407 func_call_ret = function_caller->ExecuteFunction(exe_ctx, nullptr, options,
408 diagnostics, results);
409 if (func_call_ret != eExpressionCompleted || !error.Success()) {
410 return ValueObjectSP();
411 }
412
413 size_t ptr_size = m_process->GetAddressByteSize();
414 addr_t result_ptr = results.GetScalar().ULongLong(LLDB_INVALID_ADDRESS);
415 addr_t exception_addr =
416 m_process->ReadPointerFromMemory(result_ptr - ptr_size, error);
417
418 if (!error.Success()) {
419 return ValueObjectSP();
420 }
421
422 lldb_private::formatters::InferiorSizedWord exception_isw(exception_addr,
423 *m_process);
425 "exception", exception_isw.GetAsData(m_process->GetByteOrder()), exe_ctx,
426 voidstar);
427 ValueObjectSP dyn_exception =
428 exception->GetDynamicValue(eDynamicDontRunTarget);
429 // If we succeed in making a dynamic value, return that:
430 if (dyn_exception)
431 return dyn_exception;
432
433 return exception;
434}
435
437 const lldb_private::Address &vtable_addr) {
438 std::lock_guard<std::mutex> locker(m_mutex);
439 DynamicTypeCache::const_iterator pos = m_dynamic_type_map.find(vtable_addr);
440 if (pos == m_dynamic_type_map.end())
441 return TypeAndOrName();
442 else
443 return pos->second;
444}
445
447 const lldb_private::Address &vtable_addr, const TypeAndOrName &type_info) {
448 std::lock_guard<std::mutex> locker(m_mutex);
449 m_dynamic_type_map[vtable_addr] = type_info;
450}
static llvm::raw_ostream & error(Stream &strm)
static const char * vtable_demangled_prefix
#define LLDB_LOGF(log,...)
Definition Log.h:383
A section + offset based address class.
Definition Address.h:62
lldb::addr_t GetLoadAddress(Target *target) const
Get the load address.
Definition Address.cpp:301
void SetRawAddress(lldb::addr_t addr)
Definition Address.h:447
bool IsSectionOffset() const
Check if an address is section offset.
Definition Address.h:342
Symbol * CalculateSymbolContextSymbol() const
Definition Address.cpp:887
llvm::Triple & GetTriple()
Architecture triple accessor.
Definition ArchSpec.h:457
Generic representation of a type in a programming language.
lldb::TypeClass GetTypeClass() const
ConstString GetTypeName(bool BaseOnly=false) const
CompilerType GetPointeeType() const
If this type is a pointer type, return the type that the pointer points to, else return an invalid ty...
bool IsPointerOrReferenceType(CompilerType *pointee_type=nullptr) const
A uniqued constant string class.
Definition ConstString.h:40
const char * AsCString(const char *value_if_empty=nullptr) const
Get the string value as a C string.
llvm::StringRef GetStringRef() const
Get the string value as a llvm::StringRef.
const char * GetCString() const
Get the string value as a C string.
void SetUnwindOnError(bool unwind=false)
Definition Target.h:373
void SetTryAllThreads(bool try_others=true)
Definition Target.h:406
void SetTimeout(const Timeout< std::micro > &timeout)
Definition Target.h:394
void SetStopOthers(bool stop_others=true)
Definition Target.h:410
void SetIgnoreBreakpoints(bool ignore=false)
Definition Target.h:377
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
Process * GetProcessPtr() const
Returns a pointer to the process object.
A file collection class.
void EmplaceBack(Args &&...args)
Inserts a new FileSpec into the FileSpecList constructed in-place with the given arguments.
Encapsulates a function that can be called.
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.
TypeAndOrName GetDynamicTypeInfo(const lldb_private::Address &vtable_addr)
lldb::ValueObjectSP GetExceptionObjectForThread(lldb::ThreadSP thread_sp)
void AppendExceptionBreakpointFilterModules(FileSpecList &list, const Target &target)
void AppendExceptionBreakpointFunctions(std::vector< const char * > &names, bool catch_bp, bool throw_bp, bool for_expressions)
llvm::Expected< LanguageRuntime::VTableInfo > GetVTableInfo(ValueObject &in_value, bool check_type)
bool GetDynamicTypeAndAddress(ValueObject &in_value, lldb::DynamicValueType use_dynamic, TypeAndOrName &class_type_or_name, Address &dynamic_address, Value::ValueType &value_type)
void SetDynamicTypeInfo(const lldb_private::Address &vtable_addr, const TypeAndOrName &type_info)
llvm::Error TypeHasVTable(CompilerType type)
TypeAndOrName GetTypeInfo(ValueObject &in_value, const LanguageRuntime::VTableInfo &vtable_info)
ConstString GetDemangledName() const
Demangled name get accessor.
Definition Mangled.cpp:284
A collection class for Module objects.
Definition ModuleList.h:125
void FindSymbolsWithNameAndType(ConstString name, lldb::SymbolType symbol_type, SymbolContextList &sc_list) const
A plug-in interface definition class for debugging a process.
Definition Process.h:354
lldb::addr_t FixDataAddress(lldb::addr_t pc)
Definition Process.cpp:6091
lldb::addr_t ReadPointerFromMemory(lldb::addr_t vm_addr, Status &error)
Definition Process.cpp:2329
Target & GetTarget()
Get the target object pointer for this module.
Definition Process.h:1250
unsigned long long ULongLong(unsigned long long fail_value=0) const
Definition Scalar.cpp:365
static lldb::TypeSystemClangSP GetForTarget(Target &target, std::optional< IsolatedASTKind > ast_kind=DefaultAST, bool create_on_demand=true)
Returns the scratch TypeSystemClang for the given target.
An error handling class.
Definition Status.h:118
Defines a list of symbol context objects.
bool GetContextAtIndex(size_t idx, SymbolContext &sc) const
Get accessor for a symbol context at index idx.
Defines a symbol context baton that can be handed other debug core functions.
Symbol * symbol
The Symbol for a given query.
lldb::ModuleSP CalculateSymbolContextModule() override
Definition Symbol.cpp:408
Mangled & GetMangled()
Definition Symbol.h:147
Address GetAddress() const
Definition Symbol.h:89
int64_t ReadSignedIntegerFromMemory(const Address &addr, size_t integer_byte_size, int64_t fail_value, Status &error, bool force_live_memory=false)
Definition Target.cpp:2295
bool ResolveLoadAddress(lldb::addr_t load_addr, Address &so_addr, uint32_t stop_id=SectionLoadHistory::eStopIDNow, bool allow_section_end=false)
Definition Target.cpp:3327
const ArchSpec & GetArchitecture() const
Definition Target.h:1182
Sometimes you can find the name of the type corresponding to an object, but we don't have debug infor...
Definition Type.h:779
void SetName(ConstString type_name)
Definition Type.cpp:902
CompilerType GetCompilerType() const
Definition Type.h:793
void SetTypeSP(lldb::TypeSP type_sp)
Definition Type.cpp:914
uint32_t GetSize() const
Definition TypeList.cpp:60
bool Empty() const
Definition TypeList.h:37
lldb::TypeSP GetTypeAtIndex(uint32_t idx)
Definition TypeList.cpp:66
void Insert(const lldb::TypeSP &type)
Definition TypeList.cpp:27
TypeIterable Types() const
Definition TypeMap.h:50
A class that contains all state required for type lookups.
Definition Type.h:104
void SetFindOne(bool b)
Definition Type.h:299
This class tracks the state and results of a TypeQuery.
Definition Type.h:344
TypeMap & GetTypeMap()
Definition Type.h:386
lldb::TypeSP GetFirstType() const
Definition Type.h:385
static bool AreTypesSame(CompilerType type1, CompilerType type2, bool ignore_qualifiers=false)
static bool IsCXXClassType(const CompilerType &type)
virtual ConstString GetTypeName()
static lldb::ValueObjectSP CreateValueObjectFromData(llvm::StringRef name, const DataExtractor &data, const ExecutionContext &exe_ctx, CompilerType type)
CompilerType GetCompilerType()
const ExecutionContextRef & GetExecutionContextRef() const
virtual AddrAndType GetAddressOf(bool scalar_is_load_address=true)
const Scalar & GetScalar() const
See comment on m_scalar to understand what GetScalar returns.
Definition Value.h:113
ValueType
Type that describes Value::m_value.
Definition Value.h:41
#define LLDB_INVALID_ADDRESS
A class that represents a running process on the host machine.
Log * GetLog(Cat mask)
Retrieve the Log object for the channel associated with the given log enum.
Definition Log.h:332
@ eAddressTypeLoad
Address is an address as in the current target inferior process.
std::shared_ptr< lldb_private::Thread > ThreadSP
std::shared_ptr< lldb_private::ValueObject > ValueObjectSP
@ eLanguageTypeC
Non-standardized C, such as K&R.
ExpressionResults
The results of expression evaluation.
@ eExpressionCompleted
std::shared_ptr< lldb_private::Type > TypeSP
std::shared_ptr< lldb_private::TypeSystemClang > TypeSystemClangSP
uint64_t addr_t
Definition lldb-types.h:80
@ eDynamicDontRunTarget
std::shared_ptr< lldb_private::Module > ModuleSP
Symbol * symbol
Address of the vtable's virtual function table.
DataExtractor GetAsData(lldb::ByteOrder byte_order=lldb::eByteOrderInvalid) const