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 if (log) {
134 LLDB_LOGF(log,
135 "0x%16.16" PRIx64
136 ": static-type = '%s' has multiple matching dynamic "
137 "types, didn't find a C++ match\n",
138 in_value.GetPointerValue().address,
139 in_value.GetTypeName().AsCString());
140 }
141 }
142 if (type_info)
143 SetDynamicTypeInfo(vtable_info.addr, type_info);
144 return type_info;
145 }
146 }
147 return TypeAndOrName();
148}
149
151 // Check to make sure the class has a vtable.
152 CompilerType original_type = type;
153 if (type.IsPointerOrReferenceType()) {
154 CompilerType pointee_type = type.GetPointeeType();
155 if (pointee_type)
156 type = pointee_type;
157 }
158
159 // Make sure this is a class or a struct first by checking the type class
160 // bitfield that gets returned.
161 if ((type.GetTypeClass() & (eTypeClassStruct | eTypeClassClass)) == 0) {
162 return llvm::createStringError(
163 std::errc::invalid_argument,
164 "type \"%s\" is not a class or struct or a pointer to one",
165 original_type.GetTypeName().AsCString("<invalid>"));
166 }
167
168 // Check if the type has virtual functions by asking it if it is polymorphic.
169 if (!type.IsPolymorphicClass()) {
170 return llvm::createStringError(std::errc::invalid_argument,
171 "type \"%s\" doesn't have a vtable",
172 type.GetTypeName().AsCString("<invalid>"));
173 }
174 return llvm::Error::success();
175}
176
177// This function can accept both pointers or references to classes as well as
178// instances of classes. If you are using this function during dynamic type
179// detection, only valid ValueObjects that return true to
180// CouldHaveDynamicValue(...) should call this function and \a check_type
181// should be set to false. This function is also used by ValueObjectVTable
182// and is can pass in instances of classes which is not suitable for dynamic
183// type detection, these cases should pass true for \a check_type.
184llvm::Expected<LanguageRuntime::VTableInfo>
186
187 CompilerType type = in_value.GetCompilerType();
188 if (check_type) {
189 if (llvm::Error err = TypeHasVTable(type))
190 return std::move(err);
191 }
192 ExecutionContext exe_ctx(in_value.GetExecutionContextRef());
193 Process *process = exe_ctx.GetProcessPtr();
194 if (process == nullptr)
195 return llvm::createStringError(std::errc::invalid_argument,
196 "invalid process");
197
198 auto [original_ptr, address_type] =
200 ? in_value.GetPointerValue()
201 : in_value.GetAddressOf(/*scalar_is_load_address=*/true);
202 if (original_ptr == LLDB_INVALID_ADDRESS || address_type != eAddressTypeLoad)
203 return llvm::createStringError(std::errc::invalid_argument,
204 "failed to get the address of the value");
205
207 lldb::addr_t vtable_load_addr =
208 process->ReadPointerFromMemory(original_ptr, error);
209
210 if (!error.Success() || vtable_load_addr == LLDB_INVALID_ADDRESS)
211 return llvm::createStringError(
212 std::errc::invalid_argument,
213 "failed to read vtable pointer from memory at 0x%" PRIx64,
214 original_ptr);
215
216 // The vtable load address can have authentication bits with
217 // AArch64 targets on Darwin.
218 vtable_load_addr = process->FixDataAddress(vtable_load_addr);
219
220 // Find the symbol that contains the "vtable_load_addr" address
221 Address vtable_addr;
222 if (!process->GetTarget().ResolveLoadAddress(vtable_load_addr, vtable_addr))
223 return llvm::createStringError(std::errc::invalid_argument,
224 "failed to resolve vtable pointer 0x%" PRIx64
225 "to a section",
226 vtable_load_addr);
227
228 // Check our cache first to see if we already have this info
229 {
230 std::lock_guard<std::mutex> locker(m_mutex);
231 auto pos = m_vtable_info_map.find(vtable_addr);
232 if (pos != m_vtable_info_map.end())
233 return pos->second;
234 }
235
236 Symbol *symbol = vtable_addr.CalculateSymbolContextSymbol();
237 if (symbol == nullptr)
238 return llvm::createStringError(std::errc::invalid_argument,
239 "no symbol found for 0x%" PRIx64,
240 vtable_load_addr);
241 llvm::StringRef name = symbol->GetMangled().GetDemangledName().GetStringRef();
242 if (name.starts_with(vtable_demangled_prefix)) {
243 LanguageRuntime::VTableInfo info = {vtable_addr, symbol};
244 std::lock_guard<std::mutex> locker(m_mutex);
245 auto pos = m_vtable_info_map[vtable_addr] = info;
246 return info;
247 }
248 return llvm::createStringError(std::errc::invalid_argument,
249 "symbol found that contains 0x%" PRIx64
250 " is not a vtable symbol",
251 vtable_load_addr);
252}
253
255 ValueObject &in_value, lldb::DynamicValueType use_dynamic,
256 TypeAndOrName &class_type_or_name, Address &dynamic_address,
257 Value::ValueType &value_type) {
258 // For Itanium, if the type has a vtable pointer in the object, it will be at
259 // offset 0 in the object. That will point to the "address point" within the
260 // vtable (not the beginning of the vtable.) We can then look up the symbol
261 // containing this "address point" and that symbol's name demangled will
262 // contain the full class name. The second pointer above the "address point"
263 // is the "offset_to_top". We'll use that to get the start of the value
264 // object which holds the dynamic type.
265
266 // Check if we have a vtable pointer in this value. If we don't it will
267 // return an error, else it will return a valid resolved address. We don't
268 // want GetVTableInfo to check the type since we accept void * as a possible
269 // dynamic type and that won't pass the type check. We already checked the
270 // type above in CouldHaveDynamicValue(...).
271 llvm::Expected<LanguageRuntime::VTableInfo> vtable_info_or_err =
272 GetVTableInfo(in_value, /*check_type=*/false);
273 if (!vtable_info_or_err) {
274 llvm::consumeError(vtable_info_or_err.takeError());
275 return false;
276 }
277
278 const LanguageRuntime::VTableInfo &vtable_info = vtable_info_or_err.get();
279 class_type_or_name = GetTypeInfo(in_value, vtable_info);
280
281 if (!class_type_or_name)
282 return false;
283
284 CompilerType type = class_type_or_name.GetCompilerType();
285 // There can only be one type with a given name, so we've just found
286 // duplicate definitions, and this one will do as well as any other. We
287 // don't consider something to have a dynamic type if it is the same as
288 // the static type. So compare against the value we were handed.
289 if (!type)
290 return true;
291
292 if (TypeSystemClang::AreTypesSame(in_value.GetCompilerType(), type)) {
293 // The dynamic type we found was the same type, so we don't have a
294 // dynamic type here...
295 return false;
296 }
297
298 // The offset_to_top is two pointers above the vtable pointer.
299 Target &target = m_process->GetTarget();
300 const addr_t vtable_load_addr = vtable_info.addr.GetLoadAddress(&target);
301 if (vtable_load_addr == LLDB_INVALID_ADDRESS)
302 return false;
303 const uint32_t addr_byte_size = m_process->GetAddressByteSize();
304 const lldb::addr_t offset_to_top_location =
305 vtable_load_addr - 2 * addr_byte_size;
306 // Watch for underflow, offset_to_top_location should be less than
307 // vtable_load_addr
308 if (offset_to_top_location >= vtable_load_addr)
309 return false;
311 const int64_t offset_to_top = target.ReadSignedIntegerFromMemory(
312 offset_to_top_location, addr_byte_size, INT64_MIN, error);
313
314 if (offset_to_top == INT64_MIN)
315 return false;
316 // So the dynamic type is a value that starts at offset_to_top above
317 // the original address.
318 lldb::addr_t dynamic_addr =
319 in_value.GetPointerValue().address + offset_to_top;
320 if (!m_process->GetTarget().ResolveLoadAddress(dynamic_addr,
321 dynamic_address)) {
322 dynamic_address.SetRawAddress(dynamic_addr);
323 }
324 return true;
325}
326
328 std::vector<const char *> &names, bool catch_bp, bool throw_bp,
329 bool for_expressions) {
330 // One complication here is that most users DON'T want to stop at
331 // __cxa_allocate_expression, but until we can do anything better with
332 // predicting unwinding the expression parser does. So we have two forms of
333 // the exception breakpoints, one for expressions that leaves out
334 // __cxa_allocate_exception, and one that includes it. The
335 // SetExceptionBreakpoints does the latter, the CreateExceptionBreakpoint in
336 // the runtime the former.
337 static const char *g_catch_name = "__cxa_begin_catch";
338 static const char *g_throw_name1 = "__cxa_throw";
339 static const char *g_throw_name2 = "__cxa_rethrow";
340 static const char *g_exception_throw_name = "__cxa_allocate_exception";
341
342 if (catch_bp)
343 names.push_back(g_catch_name);
344
345 if (throw_bp) {
346 names.push_back(g_throw_name1);
347 names.push_back(g_throw_name2);
348 }
349
350 if (for_expressions)
351 names.push_back(g_exception_throw_name);
352}
353
355 FileSpecList &filter_modules, const Target &target) {
356 if (target.GetArchitecture().GetTriple().getVendor() == llvm::Triple::Apple) {
357 // Limit the number of modules that are searched for these breakpoints for
358 // Apple binaries.
359 filter_modules.EmplaceBack("libc++abi.dylib");
360 filter_modules.EmplaceBack("libSystem.B.dylib");
361 filter_modules.EmplaceBack("libc++abi.1.0.dylib");
362 filter_modules.EmplaceBack("libc++abi.1.dylib");
363 }
364}
365
368 if (!thread_sp->SafeToCallFunctions())
369 return {};
370
371 TypeSystemClangSP scratch_ts_sp =
373 if (!scratch_ts_sp)
374 return {};
375
376 CompilerType voidstar =
377 scratch_ts_sp->GetBasicType(eBasicTypeVoid).GetPointerType();
378
379 DiagnosticManager diagnostics;
380 ExecutionContext exe_ctx;
382
383 options.SetUnwindOnError(true);
384 options.SetIgnoreBreakpoints(true);
385 options.SetStopOthers(true);
386 options.SetTimeout(m_process->GetUtilityExpressionTimeout());
387 options.SetTryAllThreads(false);
388 thread_sp->CalculateExecutionContext(exe_ctx);
389
390 const ModuleList &modules = m_process->GetTarget().GetImages();
391 SymbolContextList contexts;
392 SymbolContext context;
393
395 ConstString("__cxa_current_exception_type"), eSymbolTypeCode, contexts);
396 contexts.GetContextAtIndex(0, context);
397 if (!context.symbol) {
398 return {};
399 }
400 Address addr = context.symbol->GetAddress();
401
403 FunctionCaller *function_caller =
404 m_process->GetTarget().GetFunctionCallerForLanguage(
405 eLanguageTypeC, voidstar, addr, ValueList(), "caller", error);
406
407 ExpressionResults func_call_ret;
408 Value results;
409 func_call_ret = function_caller->ExecuteFunction(exe_ctx, nullptr, options,
410 diagnostics, results);
411 if (func_call_ret != eExpressionCompleted || !error.Success()) {
412 return ValueObjectSP();
413 }
414
415 size_t ptr_size = m_process->GetAddressByteSize();
416 addr_t result_ptr = results.GetScalar().ULongLong(LLDB_INVALID_ADDRESS);
417 addr_t exception_addr =
418 m_process->ReadPointerFromMemory(result_ptr - ptr_size, error);
419
420 if (!error.Success()) {
421 return ValueObjectSP();
422 }
423
424 lldb_private::formatters::InferiorSizedWord exception_isw(exception_addr,
425 *m_process);
427 "exception", exception_isw.GetAsData(m_process->GetByteOrder()), exe_ctx,
428 voidstar);
429 ValueObjectSP dyn_exception =
430 exception->GetDynamicValue(eDynamicDontRunTarget);
431 // If we succeed in making a dynamic value, return that:
432 if (dyn_exception)
433 return dyn_exception;
434
435 return exception;
436}
437
439 const lldb_private::Address &vtable_addr) {
440 std::lock_guard<std::mutex> locker(m_mutex);
441 DynamicTypeCache::const_iterator pos = m_dynamic_type_map.find(vtable_addr);
442 if (pos == m_dynamic_type_map.end())
443 return TypeAndOrName();
444 else
445 return pos->second;
446}
447
449 const lldb_private::Address &vtable_addr, const TypeAndOrName &type_info) {
450 std::lock_guard<std::mutex> locker(m_mutex);
451 m_dynamic_type_map[vtable_addr] = type_info;
452}
static llvm::raw_ostream & error(Stream &strm)
static const char * vtable_demangled_prefix
#define LLDB_LOGF(log,...)
Definition Log.h:376
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:888
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:6102
lldb::addr_t ReadPointerFromMemory(lldb::addr_t vm_addr, Status &error)
Definition Process.cpp:2334
Target & GetTarget()
Get the target object pointer for this module.
Definition Process.h:1251
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:2300
bool ResolveLoadAddress(lldb::addr_t load_addr, Address &so_addr, uint32_t stop_id=SectionLoadHistory::eStopIDNow, bool allow_section_end=false)
Definition Target.cpp:3325
const ArchSpec & GetArchitecture() const
Definition Target.h:1183
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