mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #5877 from miri64/core/doc/assert-addr2line
core: add documentation on how to get line of failed assert()
This commit is contained in:
commit
057274b1fb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user