You can trap and identify integer division-by-zero errors by re-implementing the appropriate C library helper functions.
The run-time divide routines have weak references to
__aeabi_idiv0() is not defined, then the
reference is ignored and the divide routines return zero.
If you provide your own version of
then the divide routines call this function. The default library
raise SIGFPE with type
- Other information