<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:jeremy.morse.llvm@gmail.com" title="Jeremy Morse <jeremy.morse.llvm@gmail.com>"> <span class="fn">Jeremy Morse</span></a>
</span> changed
<a class="bz_bug_link
bz_status_CONFIRMED "
title="CONFIRMED - lldb wrongly stopped at a statement within a nested for statement by si (step instruction)"
href="https://bugs.llvm.org/show_bug.cgi?id=45920">bug 45920</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Blocks</td>
<td>
</td>
<td>38768
</td>
</tr>
<tr>
<td style="text-align:right;">Version</td>
<td>unspecified
</td>
<td>trunk
</td>
</tr>
<tr>
<td style="text-align:right;">Component</td>
<td>All Bugs
</td>
<td>LLVM Codegen
</td>
</tr>
<tr>
<td style="text-align:right;">Assignee</td>
<td>lldb-dev@lists.llvm.org
</td>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>CONFIRMED
</td>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>dblaikie@gmail.com, jeremy.morse.llvm@gmail.com, neeilans@live.com, paul.robinson@am.sony.com, richard-llvm@metafoo.co.uk, vsk@apple.com
</td>
</tr>
<tr>
<td style="text-align:right;">Product</td>
<td>lldb
</td>
<td>clang
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_CONFIRMED "
title="CONFIRMED - lldb wrongly stopped at a statement within a nested for statement by si (step instruction)"
href="https://bugs.llvm.org/show_bug.cgi?id=45920#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_CONFIRMED "
title="CONFIRMED - lldb wrongly stopped at a statement within a nested for statement by si (step instruction)"
href="https://bugs.llvm.org/show_bug.cgi?id=45920">bug 45920</a>
from <span class="vcard"><a class="email" href="mailto:jeremy.morse.llvm@gmail.com" title="Jeremy Morse <jeremy.morse.llvm@gmail.com>"> <span class="fn">Jeremy Morse</span></a>
</span></b>
<pre>Thanks for the bug report -- could you include the command line used to compile
the source too please. Assuming -O0, this looks very similar to <a class="bz_bug_link
bz_status_CONFIRMED "
title="CONFIRMED - lldb wrongly stopped at a break statement when using step-by-step"
href="show_bug.cgi?id=45676">bug 45676</a> and
its related <a class="bz_bug_link
bz_status_CONFIRMED "
title="CONFIRMED - debug info fail -- range based for loops and other stuff"
href="show_bug.cgi?id=19864">bug 19864</a> -- clang is labelling the exit of the inner loop with
what we would consider the wrong location:
<span class="quote">> for.end: ; preds = %for.cond1
> br label %for.inc7, !dbg !51</span >
<span class="quote">> 51 = !DILocation(line: 8, column: 16, scope: !29)</span >
Where line 8 is the line with "return 1;". I can replicate this with gdb, so
switching component to clang.</pre>
</div>
</p>
<div id="referenced">
<hr style="border: 1px dashed #969696">
<b>Referenced Bugs:</b>
<ul>
<li>
[<a class="bz_bug_link
bz_status_NEW "
title="NEW - [meta][DebugInfo] Umbrella bug for poor debug experiences"
href="https://bugs.llvm.org/show_bug.cgi?id=38768">Bug 38768</a>] [meta][DebugInfo] Umbrella bug for poor debug experiences
</li>
</ul>
</div>
<br>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>