diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2012-04-26 13:49:52 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@axis.com> | 2012-04-26 13:49:52 +0000 |
commit | 2b56b3f35a62c569ff20889aa22aef7fde73f81d (patch) | |
tree | 4397b213012611d21b81aa9561257df96bbf272e /bfd/libbfd.h | |
parent | 2c54b4f42276b990ee7fd98a5f7c4629dac8f50b (diff) | |
download | gdb-2b56b3f35a62c569ff20889aa22aef7fde73f81d.zip gdb-2b56b3f35a62c569ff20889aa22aef7fde73f81d.tar.gz gdb-2b56b3f35a62c569ff20889aa22aef7fde73f81d.tar.bz2 |
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.h')
-rw-r--r-- | bfd/libbfd.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/libbfd.h b/bfd/libbfd.h index cc293bc..ab3c897 100644 --- a/bfd/libbfd.h +++ b/bfd/libbfd.h @@ -122,6 +122,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. */ |