This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: abort() to internal_error()
- To: Michael Elizabeth Chastain <chastain at cygnus dot com>
- Subject: Re: abort() to internal_error()
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Fri, 16 Feb 2001 11:31:34 -0500
- Cc: gdb at sources dot redhat dot com
- References: <200102161555.HAA23672@bosch.cygnus.com>
Michael Elizabeth Chastain wrote:
>
> > (gdb) pwd
> > internal_error: /a/b/c/d/foo.c:47: function calls abort ()
> > ....
>
> Fine with me.
Just FYI. The principal was debated and agreed to months (years?) ago.
The only remaining issue (and so minor to really not be anything at all)
is the message. Even there I don't expect people to disagree -
internal_error() regardless of the message, is infinatly better than
calling abort().
For the curious, the exact message is:
/home/scratch/GDB/src/gdb/maint.c:118: gdb-internal-error: function
calls abort ()
as in:
(gdb) maint internal-error
/home/scratch/GDB/src/gdb/maint.c:118: gdb-internal-error: internal
maintenance
An internal GDB error was detected. This may make further
debugging unreliable. Continue this debugging session? (y or n) y
Create a core file containing the current state of GDB? (y or n) n
(gdb)
enjoy,
Andrew