================
@@ -353,15 +363,21 @@ VariableReferenceStorage::CreateScopes(lldb::SBFrame
&frame) {
create_scope(eScopeKindRegisters)};
}
+lldb::SBValue VariableReferenceStorage::FindVariable(var_ref_t var_ref,
+ llvm::StringRef name) {
+ if (VariableStore *store = GetVariableStore(var_ref))
+ return store->FindVariable(name);
+
+ return {};
+}
+
VariableStore *VariableReferenceStorage::GetVariableStore(var_ref_t var_ref) {
const ReferenceKind kind = var_ref.Kind();
switch (kind) {
case eReferenceKindPermanent:
return m_permanent_kind_pool.GetVariableStore(var_ref);
case eReferenceKindTemporary:
return m_temporary_kind_pool.GetVariableStore(var_ref);
- case eReferenceKindScope:
- return m_scope_kind_pool.GetVariableStore(var_ref);
default:
----------------
ashgti wrote:
Done.
https://github.com/llvm/llvm-project/pull/183176
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits