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

Problem with GDB pretty printer when using a class

    XMLWordPrintable

Details

    • Linux/X11
    • 720373004 (16.0)

    Description

      QtCreator cannot display the value of instances of a C++ class for which there is a gdb pretty printer. The instance in question can be output with p <variable name> in the debugger log, as can be seen in the attached screenshot, but in the window for local variables the corresponding variables are <inaccessible>. ** 

      The pretty printer (see libalkimia-gdb.py) is designed to call a method of the associated class and registered in gdb as shown in the debugger log

      <521info pretty-printer

      >&"info pretty-printer\n"

      >~"global pretty-printers:\n"

      >~" Alkimia\n"

      >~" AlkValue\n"

      >~" mpq_class\n"

      The issue can be reproduced in QtCreator with the appended cmake test project [^test-gdb-pretty-printer-with-class.tar.gz]

       

      Attachments

        Issue Links

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

          Activity

            People

              ansemkiv Andrii Semkiv
              rhabacker Ralf Habacker
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes