coredump: Guard new kconfig for only supported arch

Add new config, ARCH_SUPPORTS_COREDUMP_THREADS, and
only enable it for ARM CORTEX M where the gdb server
can support it.

Signed-off-by: Mark Holden <mholden@meta.com>
This commit is contained in:
Mark Holden 2024-07-10 11:52:17 -07:00 committed by Anas Nashif
parent a56e2f86cc
commit e6b683d310
2 changed files with 6 additions and 0 deletions

View file

@ -32,6 +32,7 @@ config ARM
bool
select ARCH_IS_SET
select ARCH_SUPPORTS_COREDUMP if CPU_CORTEX_M
select ARCH_SUPPORTS_COREDUMP_THREADS if CPU_CORTEX_M
# FIXME: current state of the code for all ARM requires this, but
# is really only necessary for Cortex-M with ARM MPU!
select GEN_PRIV_STACKS
@ -654,6 +655,9 @@ config ARCH_HAS_NESTED_EXCEPTION_DETECTION
config ARCH_SUPPORTS_COREDUMP
bool
config ARCH_SUPPORTS_COREDUMP_THREADS
bool
config ARCH_SUPPORTS_ARCH_HW_INIT
bool

View file

@ -61,6 +61,7 @@ config DEBUG_COREDUMP_MEMORY_DUMP_MIN
config DEBUG_COREDUMP_MEMORY_DUMP_THREADS
bool "Threads"
depends on !SMP
depends on ARCH_SUPPORTS_COREDUMP_THREADS
select THREAD_STACK_INFO
select DEBUG_THREAD_INFO
select DEBUG_COREDUMP_THREADS_METADATA
@ -100,6 +101,7 @@ config DEBUG_COREDUMP_SHELL
config DEBUG_COREDUMP_THREADS_METADATA
bool "Threads metadata"
depends on !SMP
depends on ARCH_SUPPORTS_COREDUMP_THREADS
select DEBUG_THREAD_INFO
help
Core dump will contain the threads metadata section containing