This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Why does debugging "pure virtual method called" have to be so hard?
- To: egcs at cygnus dot com
- Subject: Re: Why does debugging "pure virtual method called" have to be so hard?
- From: John Lindal <jafl at alice dot wonderland dot caltech dot edu>
- Date: Fri, 16 Oct 1998 11:49:18 -0700
> How to others feel about calling abort instead of _exit? abort might be
> more useful.
Another point in favor of abort() is that gdb will catch it and let you
examine the stack trace immediately.
Also, if you're just running along and it happens and you don't know what
caused it, you have the core dump right there. Otherwise, you have to try
to figure out how to reproduce it before you can debug it.
John