Why does debugging "pure virtual method called" have to be so hard?
John Lindal
jafl@alice.wonderland.caltech.edu
Fri Oct 16 13:29:00 GMT 1998
> 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
More information about the Gcc
mailing list