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

GDB should break on pure virtual call

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Out of scope
    • Affects Version/s: Qt Creator 2.5.0-beta
    • Fix Version/s: None
    • Component/s: Debugger
    • Labels:
      None
    • Environment:
      Windows, GDB
    • Commits:
      87de819729e1da419ba70fb8c1a67f0618a7b8fe

      Description

      Pure virtual call aborts with the following message:

      pure virtual method called
      terminate called without an active exception
      
      This application has requested the Runtime to terminate it in an unusual way.
      Please contact the application's support team for more information

      It should (configurably?) break when debugging. This can be achieved by placing a breakpoint on the function __cxa_pure_virtual.

      I tried to add 'break __cxa_pure_virtual' on 'Additional Startup Commands', but it doesn't always work. Sometimes it runs before the symbols are read...

        Attachments

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

          Activity

            People

            Assignee:
            hjk hjk
            Reporter:
            orgads Orgad Shaneh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes