<div dir="ltr">Hi all,<div><br></div><div style>TestBitfields is failing for some time. It seems to be relying on the value of undefined bits:</div><div style><br></div><div style><div>self.expect("frame variable --show-types more_bits", VARIABLES_DISPLAYED_CORRECTLY,</div>
<div> substrs = ['(uint32_t:3) a = 3',</div><div> '(int:1) = 0',</div><div> '(uint8_t:1) b = \'\\0\'',</div><div> '(uint8_t:1) c = \'\\x01\'',</div>
<div> '(uint8_t:1) d = \'\\0\''])</div><div><br></div><div style>This always fails for me, at TestBitfields.py line 106.</div><div style>It seems to be relying on the value (and type) of the padding bit.</div>
<div style><br></div><div style>I suppose we don't get the type we expected (for the padding bit) because clang may be throwing it out (we can't reference it) But our test is relying on both the type AND the value of the padding bit.</div>
<div style><br></div><div style>Maybe I misunderstood something, but attached is a patch, in case my analysis is correct.</div><div style><br></div><div style>Regards,</div><div style><br></div><div style> Filipe</div><div style>
<br></div><div style>P.S: This happens on i386 only (tested on Mac OS X).</div><div style><br></div></div></div>