[llvm-bugs] [Bug 34049] New: Cannot view local variables in WinDbg with LLD generated PDB

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Aug 3 09:23:41 PDT 2017


            Bug ID: 34049
           Summary: Cannot view local variables in WinDbg with LLD
                    generated PDB
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: DebugInfo
          Assignee: unassignedbugs at nondot.org
          Reporter: zturner at google.com
                CC: llvm-bugs at lists.llvm.org

#include <iostream>

struct HelloPoint {
  int X;
  int Y;
  int Z;

int main(int argc, char **argv) {
  HelloPoint P;
  P.X = 3;
  P.Y = 4;
  P.Z = 5;
  std::cout << "Hello, world " << P.X << "!\n";
  return 0;

compile and link as:
> clang-cl /c /Z7 hello.cpp
> lld-link.exe /debug hello.obj

Open under WinDbg, run "uf main", and set a breakpoint on the address of the
return statement.  When the breakpoint gets hit, type "dv P" which should
display the variable P.  Instead you get this error:

0:000:x86> dv P
Unable to enumerate locals, Win32 error 0n87
Private symbols (symbols.pri) are required for locals.
Type ".hh dbgerr005" for details.

Obviously we have private symbols, so this is more an issue of our symbol
stream probably having something wrong with it.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170803/c08ab022/attachment-0001.html>

More information about the llvm-bugs mailing list