================ @@ -1841,31 +1776,33 @@ lldb::SBSymbolContextList SBTarget::FindGlobalFunctions(const char *name, lldb::SBType SBTarget::FindFirstType(const char *typename_cstr) { LLDB_INSTRUMENT_VA(this, typename_cstr); - TargetSP target_sp(GetSP()); - if (typename_cstr && typename_cstr[0] && target_sp) { - ConstString const_typename(typename_cstr); - TypeQuery query(const_typename.GetStringRef(), - TypeQueryOptions::e_find_one); - TypeResults results; - target_sp->GetImages().FindTypes(/*search_first=*/nullptr, query, results); - TypeSP type_sp = results.GetFirstType(); - if (type_sp) - return SBType(type_sp); - // Didn't find the type in the symbols; 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*/ 1); - if (!types.empty()) - return SBType(types.front()); + if (TargetSP target_sp = GetSP()) { ---------------- labath wrote:
here 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