summaryrefslogtreecommitdiff
path: root/bfd/libbfd-in.h
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2012-04-26 13:49:49 +0000
committerHans-Peter Nilsson <hp@axis.com>2012-04-26 13:49:49 +0000
commitd6e144bcfb19638d016f544da1c41463f9dbc1e9 (patch)
tree8f5311467b02c3e4ba795a1cb95f293c8b2217f0 /bfd/libbfd-in.h
parent76453fc99ff58d6bc1909d0a7e5741bf38e8a85f (diff)
downloadbinutils-redhat-d6e144bcfb19638d016f544da1c41463f9dbc1e9.tar.gz
Provide a way for programs to recognize BFD_ASSERT calls.
* bfd.c (bfd_assert_handler_type): New API type. (bfd_set_assert_handler, bfd_get_assert_handler): New API functions. (_bfd_assert_handler): New variable. (_bfd_default_assert_handler): New function. (bfd_assert): Call _bfd_assert_handler, not _bfd_error_handler. * libbfd-in.h (_bfd_assert_handler): Declare. * libbfd.h, bfd-in2.h: Regenerate.
Diffstat (limited to 'bfd/libbfd-in.h')
-rw-r--r--bfd/libbfd-in.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/libbfd-in.h b/bfd/libbfd-in.h
index 640768ee88..45f0b0cf0d 100644
--- a/bfd/libbfd-in.h
+++ b/bfd/libbfd-in.h
@@ -117,6 +117,7 @@ extern void *bfd_zmalloc2
extern void _bfd_default_error_handler (const char *s, ...);
extern bfd_error_handler_type _bfd_error_handler;
+extern bfd_assert_handler_type _bfd_assert_handler;
/* These routines allocate and free things on the BFD's objalloc. */