aboutsummaryrefslogtreecommitdiff
path: root/gdb/mcheck.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-08-22 01:42:18 +0000
committerJohn Gilmore <gnu@cygnus>1991-08-22 01:42:18 +0000
commit9fa283782e3deddc1801ce554562318953279f0c (patch)
tree2c5a7f93af21fdc11bb4a0fd30c07af44ec8040e /gdb/mcheck.c
parenta7f538ebd1c93a63a466170d6cccf8fdc48b50d1 (diff)
downloadgdb-9fa283782e3deddc1801ce554562318953279f0c.zip
gdb-9fa283782e3deddc1801ce554562318953279f0c.tar.gz
gdb-9fa283782e3deddc1801ce554562318953279f0c.tar.bz2
HP 300 BSD port for machines at FSF. Also minor mips change.
Diffstat (limited to 'gdb/mcheck.c')
-rwxr-xr-xgdb/mcheck.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/gdb/mcheck.c b/gdb/mcheck.c
index 611a378..309fcfd 100755
--- a/gdb/mcheck.c
+++ b/gdb/mcheck.c
@@ -20,7 +20,6 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "ansidecl.h"
-#include <stdlib.h>
#include "gmalloc.h"
/* Old hook values. */
@@ -28,14 +27,9 @@ static void EXFUN((*old_free_hook), (PTR ptr));
static PTR EXFUN((*old_malloc_hook), (size_t size));
static PTR EXFUN((*old_realloc_hook), (PTR ptr, size_t size));
-/* FIXME. We cannot *declare* abort() as either being void or being
- int, because if the system declares it as the other, we get a fatal
- error. It's senseless to configure the system for whether abort is
- void or int. So we simply fail to declare it, which works on all
- systems, but might produce a warning on yours. Please ignore the warning
- and raise your middle finger in the general direction of the ANSI C
- committee in tribute. */
+
/* Function to call when something awful happens. */
+extern void abort();
static void EXFUN((*abortfunc), (void)) = (void (*)()) abort;
/* Arbitrary magical numbers. */