<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 - PDB produced by lld doesn't store compiland environments"
   href="https://bugs.llvm.org/show_bug.cgi?id=36198">36198</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>PDB produced by lld doesn't store compiland environments
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lld
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </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>All Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>stefan.reinalter@molecular-matters.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>At the moment, PDB files produced by lld do not contain compiland environment
data stored with compilands. PDBs created by Microsoft's toolchain contain
extra data known as "compiland environment" which stores info like the
following for each compiland:

CompilandEnv   : obj =
"C:\Development\Projects\LiveCode\Code\temp\Win32\Debug\ExeForDll\main.obj"
CompilandDetails: 
        Language: C++
        Target processor: Pentium III
        Compiled for edit and continue: yes
        Compiled without debugging info: no
        Compiled with LTCG: no
        Compiled with /bzalign: no
        Managed code present: no
        Compiled with /GS: yes
        Compiled with /sdl: no
        Compiled with /hotpatch: yes
        Converted by CVTCIL: no
        MSIL module: no
        Frontend Version: Major = 19, Minor = 12, Build = 25834, QFE = 0
        Backend Version: Major = 19, Minor = 12, Build = 25834, QFE = 0
        Version string: Microsoft (R) Optimizing Compiler

CompilandEnv   : cwd = "C:\Development\Projects\LiveCode\Code\build"
CompilandEnv   : cl = "C:\Program Files (x86)\Microsoft Visual
Studio\2017\Community\VC\Tools\MSVC\14.12.25827\bin\HostX86\x86\CL.exe"
CompilandEnv   : cmd = "-c -ZI -nologo -W3 -WX- -diagnostics:classic -Od -Oy-
-DWIN32 -D_DEBUG -D_CONSOLE -DIMPORT_FUNCTIONS_FROM_DLL -D_UNICODE -DUNICODE
-Gm -EHs -EHc -RTC1 -MDd -GS -fp:precise -hotpatch -Zc:wchar_t -Zc:forScope
-Zc:inline -FoC:\Development\Projects\LiveCode\Code\temp\Win32\Debug\ExeForDll\
-FdC:\Development\Projects\LiveCode\Code\temp\Win32\Debug\ExeForDll\vc141.pdb
-Gd -TP -analyze- -errorreport:prompt -I"C:\Program Files (x86)\Microsoft
Visual Studio\2017\Community\VC\Tools\MSVC\14.12.25827\include" -I"C:\Program
Files (x86)\Microsoft Visual
Studio\2017\Community\VC\Tools\MSVC\14.12.25827\atlmfc\include" -I"C:\Program
Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\VS\include"
-I"C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt"
-I"C:\Program Files (x86)\Microsoft Visual
Studio\2017\Community\VC\Auxiliary\VS\UnitTest\include" -I"C:\Program Files
(x86)\Windows Kits\8.1\Include\um" -I"C:\Program Files (x86)\Windows
Kits\8.1\Include\shared" -I"C:\Program Files (x86)\Windows
Kits\8.1\Include\winrt" -X"
CompilandEnv   : src = "..\src\Tests\main.cpp"
CompilandEnv   : pdb =
"C:\Development\Projects\LiveCode\Code\temp\Win32\Debug\ExeForDll\vc141.pdb"


The compiland environment stores information like working directory, the
compiler that built the .obj, the source file, PDB path. This information is
really useful for certain tools and it would be nice if lld could also produce
this extra information.

The above output can be reproduced by using DIA2Dump on any PDB produced by
Visual Studio.</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>