[lldb-dev] [Bug 40133] New: type lookup doesn't work with nested types when using Native PDB reader.

via lldb-dev lldb-dev at lists.llvm.org
Fri Dec 21 10:44:56 PST 2018


https://bugs.llvm.org/show_bug.cgi?id=40133

            Bug ID: 40133
           Summary: type lookup doesn't work with nested types when using
                    Native PDB reader.
           Product: lldb
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: zturner at google.com
                CC: aleksandr.urakov at jetbrains.com,
                    llvm-bugs at lists.llvm.org, mosescu at google.com

struct S {
  struct NestedStruct {};
};

(lldb) type lookup -- S::NestedStruct

will fail to return any types.

The reason for this is that LLDB parses this and attempts to look up just the
type "NestedStruct".  It expects us to return a list of all types named
NestedStruct, including those which are nested in other structs.  Then, it will
filter this list itself.

Our Native PDB reader already pre-processes the TPI stream when the PDB is
loaded and discovers all nested types, so we have the ability to index nested
types by their basename at no incremental complexity, and this should make it
possible for this to work.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20181221/4b7e64f6/attachment.html>


More information about the lldb-dev mailing list