[llvm-bugs] [Bug 35521] New: [CodeView] MSVC debugger cannot find global llvm::outs() when self-hosted

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Dec 4 13:08:59 PST 2017


            Bug ID: 35521
           Summary: [CodeView] MSVC debugger cannot find global
                    llvm::outs() when self-hosted
           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: amccarth at google.com, hans at hanshq.net,
                    llvm-bugs at lists.llvm.org, llvm at inglorion.net,
                    rnk at google.com

1) Build LLVM using CMAKE_BUILD_TYPE=Debug using clang-cl and MSVC linker
2) Debug any LLVM tool and set a breakpoint in main.  I used llvm-pdbutil, but
it doesn't really matter what you use.
3) In the watch window, type `llvm::outs().flush()`.  You'll see this in the
result column: "identifier llvm::outs() is undefined".

Note this works when not self-hosted, and also this is a /O0 build.

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

More information about the llvm-bugs mailing list