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

Dumper for QTime displays value for uninitialized variable

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • Qt Creator 3.4.0
    • Debugger
    • None
    • Windows 7 64 bit
      Qt 5.4.1
      MinGW 4.9.1
      gdb 7.8.0

    Description

      1. Have the following lines in your code:
        QTime date = QTime::currentTime();
        qDebug() << date;
        
      2. Set a breakpoint before these lines and let the debugger run there.
        In Locals and Expressions view, Creator displays a value for data, e.g. "02:35:19". How can QTime have a value when it's not yet initialized? It's not even grayed but red.
      3. Step over the initialization.
        Now Creator displays the correct value.

      When the QTime object is not yet initialized, Creator should display "(invalid)".

      This work correctly on Linux or when using cdb.

      Attachments

        1. right.log
          32 kB
        2. left.log
          1 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              hjk hjk
              rlohning Robert Löhning
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes