<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Bad line info in PDB generated by LLD"
   href="https://bugs.llvm.org/show_bug.cgi?id=34048">34048</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Bad line info in PDB generated by LLD
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>DebugInfo
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>zturner@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, rnk@google.com, zturner@google.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>#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:
<span class="quote">> clang-cl /c /Z7 hello.cpp
> lld-link.exe /debug hello.obj</span >

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.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>