19#include "llvm/Support/FormatAdapters.h"
34 value_sp = dynamic_sp;
40 value_sp = synthetic_sp;
46static llvm::Expected<lldb::TypeSystemSP>
48 auto stack_frame = ctx->CalculateStackFrame();
50 return llvm::createStringError(
"no stack frame in this context");
52 stack_frame->GetSymbolContext(lldb::eSymbolContextCompUnit);
55 symbol_context = stack_frame->GetSymbolContext(lldb::eSymbolContextModule);
56 return symbol_context.
module_sp->GetTypeSystemForLanguage(language);
62 return type_system.get()->GetBasicTypeFromAST(basic_type);
69 llvm::StringRef name) {
79llvm::Expected<lldb::ValueObjectSP>
82 return llvm::make_error<DILDiagnosticError>(
m_expr,
"invalid value object",
84 llvm::Expected<lldb::TypeSystemSP> type_system =
87 return type_system.takeError();
90 if (valobj->IsBitfield()) {
95 uint32_t bitfield_size = valobj->GetBitfieldBitSize();
98 if (bitfield_size > 0 && in_type.
IsInteger()) {
102 llvm::Expected<uint64_t> int_bit_size =
105 return int_bit_size.takeError();
106 llvm::Expected<uint64_t> uint_bit_size =
109 return int_bit_size.takeError();
110 if (bitfield_size < *int_bit_size ||
111 (in_type.
IsSigned() && bitfield_size == *int_bit_size))
112 return valobj->CastToBasicType(int_type);
113 if (bitfield_size <= *uint_bit_size)
114 return valobj->CastToBasicType(uint_type);
117 bool resolved = valobj->ResolveValue(scalar);
119 return llvm::createStringError(
"invalid scalar value");
128 if (valobj->GetCompilerType().IsInteger() ||
129 valobj->GetCompilerType().IsUnscopedEnumerationType()) {
130 llvm::Expected<CompilerType> promoted_type =
131 type_system.get()->DoIntegralPromotion(valobj->GetCompilerType(),
134 return promoted_type.takeError();
135 if (!promoted_type->CompareTypes(valobj->GetCompilerType()))
136 return valobj->CastToBasicType(*promoted_type);
145 std::vector<lldb::VariableSP> possible_matches;
148 llvm::StringRef str_ref_name = var_sp->GetName().GetStringRef();
150 str_ref_name.consume_front(
"::");
156 if (var_sp->NameMatches(name))
157 possible_matches.push_back(var_sp);
161 if (possible_matches.size() > 0)
162 return possible_matches[0];
168 llvm::StringRef name_ref, std::shared_ptr<StackFrame> stack_frame,
172 stack_frame->GetSymbolContext(lldb::eSymbolContextCompUnit);
177 name_ref.consume_front(
"::");
184 stack_frame->GetValueObjectForFrameVariable(var_sp, use_dynamic);
192 target_sp->GetImages().FindGlobalVariables(
193 ConstString(name_ref), std::numeric_limits<uint32_t>::max(),
196 if (!modules_var_list.
Empty()) {
209 std::shared_ptr<StackFrame> stack_frame,
213 if (name_ref.consume_front(
"$")) {
218 if (
const RegisterInfo *reg_info = reg_ctx->GetRegisterInfoByName(name_ref))
224 if (!name_ref.contains(
"::")) {
228 stack_frame->GetInScopeVariableList(
false));
233 variable_list->FindVariable(
ConstString(name_ref));
236 stack_frame->GetValueObjectForFrameVariable(var_sp, use_dynamic);
244 lldb::eSymbolContextFunction | lldb::eSymbolContextBlock);
246 value_sp = stack_frame->FindVariable(
ConstString(ivar_name));
248 value_sp = value_sp->GetChildMemberWithName(name_ref);
257 std::shared_ptr<StackFrame> frame_sp,
259 bool fragile_ivar,
bool check_ptr_vs_member)
267 auto value_or_error = node.
Accept(
this);
269 if (value_or_error && !*value_or_error)
270 return llvm::make_error<DILDiagnosticError>(
m_expr,
"invalid value object",
274 return value_or_error;
277llvm::Expected<lldb::ValueObjectSP>
279 auto valobj_or_err =
Evaluate(node);
281 return valobj_or_err;
285 if (valobj->GetCompilerType().IsReferenceType()) {
286 valobj = valobj->Dereference(
error);
288 return error.ToError();
293llvm::Expected<lldb::ValueObjectSP>
305 llvm::formatv(
"use of undeclared identifier '{0}'", node.
GetName());
306 return llvm::make_error<DILDiagnosticError>(
313llvm::Expected<lldb::ValueObjectSP>
326 operand = dynamic_op;
332 child_sp = synth_obj_sp->Dereference(
error);
336 return llvm::make_error<DILDiagnosticError>(
m_expr,
error.AsCString(),
345 return llvm::make_error<DILDiagnosticError>(
m_expr,
error.AsCString(),
351 if (operand->GetCompilerType().IsReferenceType()) {
352 operand = operand->Dereference(
error);
354 return error.ToError();
356 llvm::Expected<lldb::ValueObjectSP> conv_op =
364 llvm::formatv(
"invalid argument type '{0}' to unary expression",
366 return llvm::make_error<DILDiagnosticError>(
m_expr, errMsg,
370 bool resolved = operand->ResolveValue(scalar);
377 m_target, scalar, operand->GetCompilerType(),
"result");
381 if (operand->GetCompilerType().IsReferenceType()) {
382 operand = operand->Dereference(
error);
384 return error.ToError();
386 llvm::Expected<lldb::ValueObjectSP> conv_op =
396 llvm::formatv(
"invalid argument type '{0}' to unary expression",
398 return llvm::make_error<DILDiagnosticError>(
m_expr, errMsg,
404 return llvm::make_error<DILDiagnosticError>(
m_expr,
"invalid unary operation",
408llvm::Expected<lldb::ValueObjectSP>
421 const uint32_t pointer_type_flags =
422 base->GetCompilerType().GetTypeInfo(
nullptr);
423 if ((pointer_type_flags & lldb::eTypeIsObjC) &&
424 (pointer_type_flags & lldb::eTypeIsPointer)) {
433 if (!base->IsPointerType() && base->HasSyntheticValue()) {
436 base->GetSyntheticValue()->Dereference(deref_error);
437 synth_deref_sp && deref_error.
Success()) {
438 base = std::move(synth_deref_sp);
440 if (!base || deref_error.
Fail()) {
441 std::string errMsg = llvm::formatv(
442 "Failed to dereference synthetic value: {0}", deref_error);
443 return llvm::make_error<DILDiagnosticError>(
449 std::string errMsg =
"Failed to dereference synthetic value";
450 return llvm::make_error<DILDiagnosticError>(
458 bool base_is_ptr = base->IsPointerType();
460 if (expr_is_ptr != base_is_ptr) {
463 llvm::formatv(
"member reference type {0} is a pointer; "
464 "did you mean to use '->'?",
465 base->GetCompilerType().TypeDescription());
466 return llvm::make_error<DILDiagnosticError>(
470 llvm::formatv(
"member reference type {0} is not a pointer; "
471 "did you mean to use '.'?",
472 base->GetCompilerType().TypeDescription());
473 return llvm::make_error<DILDiagnosticError>(
483 field_obj = base->GetSyntheticValue();
485 field_obj = field_obj->GetChildMemberWithName(node.
GetFieldName());
489 std::string errMsg = llvm::formatv(
490 "\"{0}\" is not a member of \"({1}) {2}\"", node.
GetFieldName(),
491 base->GetTypeName().AsCString(
"<invalid type>"), base->GetName());
492 return llvm::make_error<DILDiagnosticError>(
502 field_obj = dynamic_val_sp;
508 if (node.
GetIsArrow() && base->IsPointerType())
510 std::string errMsg = llvm::formatv(
511 "\"{0}\" is not a member of \"({1}) {2}\"", node.
GetFieldName(),
512 base->GetTypeName().AsCString(
"<invalid type>"), base->GetName());
513 return llvm::make_error<DILDiagnosticError>(
517llvm::Expected<lldb::ValueObjectSP>
524 if (!idx->GetCompilerType().IsIntegerOrUnscopedEnumerationType()) {
525 return llvm::make_error<DILDiagnosticError>(
530 uint64_t child_idx = idx->GetValueAsUnsigned(0);
538 CompilerType base_type = base->GetCompilerType().GetNonReferenceType();
539 base->GetExpressionPath(var_expr_path_strm);
540 bool is_incomplete_array =
false;
542 bool is_objc_pointer =
true;
545 is_objc_pointer =
false;
546 else if (!base->GetCompilerType().IsPointerType())
547 is_objc_pointer =
false;
550 std::string err_msg = llvm::formatv(
551 "\"({0}) {1}\" is an Objective-C pointer, and cannot be subscripted",
552 base->GetTypeName().AsCString(
"<invalid type>"),
554 return llvm::make_error<DILDiagnosticError>(
m_expr, std::move(err_msg),
557 if (is_objc_pointer) {
559 if (!synthetic || synthetic == base) {
560 std::string err_msg =
561 llvm::formatv(
"\"({0}) {1}\" is not an array type",
562 base->GetTypeName().AsCString(
"<invalid type>"),
564 return llvm::make_error<DILDiagnosticError>(
m_expr, std::move(err_msg),
567 if (
static_cast<uint32_t
>(child_idx) >=
568 synthetic->GetNumChildrenIgnoringErrors()) {
569 std::string err_msg = llvm::formatv(
570 "array index {0} is not valid for \"({1}) {2}\"", child_idx,
571 base->GetTypeName().AsCString(
"<invalid type>"),
573 return llvm::make_error<DILDiagnosticError>(
m_expr, std::move(err_msg),
576 child_valobj_sp = synthetic->GetChildAtIndex(child_idx);
577 if (!child_valobj_sp) {
578 std::string err_msg = llvm::formatv(
579 "array index {0} is not valid for \"({1}) {2}\"", child_idx,
580 base->GetTypeName().AsCString(
"<invalid type>"),
582 return llvm::make_error<DILDiagnosticError>(
m_expr, std::move(err_msg),
586 if (
auto dynamic_sp = child_valobj_sp->GetDynamicValue(
m_use_dynamic))
587 child_valobj_sp = std::move(dynamic_sp);
589 return child_valobj_sp;
592 child_valobj_sp = base->GetSyntheticArrayMember(child_idx,
true);
593 if (!child_valobj_sp) {
594 std::string err_msg = llvm::formatv(
595 "failed to use pointer as array for index {0} for "
597 child_idx, base->GetTypeName().AsCString(
"<invalid type>"),
600 err_msg =
"subscript of pointer to incomplete type 'void'";
601 return llvm::make_error<DILDiagnosticError>(
m_expr, std::move(err_msg),
604 }
else if (base_type.
IsArrayType(
nullptr,
nullptr, &is_incomplete_array)) {
605 child_valobj_sp = base->GetChildAtIndex(child_idx);
607 child_valobj_sp = base->GetSyntheticArrayMember(child_idx,
true);
608 if (!child_valobj_sp) {
609 std::string err_msg = llvm::formatv(
610 "array index {0} is not valid for \"({1}) {2}\"", child_idx,
611 base->GetTypeName().AsCString(
"<invalid type>"),
613 return llvm::make_error<DILDiagnosticError>(
m_expr, std::move(err_msg),
618 base->GetSyntheticBitFieldChild(child_idx, child_idx,
true);
619 if (!child_valobj_sp) {
620 std::string err_msg = llvm::formatv(
621 "bitfield range {0}-{1} is not valid for \"({2}) {3}\"", child_idx,
622 child_idx, base->GetTypeName().AsCString(
"<invalid type>"),
624 return llvm::make_error<DILDiagnosticError>(
m_expr, std::move(err_msg),
630 std::string err_msg =
631 llvm::formatv(
"\"{0}\" is not an array type",
632 base->GetTypeName().AsCString(
"<invalid type>"));
633 return llvm::make_error<DILDiagnosticError>(
m_expr, std::move(err_msg),
636 if (
static_cast<uint32_t
>(child_idx) >=
637 synthetic->GetNumChildrenIgnoringErrors(child_idx + 1)) {
638 std::string err_msg = llvm::formatv(
639 "array index {0} is not valid for \"({1}) {2}\"", child_idx,
640 base->GetTypeName().AsCString(
"<invalid type>"),
642 return llvm::make_error<DILDiagnosticError>(
m_expr, std::move(err_msg),
645 child_valobj_sp = synthetic->GetChildAtIndex(child_idx);
646 if (!child_valobj_sp) {
647 std::string err_msg = llvm::formatv(
648 "array index {0} is not valid for \"({1}) {2}\"", child_idx,
649 base->GetTypeName().AsCString(
"<invalid type>"),
651 return llvm::make_error<DILDiagnosticError>(
m_expr, std::move(err_msg),
656 if (child_valobj_sp) {
658 if (
auto dynamic_sp = child_valobj_sp->GetDynamicValue(
m_use_dynamic))
659 child_valobj_sp = std::move(dynamic_sp);
661 return child_valobj_sp;
665 int64_t signed_child_idx = idx->GetValueAsSigned(0, &success);
667 return llvm::make_error<DILDiagnosticError>(
668 m_expr,
"could not get the index as an integer",
670 return base->GetSyntheticArrayMember(signed_child_idx,
true);
673llvm::Expected<lldb::ValueObjectSP>
676 if (!first_idx_or_err)
677 return first_idx_or_err;
680 if (!last_idx_or_err)
681 return last_idx_or_err;
684 if (!first_idx->GetCompilerType().IsIntegerOrUnscopedEnumerationType() ||
685 !last_idx->GetCompilerType().IsIntegerOrUnscopedEnumerationType()) {
686 return llvm::make_error<DILDiagnosticError>(
690 bool success_first, success_last;
691 int64_t first_index = first_idx->GetValueAsSigned(0, &success_first);
692 int64_t last_index = last_idx->GetValueAsSigned(0, &success_last);
693 if (!success_first || !success_last)
694 return llvm::make_error<DILDiagnosticError>(
698 if (first_index > last_index)
699 std::swap(first_index, last_index);
706 base->GetSyntheticBitFieldChild(first_index, last_index,
true);
707 if (!child_valobj_sp) {
708 std::string message = llvm::formatv(
709 "bitfield range {0}-{1} is not valid for \"({2}) {3}\"", first_index,
710 last_index, base->GetTypeName().AsCString(
"<invalid type>"),
711 base->GetName().AsCString());
712 return llvm::make_error<DILDiagnosticError>(
m_expr, message,
715 return child_valobj_sp;
718llvm::Expected<CompilerType>
720 std::shared_ptr<ExecutionContextScope> ctx,
725 llvm::APInt apint = literal.
GetValue();
727 llvm::SmallVector<std::pair<lldb::BasicType, lldb::BasicType>, 3> candidates;
738 for (
auto [signed_, unsigned_] : candidates) {
739 CompilerType signed_type = type_system->GetBasicTypeFromAST(signed_);
742 llvm::Expected<uint64_t> size = signed_type.
GetBitSize(ctx.get());
744 return size.takeError();
745 if (!literal.
IsUnsigned() && apint.isIntN(*size - 1))
748 return type_system->GetBasicTypeFromAST(unsigned_);
751 return llvm::make_error<DILDiagnosticError>(
753 "integer literal is too large to be represented in any integer type",
757llvm::Expected<lldb::ValueObjectSP>
759 llvm::Expected<lldb::TypeSystemSP> type_system =
762 return type_system.takeError();
764 llvm::Expected<CompilerType> type =
767 return type.takeError();
772 llvm::Expected<uint64_t> type_bitsize =
775 return type_bitsize.takeError();
781llvm::Expected<lldb::ValueObjectSP>
783 llvm::Expected<lldb::TypeSystemSP> type_system =
786 return type_system.takeError();
789 &node.
GetValue().getSemantics() == &llvm::APFloat::IEEEsingle();
795 return llvm::make_error<DILDiagnosticError>(
803llvm::Expected<lldb::ValueObjectSP>
809llvm::Expected<CastKind>
815 std::string errMsg = llvm::formatv(
"Cast from {0} to {1} is not allowed",
818 return llvm::make_error<DILDiagnosticError>(
819 m_expr, std::move(errMsg), location,
829 uint64_t type_byte_size = 0;
830 uint64_t rhs_type_byte_size = 0;
832 type_byte_size = *temp;
834 std::string errMsg = llvm::formatv(
"unable to get byte size for type {0}",
836 return llvm::make_error<DILDiagnosticError>(
837 m_expr, std::move(errMsg), location,
842 rhs_type_byte_size = *temp;
844 std::string errMsg = llvm::formatv(
"unable to get byte size for type {0}",
846 return llvm::make_error<DILDiagnosticError>(
847 m_expr, std::move(errMsg), location,
851 if (type_byte_size < rhs_type_byte_size) {
852 std::string errMsg = llvm::formatv(
853 "cast from pointer to smaller type {0} loses information",
855 return llvm::make_error<DILDiagnosticError>(
856 m_expr, std::move(errMsg), location,
861 std::string errMsg = llvm::formatv(
"cannot convert {0} to {1}",
865 return llvm::make_error<DILDiagnosticError>(
866 m_expr, std::move(errMsg), location,
872llvm::Expected<CastKind>
883 std::string errMsg = llvm::formatv(
"Cast from {0} to {1} is not allowed",
887 return llvm::make_error<DILDiagnosticError>(
888 m_expr, std::move(errMsg), location,
898 std::string errMsg = llvm::formatv(
899 "cannot cast from type {0} to pointer type {1}",
902 return llvm::make_error<DILDiagnosticError>(
903 m_expr, std::move(errMsg), location,
910 std::string errMsg = llvm::formatv(
911 "casting of {0} to {1} is not implemented yet",
913 return llvm::make_error<DILDiagnosticError>(
914 m_expr, std::move(errMsg), location,
922 return operand_or_err;
932 operand->GetName().GetStringRef());
933 op_type = operand->GetCompilerType();
938 return type_or_err.takeError();
941 if (operand->GetCompilerType().IsReferenceType()) {
943 operand = operand->Dereference(
error);
945 return llvm::make_error<DILDiagnosticError>(
m_expr,
error.AsCString(),
952 return operand->CastToEnumType(target_type);
958 return operand->CastToBasicType(target_type);
963 ? operand->GetLoadAddress()
964 : (op_type.
IsSigned() ? operand->GetValueAsSigned(0)
965 : operand->GetValueAsUnsigned(0));
966 llvm::StringRef name =
"result";
978 llvm::formatv(
"unable to cast from '{0}' to '{1}'",
980 return llvm::make_error<DILDiagnosticError>(
m_expr, std::move(errMsg),
static llvm::raw_ostream & error(Stream &strm)
lldb::VariableListSP GetVariableList(bool can_create)
Get the variable list for a compile unit.
lldb::LanguageType GetLanguage()
Generic representation of a type in a programming language.
bool IsEnumerationType(bool &is_signed) const
bool IsArrayType(CompilerType *element_type=nullptr, uint64_t *size=nullptr, bool *is_incomplete=nullptr) const
CompilerType GetPointerType() const
Return a new CompilerType that is a pointer to this type.
llvm::Expected< uint64_t > GetByteSize(ExecutionContextScope *exe_scope) const
Return the size of the type in bytes.
bool IsPointerToVoid() const
CompilerType GetNonReferenceType() const
If this type is a reference to a type (L value or R value reference), return a new type with the refe...
ConstString GetTypeName(bool BaseOnly=false) const
bool IsReferenceType(CompilerType *pointee_type=nullptr, bool *is_rvalue=nullptr) const
std::string TypeDescription()
CompilerType GetArrayElementType(ExecutionContextScope *exe_scope) const
Creating related types.
bool IsInteger() const
This is used when you don't care about the signedness of the integer.
CompilerType GetPointeeType() const
If this type is a pointer type, return the type that the pointer points to, else return an invalid ty...
llvm::Expected< uint64_t > GetBitSize(ExecutionContextScope *exe_scope) const
Return the size of the type in bits.
bool IsScalarType() const
bool IsNullPtrType() const
bool IsPointerType(CompilerType *pointee_type=nullptr) const
A uniqued constant string class.
llvm::StringRef GetStringRef() const
Get the string value as a llvm::StringRef.
"lldb/Target/ExecutionContextScope.h" Inherit from this if your object can reconstruct its execution ...
virtual void CalculateExecutionContext(ExecutionContext &exe_ctx)=0
Reconstruct the object's execution context into sc.
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
void TruncOrExtendTo(uint16_t bits, bool sign)
Convert to an integer with bits and the given signedness.
bool Fail() const
Test for error condition.
bool Success() const
Test for success condition.
const char * GetData() const
Defines a symbol context baton that can be handed other debug core functions.
llvm::StringRef GetInstanceVariableName()
Determines the name of the instance variable for the this decl context.
lldb::ModuleSP module_sp
The Module for a given query.
CompileUnit * comp_unit
The CompileUnit for a given query.
static lldb::ValueObjectSP Create(ExecutionContextScope *exe_scope, lldb::RegisterContextSP ®_ctx_sp, const RegisterInfo *reg_info)
static lldb::ValueObjectSP Create(ExecutionContextScope *exe_scope, const lldb::VariableSP &var_sp)
static lldb::ValueObjectSP CreateValueObjectFromBool(lldb::TargetSP target, bool value, llvm::StringRef name)
Create a value object containing the given boolean value.
CompilerType GetCompilerType()
static lldb::ValueObjectSP CreateValueObjectFromAddress(llvm::StringRef name, uint64_t address, const ExecutionContext &exe_ctx, CompilerType type, bool do_deref=true)
Given an address either create a value object containing the value at that address,...
lldb::addr_t GetLoadAddress()
Return the target load address associated with this value object.
static lldb::ValueObjectSP CreateValueObjectFromScalar(lldb::TargetSP target, Scalar &s, CompilerType type, llvm::StringRef name)
Create a value object containing the given Scalar value.
The rest of the classes in this file, except for the Visitor class at the very end,...
uint32_t GetLocation() const
virtual llvm::Expected< lldb::ValueObjectSP > Accept(Visitor *v) const =0
ASTNode & GetBase() const
ASTNode & GetIndex() const
ASTNode & GetOperand() const
CompilerType GetType() const
const llvm::APFloat & GetValue() const
std::string GetName() const
uint32_t GetRadix() const
IntegerTypeSuffix GetTypeSuffix() const
const llvm::APInt & GetValue() const
std::shared_ptr< StackFrame > m_exe_ctx_scope
llvm::Expected< lldb::ValueObjectSP > Evaluate(const ASTNode &node)
Evaluate an ASTNode.
llvm::Expected< lldb::ValueObjectSP > EvaluateAndDereference(const ASTNode &node)
Evaluate an ASTNode.
Interpreter(lldb::TargetSP target, llvm::StringRef expr, std::shared_ptr< StackFrame > frame_sp, lldb::DynamicValueType use_dynamic, bool use_synthetic, bool fragile_ivar, bool check_ptr_vs_member)
llvm::Expected< lldb::ValueObjectSP > UnaryConversion(lldb::ValueObjectSP valobj, uint32_t location)
Perform usual unary conversions on a value.
llvm::Expected< lldb::ValueObjectSP > Visit(const IdentifierNode &node) override
bool m_check_ptr_vs_member
llvm::Expected< CompilerType > PickIntegerType(lldb::TypeSystemSP type_system, std::shared_ptr< ExecutionContextScope > ctx, const IntegerLiteralNode &literal)
lldb::DynamicValueType m_use_dynamic
llvm::Expected< CastKind > VerifyCastType(lldb::ValueObjectSP operand, CompilerType source_type, CompilerType target_type, int location)
As a preparation for type casting, compare the requested 'target' type of the cast with the type of t...
llvm::Expected< CastKind > VerifyArithmeticCast(CompilerType source_type, CompilerType target_type, int location)
A helper function for VerifyCastType (below).
llvm::StringRef GetFieldName() const
ASTNode & GetBase() const
UnaryOpKind GetKind() const
ASTNode & GetOperand() const
CastKind
The type casts allowed by DIL.
@ eEnumeration
Casting from a scalar to an enumeration type.
@ ePointer
Casting to a pointer type.
@ eNone
Invalid promotion type (results in error).
@ eArithmetic
Casting to a scalar.
lldb::ValueObjectSP GetDynamicOrSyntheticValue(lldb::ValueObjectSP value_sp, lldb::DynamicValueType use_dynamic, bool use_synthetic)
static CompilerType GetBasicType(lldb::TypeSystemSP type_system, lldb::BasicType basic_type)
static lldb::ValueObjectSP ArrayToPointerConversion(ValueObject &valobj, ExecutionContextScope &ctx, llvm::StringRef name)
static llvm::Expected< lldb::TypeSystemSP > GetTypeSystemFromCU(std::shared_ptr< ExecutionContextScope > ctx)
static lldb::VariableSP DILFindVariable(ConstString name, VariableList &variable_list)
lldb::ValueObjectSP LookupGlobalIdentifier(llvm::StringRef name_ref, std::shared_ptr< StackFrame > frame_sp, lldb::TargetSP target_sp, lldb::DynamicValueType use_dynamic)
Given the name of an identifier, check to see if it matches the name of a global variable.
lldb::ValueObjectSP LookupIdentifier(llvm::StringRef name_ref, std::shared_ptr< StackFrame > frame_sp, lldb::DynamicValueType use_dynamic)
Given the name of an identifier (variable name, member name, type name, etc.), find the ValueObject f...
std::shared_ptr< lldb_private::TypeSystem > TypeSystemSP
BasicType
Basic types enumeration for the public API SBType::GetBasicType().
@ eBasicTypeUnsignedLongLong
std::shared_ptr< lldb_private::ValueObject > ValueObjectSP
LanguageType
Programming language type.
@ eLanguageTypeObjC
Objective-C.
std::shared_ptr< lldb_private::VariableList > VariableListSP
std::shared_ptr< lldb_private::Variable > VariableSP
std::shared_ptr< lldb_private::Target > TargetSP
std::shared_ptr< lldb_private::RegisterContext > RegisterContextSP
Every register is described in detail including its name, alternate name (optional),...