This is the mail archive of the
mailing list for the GDB project.
abort() to internal_error()
- To: GDB Discussion <gdb at sources dot redhat dot com>, Kevin Buettner <kevinb at cygnus dot com>
- Subject: abort() to internal_error()
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Fri, 16 Feb 2001 10:04:59 -0500
KevinB's kindly cooked up a script that will replace all instances of:
internal_error (__FILE__, __LINE__, "function calls abort ()");
Applying and committing this script will signify the end of a very long
campain I've been waging with GDB - to significantly reduce the
likelhood that GDB dumps core.
>From memory, this has been discussed several times before (and is listed
in the TODO file). The only problem I can think of is the message.
However, if you think about it:
internal_error: /a/b/c/d/foo.c:47: function calls abort ()
is still infinatly better than something like
Program received SIGXYZZY, core dumped
so I think is good enough,