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

Cannot stop when abort() is called

    XMLWordPrintable

Details

    • c938b8d4dbc069f54002e66deea0e0501b6d98d

    Description

      Since Qt Creator 4.1.0, cannot stop when abort() is called.
      Qt Creator 4.0.3 works as expected.

      Steps to Reproduce

      1. Kit with gdb.
      2. Select Tools > Options > Debugger > GDB Extended and enable Stop when abort() is called check box.
      3. To raise uncaught exception like below.
      4. Then, does not stop at throw line.
      main.cpp
      int main()
      {
        throw 1;
        return 0;
      }
      

      Appendix

      It is repaired by the following patch.
      but I don't know reasonable.

      diff --git a/share/qtcreator/debugger/gdbbridge.py b/share/qtcreator/debugger/gdbbridge.py
      index f7f3280..8b0c063 100644
      --- a/share/qtcreator/debugger/gdbbridge.py
      +++ b/share/qtcreator/debugger/gdbbridge.py
      @@ -259,6 +259,8 @@ class Dumper(DumperBase):
               self.qtNamespaceToReport = None
               self.interpreterBreakpointResolvers = []
      
      +        self.currentQtNamespaceGuess = None
      +
           def prepare(self, args):
               self.output = []
               self.currentIName = ""
      

      Attachments

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

        Activity

          People

            hjk hjk
            s.yasu Satoshi Yasushima
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes