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

Stop when qWarning/qFatal/abort() is called also breaks on class methods of the same name

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Not Evaluated
    • None
    • Qt Creator 4.8.1
    • Debugger
    • None
    • All

    Description

      class TestClass {
      public:
          void qWarning() { }
          void qFatal() { }
          void abort() { }
      };
      
      int main()
      {
          TestClass c;
          c.qWarning();
          c.qFatal();
          c.abort();
          return 0;
      }
      

      If "Stop when qWarning() is called", "Stop when qFatal() is called" or "Stop when abort() is called" is checked in Options > Debugger > GDB Extended with the above program, clicking the "Start debugging" button will result in debugger breaking on the class methods of the same name.

      This is a problem because the debugger also breaks on QAbstractSocket::abort() if "Stop when abort() is called" is checked.

      Attachments

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

        Activity

          People

            hjk hjk
            net147 Jonathan Liu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes