Details
-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 4.5.0, Qt Creator 4.7.0
-
Failing: Windows 7 x64, Qt 5.9.1, MinGW 5.3.0 32bit, GDB 7.10
Working: Ubuntu 16.04 x64, Qt 5.9.4, gcc 5.4.0 GDB 7.11.1
Working: Windows 7 x64, Qt 5.9.1, MSVC2010 32bit, CDB 6.2.9200.20512 without Python dumper
-
1787eef68fd737faed2591a5e6ff04f6238db281 (qt-creator/qt-creator/4.8)
Description
(I have not verified, but I think it's a regression)
Example program:
#include <stdint.h> typedef union Test { struct TestBit { uint32_t value0: 1; uint32_t reserve0: 7; uint32_t value1: 1; uint32_t reserve1: 23; } bit; uint32_t word; } Test; int main(void) { Test t = {{0, 0, 0, 0}}; t.bit.value1 = 1; return 0; // break here }
Expected: the values for the bit fields are shown.
Note that it does work if uint32_t is replaced by int.
Attachments
Issue Links
- relates to
-
QTCREATORBUG-22883 Displaying C++ bit fields in the Locals window
- Closed
For Gerrit Dashboard: QTCREATORBUG-19742 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
245256,4 | Dumper: Fix handling of bitfields for MinGW | 4.8 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |