This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


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

[patch] Missing abort() calls


Hello,

The attached restores a few calls to abort.  It turns out that in our 
haste to eliminate them the intentional calls in internal_verror() got 
zapped.

enjoy,
Andrew
2001-11-02  Andrew Cagney  <ac131313@redhat.com>

	* utils.c (internal_verror): Restore calls to abort().
	Fix PR gdb/219.

Index: utils.c
===================================================================
RCS file: /cvs/src/src/gdb/utils.c,v
retrieving revision 1.48
diff -p -r1.48 utils.c
*** utils.c	2001/10/17 20:35:31	1.48
--- utils.c	2001/11/02 21:36:47
*************** internal_verror (const char *file, int l
*** 702,708 ****
      case 1:
        dejavu = 2;
        fputs_unfiltered (msg, gdb_stderr);
!       internal_error (__FILE__, __LINE__, "failed internal consistency check");
      default:
        dejavu = 3;
        write (STDERR_FILENO, msg, sizeof (msg));
--- 702,708 ----
      case 1:
        dejavu = 2;
        fputs_unfiltered (msg, gdb_stderr);
!       abort (); /* NOTE: GDB has only three calls to abort().  */
      default:
        dejavu = 3;
        write (STDERR_FILENO, msg, sizeof (msg));
*************** Create a core file containing the curren
*** 731,743 ****
        if (dump_core_p)
  	{
  	  if (fork () == 0)
! 	    internal_error (__FILE__, __LINE__, "failed internal consistency check");
  	}
      }
    else
      {
        if (dump_core_p)
! 	internal_error (__FILE__, __LINE__, "failed internal consistency check");
        else
  	exit (1);
      }
--- 731,743 ----
        if (dump_core_p)
  	{
  	  if (fork () == 0)
! 	    abort (); /* NOTE: GDB has only three calls to abort().  */
  	}
      }
    else
      {
        if (dump_core_p)
! 	abort (); /* NOTE: GDB has only three calls to abort().  */
        else
  	exit (1);
      }

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