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

Debugging: GDB plugin has no signal/exception handling

    XMLWordPrintable

Details

    • Task
    • Resolution: Invalid
    • Not Evaluated
    • None
    • Qt Creator 4.5.0
    • Debugger
    • None
    • Embedded Linux

    Description

      It seems that Qt Creator's GDB plugin has no support to catch signals respectively exceptions and show a sane backtrace afterwards (just the message box containing the signal pops up and then the assembly dump appears). Of course it is also true that Qt by itself does not make use of C++ exceptions, but nevertheless they constitute an important part in other libraries and/or user code.

      The stack overflow post on https://stackoverflow.com/questions/10592568/can-gdb-be-used-to-backtrace-when-exceptions-are-caught cites some workarounds, e.g. by using catch throw respectively break cxa throw as an additional attach command (Options dialog, section Debugger, tab GDB).

      It would be nice to have this added in an upcoming release.

      Attachments

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

        Activity

          People

            hjk hjk
            mdw Matthias Wallnoefer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes