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

Can't expand array of QProcesses in Locals and Expressions

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • None
    • Qt Creator 3.5.0-rc1
    • Debugger
    • Windows 7 64 bit
      Qt 5.5.0
      g++ 4.9.1
      GNU gdb (GDB) 7.8
    • 5f9f95a4516db9d915fa7858ed89adaa2b9781d6

    Description

      1. Build the following code with MinGW:
                const int N = 14;
                QProcess proc[N];
                for (int i = 0; i != N; ++i) {
                    proc[i].start("sleep 10");
                    proc[i].waitForStarted();
                }
        

        (Taken from function void testQProcess() in tests\manual\debugger\simple\simple_test_app.cpp:4210.)

      2. Stop at a breakpoint behind it with gdb.
      3. Look at the value displayed for proc in Locals and Expressions view:
        		N	14	int
        		proc	@0x28fd90	QProcess [14]
        

        proc can't be expanded to show the single QProcesses inside the array.

      It should be possible to expand the array and show the single items. When using MSVC2013 and cdb or for an array of more trivial types, this works correctly.

      Attachments

        1. left.log
          3 kB
        2. right.log
          42 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