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

Debugging with gdb doesn't show values in array of struct

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 2.0.1
    • Debugger
    • None
    • Windows Vista x64
      Qt from 4.7.0 branch
      g++ (GCC) 4.4.0
      GNU gdb (GDB) 7.1.0.20100329-cvs
    • 79115280d5e80f34b613fde42d8b0257e6c20805

      Open tests/manual/gdbdebugger/simple/simple.pro and break in line 262:

          // Complex watchers
          {
              struct S { int a; double b; } s[10];
              for (int i = 0; i != 10; ++i) {
      X           s[i].a = i;  // Break here. Expand s and s[0]. Step.
                  // Watcher Context: "Add New Watcher".
                  // Type    ['s[%d].a' % i for i in range(5)]
                  // Expand it, continue stepping.
              }
          }
      

      "Locals and Watchers" displays s as "<unavailable synchroneous data>"
      This is a regression from 2.0.0. cdb works fine now.

        1. debugger.log
          22 kB
          Robert Löhning
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes