aboutsummaryrefslogtreecommitdiff
path: root/bfd/libbfd.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-09-11 21:51:55 +0000
committerIan Lance Taylor <ian@airs.com>1999-09-11 21:51:55 +0000
commitc0bed66d0947bee6d6e71ac26cba4707464d5922 (patch)
tree52aebfde2f30e98da7f91503ed6e8cc162ca74b4 /bfd/libbfd.h
parenta50f8417d5e6969db1193da0a056a7033a922bd1 (diff)
downloadgdb-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.h')
-rw-r--r--bfd/libbfd.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/bfd/libbfd.h b/bfd/libbfd.h
index 9a252ee..4918d26 100644
--- a/bfd/libbfd.h
+++ b/bfd/libbfd.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;