[llvm-bugs] [Bug 35524] New: [CodeView] Range-based for loop variables are not available when debugging
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Dec 4 17:06:54 PST 2017
https://bugs.llvm.org/show_bug.cgi?id=35524
Bug ID: 35524
Summary: [CodeView] Range-based for loop variables are not
available when debugging
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, dxf at google.com,
hans at chromium.org, llvm-bugs at lists.llvm.org,
llvm at inglorion.net, rnk at google.com
I encountered in yaml2coff.cpp. In the function layoutCOFF, there is a loop
that begins like this.
// Assign each section data address consecutively.
for (COFFYAML::Section &S : CP.Obj.Sections) {
If you put a breakpoint in this loop and hover over S, or add a watch for it,
it displays as "Variable is optimized away and not available."
This is at O0, so we really need this.
I haven't tried to make a minimal repro yet, but hopefully it's straightforward
to do. This should be easy enough for anyone to repro though.
--
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/20171205/9680e775/attachment.html>
More information about the llvm-bugs
mailing list