<html>
<head>
<base href="http://llvm.org/bugs/" />
</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 --- - lldb on Linux does not display the correct value of bit fields"
href="http://llvm.org/bugs/show_bug.cgi?id=15260">15260</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>lldb on Linux does not display the correct value of bit fields
</td>
</tr>
<tr>
<th>Product</th>
<td>lldb
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>lldb-dev@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Reporter</th>
<td>daniel.malea@intel.com
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>The testcase TestBitfields.py fails because a single bit is not displayed
correctly in a structure that uses bit masks. Interestingly, the other members
of the struct (before and after the 1-bit member) seem to be displayed
correctly.
To reproduce with clang on an x86_64 linux build, run:
python dotest.py lang/c/bitfields
The trace of the failure is below:
runCmd: frame variable --show-types more_bits
output: (MoreBits) more_bits = {
(uint32_t:3) a = 3
(int:1) = -1
(uint8_t:1) b = '\0'
(uint8_t:1) c = '\x01'
(uint8_t:1) d = '\0'
}
Expecting sub string: (uint32_t:3) a = 3
Matched
Expecting sub string: (int:1) = 0
Not matched
FAIL
Traceback (most recent call last):
File "/home/daniel/dev/llvm-svn/tools/lldb/test/lldbtest.py", line 365, in
wrapper
return func(self, *args, **kwargs)
File
"/home/daniel/dev/llvm-svn/tools/lldb/test/lang/c/bitfields/TestBitfields.py",
line 32, in test_with_dwarf_and_run_command
self.bitfields_variable()
File
"/home/daniel/dev/llvm-svn/tools/lldb/test/lang/c/bitfields/TestBitfields.py",
line 111, in bitfields_variable
'(uint8_t:1) d = \'\\0\''])
File "/home/daniel/dev/llvm-svn/tools/lldb/test/lldbtest.py", line 1325, in
expect
msg if msg else EXP_MSG(str, exe))
AssertionError: False is not True : Variable(s) displayed correctly
Config=x86_64-clang</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>