Provide a way for programs to recognize BFD_ASSERT calls.
authorHans-Peter Nilsson <hp@axis.com>
Thu, 26 Apr 2012 13:49:52 +0000 (13:49 +0000)
committerHans-Peter Nilsson <hp@axis.com>
Thu, 26 Apr 2012 13:49:52 +0000 (13:49 +0000)
commit2b56b3f35a62c569ff20889aa22aef7fde73f81d
tree4397b213012611d21b81aa9561257df96bbf272e
parent2c54b4f42276b990ee7fd98a5f7c4629dac8f50b
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.
bfd/ChangeLog
bfd/bfd-in2.h
bfd/bfd.c
bfd/libbfd-in.h
bfd/libbfd.h