1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

core: add documentation on how to get line of failed assert()

This commit is contained in:
Martine Lenders 2016-09-27 22:36:29 +02:00 committed by Martine Lenders
parent f7056cf976
commit d724b7c9aa

View File

@ -41,6 +41,19 @@ extern const char assert_crash_message[];
*
* The purpose of this macro is to help programmers find bugs in their
* programs.
*
* If `NDEBUG` is not defined, a failed assertion generates output similar to:
*
* 0x89abcdef
* *** RIOT kernel panic:
* FAILED ASSERTION.
*
* ...
*
* Where 0x89abcdef is an address. This address can be used with tools like
* `addr2line` (or e.g. `arm-none-eabi-addr2line` for ARM-based code), `objdump`,
* or `gdb` (with the command `info line *(0x89abcdef)`) to identify the line
* the assertion failed in.
*/
#ifdef NDEBUG