mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-01 09:49:43 +08:00
* bfd.c: (_bfd_default_error_handler): Don't call abort on
error, instead call _exit. (_bfd_abort): Call _exit not xexit.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2006-02-21 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
|
* bfd.c: (_bfd_default_error_handler): Don't call abort on
|
||||||
|
error, instead call _exit.
|
||||||
|
(_bfd_abort): Call _exit not xexit.
|
||||||
|
|
||||||
2006-02-17 Kevin Buettner <kevinb@redhat.com>
|
2006-02-17 Kevin Buettner <kevinb@redhat.com>
|
||||||
|
|
||||||
* elf32-frv.c (elf32_frv_grok_prstatus, elf32_frv_grok_psinfo):
|
* elf32-frv.c (elf32_frv_grok_prstatus, elf32_frv_grok_psinfo):
|
||||||
|
15
bfd/bfd.c
15
bfd/bfd.c
@ -1,6 +1,6 @@
|
|||||||
/* Generic BFD library interface and support routines.
|
/* Generic BFD library interface and support routines.
|
||||||
Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
|
Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
|
||||||
2000, 2001, 2002, 2003, 2004, 2005
|
2000, 2001, 2002, 2003, 2004, 2005, 2006
|
||||||
Free Software Foundation, Inc.
|
Free Software Foundation, Inc.
|
||||||
Written by Cygnus Support.
|
Written by Cygnus Support.
|
||||||
|
|
||||||
@ -216,6 +216,11 @@ CODE_FRAGMENT
|
|||||||
#include "libecoff.h"
|
#include "libecoff.h"
|
||||||
#undef obj_symbols
|
#undef obj_symbols
|
||||||
#include "elf-bfd.h"
|
#include "elf-bfd.h"
|
||||||
|
|
||||||
|
#ifndef EXIT_FAILURE
|
||||||
|
#define EXIT_FAILURE 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* provide storage for subsystem, stack and heap data which may have been
|
/* provide storage for subsystem, stack and heap data which may have been
|
||||||
passed in on the command line. Ld puts this data into a bfd_link_info
|
passed in on the command line. Ld puts this data into a bfd_link_info
|
||||||
@ -437,7 +442,7 @@ _bfd_default_error_handler (const char *fmt, ...)
|
|||||||
/* Reserve enough space for the existing format string. */
|
/* Reserve enough space for the existing format string. */
|
||||||
avail -= strlen (fmt) + 1;
|
avail -= strlen (fmt) + 1;
|
||||||
if (avail > 1000)
|
if (avail > 1000)
|
||||||
abort ();
|
_exit (EXIT_FAILURE);
|
||||||
|
|
||||||
p = fmt;
|
p = fmt;
|
||||||
while (1)
|
while (1)
|
||||||
@ -775,10 +780,6 @@ bfd_assert (const char *file, int line)
|
|||||||
/* A more or less friendly abort message. In libbfd.h abort is
|
/* A more or less friendly abort message. In libbfd.h abort is
|
||||||
defined to call this function. */
|
defined to call this function. */
|
||||||
|
|
||||||
#ifndef EXIT_FAILURE
|
|
||||||
#define EXIT_FAILURE 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void
|
void
|
||||||
_bfd_abort (const char *file, int line, const char *fn)
|
_bfd_abort (const char *file, int line, const char *fn)
|
||||||
{
|
{
|
||||||
@ -791,7 +792,7 @@ _bfd_abort (const char *file, int line, const char *fn)
|
|||||||
(_("BFD %s internal error, aborting at %s line %d\n"),
|
(_("BFD %s internal error, aborting at %s line %d\n"),
|
||||||
BFD_VERSION_STRING, file, line);
|
BFD_VERSION_STRING, file, line);
|
||||||
(*_bfd_error_handler) (_("Please report this bug.\n"));
|
(*_bfd_error_handler) (_("Please report this bug.\n"));
|
||||||
xexit (EXIT_FAILURE);
|
_exit (EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user