title: Run an Application in GDB Until an Exception Occurs
body: <p>I'm working on a multithreaded application, and I want to debug it using GDB.</p>
  
  <p>Problem is, one of my threads keeps dying with the message:</p>
  
  <pre><code>pure virtual method called
  terminate called without an active exception
  Abort
  </code></pre>
  
  <p>I know the cause of that message, but I have no idea where in my thread it occurs. A backtrace would really be helpful.</p>
  
  <p>When I run my app in GDB, it pauses every time a thread is suspended or resumed. I want my app to continue running normally until one of the threads dies with that exception, at which point everything should halt so that I can get a backtrace.</p>