Skip to content
Snippets Groups Projects
Commit 057274b1 authored by Kaspar Schleiser's avatar Kaspar Schleiser Committed by GitHub
Browse files

Merge pull request #5877 from miri64/core/doc/assert-addr2line

core: add documentation on how to get line of failed assert()
parents ed67143a d724b7c9
Branches
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment