debug: remove DEBUG_INFO from EXCEPTION_STACK_TRACE

The `DEBUG_INFO` in the `EXCEPTION_STACK_TRACE` is only
required by x86. Move that to `X86_EXCEPTION_STACK_TRACE`
instead.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
This commit is contained in:
Yong Cong Sin 2024-05-25 12:40:13 +08:00 committed by Carles Cufí
commit 413b1cf409
5 changed files with 3 additions and 2 deletions

View file

@ -167,6 +167,7 @@ config X86_EXCEPTION_STACK_TRACE
bool
default y
depends on EXCEPTION_STACK_TRACE
depends on DEBUG_INFO
help
Internal config to enable runtime stack traces on fatal exceptions.

View file

@ -33,6 +33,7 @@ config X86_EXCEPTION_STACK_TRACE
bool
default y
depends on EXCEPTION_STACK_TRACE
depends on DEBUG_INFO
depends on NO_OPTIMIZATIONS
help
Internal config to enable runtime stack traces on fatal exceptions.

View file

@ -382,7 +382,6 @@ config SYMTAB
config EXCEPTION_STACK_TRACE
bool "Attempt to print stack traces upon exceptions"
default y
depends on DEBUG_INFO
depends on !OMIT_FRAME_POINTER
help
If the architecture fatal handling code supports it, attempt to

View file

@ -5,4 +5,3 @@ CONFIG_LOG_BUFFER_SIZE=2048
CONFIG_EXCEPTION_STACK_TRACE=y
CONFIG_DEBUG=y
CONFIG_DEBUG_INFO=y

View file

@ -32,6 +32,7 @@ tests:
arch_allow: x86
extra_configs:
- CONFIG_NO_OPTIMIZATIONS=y
- CONFIG_DEBUG_INFO=y
integration_platforms:
- qemu_x86
- qemu_x86_64