1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2026-01-01 01:41:18 +01:00

cpu/esp_common: enable DEBUG_ASSERT_VERBOSE by default

Since there is not yet a working mechanism on ESPs to get the caller address within a function, `assert` always outputs 0x0 as the caller address. This makes absolutely no sense and makes debugging more difficult. `DEBUG_ASSERT_VERBOSE` is therefor enabled by default on ESPs.
This commit is contained in:
Gunar Schorcht 2025-03-29 18:40:59 +01:00
parent 5926a9e967
commit 4eccc8bf09

View File

@ -38,6 +38,12 @@ ifeq (xtensa,$(CPU_ARCH))
CFLAGS += -mlongcalls -mtext-section-literals
endif
# Since there is not yet a working mechanism on ESPs to get the caller address
# within a function, `assert` always outputs 0x0 as the caller address.
# This makes absolutely no sense and makes debugging more difficult.
# `DEBUG_ASSERT_VERBOSE` is therefore enabled by default on ESPs.
CFLAGS += -DDEBUG_ASSERT_VERBOSE
OPTIONAL_CFLAGS_BLACKLIST += -Wformat-overflow
OPTIONAL_CFLAGS_BLACKLIST += -Wformat-truncation
OPTIONAL_CFLAGS_BLACKLIST += -gz