<div dir="ltr">Yes please.<div><br></div><div>Thanks!</div><div><br></div><div>-eric</div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, May 16, 2016 at 9:06 AM <a href="mailto:mattias.v.eriksson@ericsson.com">mattias.v.eriksson@ericsson.com</a> <<a href="mailto:mattias.v.eriksson@ericsson.com">mattias.v.eriksson@ericsson.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">materi added a subscriber: materi.<br>
materi added a comment.<br>
<br>
Hi!<br>
<br>
I am debugging an issue with bitfields and debug info and found that this commit is where the problems begin.<br>
<br>
The file tmp.c:<br>
<br>
struct fields<br>
{<br>
unsigned int a : 1;<br>
unsigned int b : 1;<br>
} f;<br>
<br>
int main ()<br>
{<br>
f.a = 1;<br>
return 0;<br>
}<br>
<br>
Built with top-of-tree clang and run in gdb:<br>
<br>
gdb a.out<br>
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1<br>
...<br>
Reading symbols from a.out...done.<br>
(gdb) break main<br>
Breakpoint 1 at 0x40058d: file tmp.c, line 9.<br>
(gdb) run<br>
Starting program: a.out<br>
<br>
Breakpoint 1, main () at tmp.c:9<br>
9 f.a = 1;<br>
(gdb) display f<br>
1: f = {a = 0, b = 0}<br>
(gdb) n<br>
10 return 0;<br>
1: f = {a = 1, b = 1} <<<--- Unexpected value of b!<br>
(gdb) x &f<br>
0x402024 <f>: 0x00000001<br>
(gdb)<br>
<br>
Should I write a bug report in bugzilla?<br>
<br>
<br>
Repository:<br>
rL LLVM<br>
<br>
<a href="http://reviews.llvm.org/D19630" rel="noreferrer" target="_blank">http://reviews.llvm.org/D19630</a><br>
<br>
<br>
<br>
</blockquote></div>