diff options
author | Ian Lance Taylor <ian@airs.com> | 1999-09-11 21:51:55 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1999-09-11 21:51:55 +0000 |
commit | c0bed66d0947bee6d6e71ac26cba4707464d5922 (patch) | |
tree | 52aebfde2f30e98da7f91503ed6e8cc162ca74b4 /bfd/libbfd-in.h | |
parent | a50f8417d5e6969db1193da0a056a7033a922bd1 (diff) | |
download | gdb-c0bed66d0947bee6d6e71ac26cba4707464d5922.zip gdb-c0bed66d0947bee6d6e71ac26cba4707464d5922.tar.gz gdb-c0bed66d0947bee6d6e71ac26cba4707464d5922.tar.bz2 |
1999-09-11 Donn Terry <donn@interix.com>
* libbfd-in.h (_bfd_abort): Declare.
(abort): Define.
* bfd.c (_bfd_abort): New function.
* libbfd.h: Rebuild.
Diffstat (limited to 'bfd/libbfd-in.h')
-rw-r--r-- | bfd/libbfd-in.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bfd/libbfd-in.h b/bfd/libbfd-in.h index f2ac823..79a176d 100644 --- a/bfd/libbfd-in.h +++ b/bfd/libbfd-in.h @@ -503,6 +503,17 @@ void bfd_assert PARAMS ((const char*,int)); #define BFD_FAIL() \ { bfd_assert(__FILE__,__LINE__); } +extern void _bfd_abort PARAMS ((const char *, int, const char *)) + ATTRIBUTE_NORETURN; + +/* if gcc, we can give a function name, too */ +#if !defined (__GNUC__) || __GNUC_MINOR__ <= 5 +#define __PRETTY_FUNCTION__ ((char *) NULL) +#endif + +#undef abort +#define abort() _bfd_abort (__FILE__, __LINE__, __PRETTY_FUNCTION__) + FILE * bfd_cache_lookup_worker PARAMS ((bfd *)); extern bfd *bfd_last_cache; |