Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-19742

MinGW GDB can't show bitfield values for stdint-types

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • Qt Creator 4.8.0-beta2
    • Qt Creator 4.5.0, Qt Creator 4.7.0
    • Debugger
    • 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

          For Gerrit Dashboard: QTCREATORBUG-19742
          # Subject Branch Project Status CR V

          Activity

            People

              hjk hjk
              aha_1980 André Hartmann
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes