================
@@ -134,7 +134,9 @@ bool TypeQuery::ContextMatches(
     if (ctx == ctx_end)
       return false; // Pattern too long.
 
-    if (ctx->kind == CompilerContextKind::Namespace && ctx->name.IsEmpty()) {
+    if ((ctx->kind & CompilerContextKind::Namespace) ==
----------------
Nerixyz wrote:

> I'd consider using lldb-test (like 
> lldb/test/Shell/SymbolFile/DWARF/x86/find-basic-type.cpp does) instead, 
> mainly because it lets you distinguish multiple instances of `S` better

Looks like this doesn't work with the native PDB plugin yet because it's 
missing the `decl`:

```console
> lldb-test symbols --name=::S --find=type main.exe
Module: main.exe
Found 1 types:
000001F4D1CB2DC0: Type{0x00024884} , name = "S", size = 1, compiler_type = 
0x000001f4d4283d00 struct S {
    char a[1];
}
```

https://github.com/llvm/llvm-project/pull/149876
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to