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

std::map and std::unordered_map are displayed as inaccessible

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 4.9.0-beta2
    • Qt Creator 4.3.1, Qt Creator 4.4.0-beta1, Qt Creator 4.6.0
    • Debugger
    • None
    • * MacOS Sierra 10.12.5
       * lldb --version
      lldb-370.0.42
       Swift-3.1
       * Xcode: 8.3.3
    • 7236e340a968be964e67ced3f29eadf76787fdcf

    Description

      The debugger does not display std::map and std::unordered_map when you expand them. At first it displays how many items, but once you click the arrow to expand, it becomes <not accessible>. QMap works okay. And std::string and std::vector are also showing correctly.

      This is the debugger view:

      Code:

          std::map<std::string, float> testNotDisplaying;
          testNotDisplaying["bla"] = 3.0;
          testNotDisplaying["brol"] = 7.20;
      
          std::unordered_map<std::string, float> testNotDisplaying2;
          testNotDisplaying2["bla"] = 3.0;
          testNotDisplaying2["brol"] = 7.20;
      
          QMap<std::string, float> testDisplaysOk;
          testDisplaysOk["bla"] = 3.0;
          testDisplaysOk["brol"] = 7.20;
      

      Attachments

        1. dev_qt.txt
          0.4 kB
          dan marinescu
        2. image-2017-07-12-09-09-16-087.png
          56 kB
          Tom Deblauwe
        3. Screen Shot 2018-02-07 at 5.08.55 PM.png
          665 kB
          dan marinescu
        4. Screen Shot 2018-02-07 at 5.10.23 PM.png
          670 kB
          dan marinescu
        5. Screen Shot 2018-02-08 at 2.19.38 AM.png
          661 kB
          dan marinescu
        6. Screen Shot 2018-02-08 at 2.34.35 AM.png
          7.95 MB
          dan marinescu
        7. Screen Shot 2019-03-04 at 1.22.42 PM.png
          662 kB
          dan marinescu
        8. Screen Shot 2019-03-04 at 1.23.38 PM.png
          1.23 MB
          illiteratecoder
        9. Screen Shot 2019-03-04 at 11.31.06 AM.png
          277 kB
          illiteratecoder
        10. Screen Shot 2019-03-04 at 12.12.03 AM.png
          716 kB
          dan marinescu
        11. Screen Shot 2019-03-04 at 2.05.30 AM.png
          723 kB
          dan marinescu
        12. Screen Shot 2019-03-04 at 9.00.41 PM.png
          961 kB
          dan marinescu
        13. Screen Shot 2019-03-04 at 9.20.01 PM.png
          103 kB
          dan marinescu
        14. stdtypes.py
          37 kB
          illiteratecoder
        15. test_debugger.cpp
          4 kB
          illiteratecoder
        16. untitled.tar.bz2
          12 kB
          dan marinescu
        17. untitled.zip
          22 kB
          dan marinescu
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            hjk hjk
            tomdeblauwe Tom Deblauwe
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes