================ @@ -1887,34 +1823,35 @@ lldb::SBTypeList SBTarget::FindTypes(const char *typename_cstr) { LLDB_INSTRUMENT_VA(this, typename_cstr); SBTypeList sb_type_list; - TargetSP target_sp(GetSP()); - if (typename_cstr && typename_cstr[0] && target_sp) { - ModuleList &images = target_sp->GetImages(); - ConstString const_typename(typename_cstr); - TypeQuery query(typename_cstr); - TypeResults results; - images.FindTypes(nullptr, query, results); - for (const TypeSP &type_sp : results.GetTypeMap().Types()) - sb_type_list.Append(SBType(type_sp)); - - // Try the loaded language runtimes - if (auto process_sp = target_sp->GetProcessSP()) { - for (auto *runtime : process_sp->GetLanguageRuntimes()) { - if (auto *vendor = runtime->GetDeclVendor()) { - auto types = - vendor->FindTypes(const_typename, /*max_matches*/ UINT32_MAX); - for (auto type : types) - sb_type_list.Append(SBType(type)); + if (TargetSP target_sp = GetSP()) { ---------------- labath wrote:
h https://github.com/llvm/llvm-project/pull/141284 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits