<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 - dbg.addr location lists are wrong"
href="https://bugs.llvm.org/show_bug.cgi?id=35318">35318</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>dbg.addr location lists are wrong
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</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>DebugInfo
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>aprantl@apple.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>$ cat /tmp/test.c
int main(int argc, char **argv) {
printf(argv[0]);
int i = argc;
++i;
++i;
return i;
}
$ clang --version
clang version 6.0.0 (trunk 318314) (llvm/trunk 318312)
$ clang -mllvm -use-dbg-addr -o /tmp/test /tmp/test.c -g
$ dwarfdump /tmp/test.dSYM
0x0000002a: TAG_subprogram [2] *
AT_low_pc( 0x0000000100000f40 )
AT_high_pc( 0x0000004a )
AT_frame_base( rbp )
AT_name( "main" )
...
0x0000005f: TAG_variable [4]
AT_location( 0x00000000
0x0000000100000f84 - 0x0000000100000f8a: rbp-20 )
AT_name( "i" )
AT_decl_file( "/private/tmp/test.c" )
AT_decl_line( 3 )
AT_type( {0x0000006f} ( int ) )</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>