| |||
| Home > Compiler Coding Practices > Identification of integer division-by-zero errors in C code | |||
On entry into __aeabi_idiv0(), the link
register LR contains the address of the instruction after the
call to the __aeabi_uidiv() division routine
in your application code. The offending line in the source code
can be identified by looking up the line of C code in the debugger
at the address given by LR.