* utils.c (internal_verror): Restore calls to abort().

Fix PR gdb/219.
This commit is contained in:
Andrew Cagney 2001-11-02 21:46:52 +00:00
parent d918dd357c
commit 5c7dd74823
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2001-11-02 Andrew Cagney <ac131313@redhat.com>
* utils.c (internal_verror): Restore calls to abort().
Fix PR gdb/219.
2001-11-02 Michael Chastain <mec@shout.net>
* MAINTAINERS: Update my entry.

View File

@ -702,7 +702,7 @@ internal_verror (const char *file, int line,
case 1:
dejavu = 2;
fputs_unfiltered (msg, gdb_stderr);
internal_error (__FILE__, __LINE__, "failed internal consistency check");
abort (); /* NOTE: GDB has only three calls to abort(). */
default:
dejavu = 3;
write (STDERR_FILENO, msg, sizeof (msg));
@ -731,13 +731,13 @@ Create a core file containing the current state of GDB? ");
if (dump_core_p)
{
if (fork () == 0)
internal_error (__FILE__, __LINE__, "failed internal consistency check");
abort (); /* NOTE: GDB has only three calls to abort(). */
}
}
else
{
if (dump_core_p)
internal_error (__FILE__, __LINE__, "failed internal consistency check");
abort (); /* NOTE: GDB has only three calls to abort(). */
else
exit (1);
}