5.57 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.

Related concepts
5.54 Integer division-by-zero errors in C code
5.55 About trapping integer division-by-zero errors with __aeabi_idiv0()
5.56 About trapping integer division-by-zero errors with __rt_raise()
5.58 Examining parameters when integer division-by-zero errors occur in C code
Related information
Run-time ABI for the ARM Architecture
Non-ConfidentialPDF file icon PDF versionARM DUI0472J
Copyright © 2010-2013 ARM. All rights reserved.