[llvm-bugs] [Bug 34048] New: Bad line info in PDB generated by LLD

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Aug 3 09:21:20 PDT 2017


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

            Bug ID: 34048
           Summary: Bad line info in PDB generated by LLD
           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, rnk at google.com,
                    zturner at google.com

#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, and use "bp main", then run to breakpoint.  The disassembly
listing is displayed instead of the source information, and opening the source
window manually doesn't allow one to set breakpoints etc.

-- 
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/cd93c273/attachment.html>


More information about the llvm-bugs mailing list