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

Debugging std:: containers is not possible when GDB pretty printers are loaded

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 4.2.0
    • Qt Creator 4.0.1
    • Debugger
    • None
    • openSUSE 13.2 x64
    • 4669c2976f88ae94cb0e51a9b97cfb1ce5d280be

    Description

      With GDB 7.11 and "Load system GDB pretty printers" turned on while debugging a simple, pure C++ project, Creator shows standard containers as <not accessible> in the debug view.

      Turning off the the system pretty printers fixes the issue. "Use code model" and "display thread names" have no effect on this.

      #include <vector>
      
      int main(int argc, char *argv[])
      {
          std::vector<int> hi = {1, 2, 3, 4};
          hi.push_back(5);
      
          return 0;
      }
      

      I attach two debugger output logs with pretty printers turned on and off.

      Attachments

        Activity

          People

            hjk hjk
            szotsaki Szőts Ákos
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: