<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:orlando.hyams@sony.com" title="Orlando Cazalet-Hyams <orlando.hyams@sony.com>"> <span class="fn">Orlando Cazalet-Hyams</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED DUPLICATE - Wrong debug info generated at -O1 (-O0/O2/O3 are correct)"
href="https://bugs.llvm.org/show_bug.cgi?id=46007">bug 46007</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;">Fixed By Commit(s)</td>
<td>
</td>
<td>bddd2888264492a6deb0d447ee6ac042d3fb44e4
</td>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>DUPLICATE
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED DUPLICATE - Wrong debug info generated at -O1 (-O0/O2/O3 are correct)"
href="https://bugs.llvm.org/show_bug.cgi?id=46007#c5">Comment # 5</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED DUPLICATE - Wrong debug info generated at -O1 (-O0/O2/O3 are correct)"
href="https://bugs.llvm.org/show_bug.cgi?id=46007">bug 46007</a>
from <span class="vcard"><a class="email" href="mailto:orlando.hyams@sony.com" title="Orlando Cazalet-Hyams <orlando.hyams@sony.com>"> <span class="fn">Orlando Cazalet-Hyams</span></a>
</span></b>
<pre>AFAICT this is a duplicate of PR45944 and is fixed with D80519 (commit
bddd2888264492a6deb0d447ee6ac042d3fb44e4).
Following the repro steps with D80519, instead of seeing an incorrect value for
argc, I see:
* thread #1, name = 'a.out', stop reason = breakpoint 1.1
frame #0: 0x000000000040049e new.o`main(argc=<unavailable>,
argv=<unavailable>) at small.c:8:3
5 int main(int argc, char **argv) {
6 char c[10];
7 foo(c);
-> 8 return 0;
9 }
(lldb) p argc
error: Couldn't materialize: couldn't get the value of variable argc: Could not
evaluate DW_OP_GNU_entry_value.
*** This bug has been marked as a duplicate of <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - LLDB does not support DW_OP_GNU_entry_value alias for DW_OP_entry_value"
href="show_bug.cgi?id=45944">bug 45944</a> ***</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>