This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Why does debugging "pure virtual method called" have to be so hard?


> 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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]