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

Debugging with gdb gets lost at std::deque

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • Qt Creator 3.1.2
    • Debugger
    • Windows 7 64 bit
      Qt 4.8.6, Qt 5.2.1
      MinGW g++ 4.8.2 from Qt 5.3.0 package
      MinGW gdb 7.7 from Qt 5.3.0 package

    Description

      1. Have a simple QCoreApplication:
        #include <QCoreApplication>
        #include <deque>
        
        int main(int argc, char *argv[])
        {
            QCoreApplication a(argc, argv);
            std::deque<int> deque;
            deque.push_back(1);
            return a.exec();
        }
        
      2. Enable "Load system GDB pretty printers".
      3. Place a breakpoint at the instantiation of the deque and let gdb run up to there.
      4. When the debugger stopped at the breakpoint, step over.
        Creator loses gdb and needs to be restarted. After forty seconds, Creator will suggest to kill gdb, but that doesn't bring Creator back to usable state.

      Creator should just step to the next line. If this is not possible due to some limitations of gdb, Creator should at last handle this case gracefully.

      Attachments

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