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

Debugger can't visualize std::list which uses std::scope_allocator_adaptor

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • None
    • Qt Creator 4.10.0
    • Debugger
    • All

    Description

      If an std::list uses std::scoped_allocator_adaptor as its second template argument, the debugger can't visualize the content of the vector. It shows "not accessible" instead.

      The issue can be easily reproduced with the following test code:

      std::list<int, std::scoped_allocator_adaptor<std::allocator<int>>> intList;
      intList.push_back(10);

      when debugging the above intList can't be visualized.

      The problem is that if the std::scoped_allocator_adaptor is used, the first pointer will contain a member variable from scoped_allocator_adaptor. The address parsing would be incorrect for std::list. 

      https://codereview.qt-project.org/c/qt-creator/qt-creator/+/265875

      contains a fix for std::vector. However, std::list still has the issue.

       

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            hjk hjk
            inetdragon Ming Li
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes