[Lldb-commits] [lldb] [lldb] Fix "exact match" debug_names type queries (PR #118465)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Tue Dec 3 04:15:00 PST 2024


================
@@ -527,7 +527,7 @@ void DebugNamesDWARFIndex::GetTypesWithQuery(
   ConstString name = query.GetTypeBasename();
   std::vector<lldb_private::CompilerContext> query_context =
       query.GetContextRef();
-  if (query_context.size() <= 1)
+  if (query_context.size() <= 1 && !query.GetExactMatch())
----------------
labath wrote:

I think you're looking at the wrong overload. This calls the variant taking a ConstString (line 461). That one doesn't take array so there's no first element to access.

https://github.com/llvm/llvm-project/pull/118465


More information about the lldb-commits mailing list