debug: EXCEPTION_STACK_TRACE should depend on arch Kconfigs

Fix the dependencies of `CONFIG_EXCEPTION_STACK_TRACE`:
- Architecture-specific Kconfig, i.e.
  `X86_EXCEPTION_STACK_TRACE`, will be enabled automatically
  when all the dependencies are met.
- `EXCEPTION_STACK_TRACE` depends on architecture-specific
  Kconfig to be enabled.
- The stack trace implementations should be compiled only if
  user enables `CONFIG_EXCEPTION_STACK_TRACE`.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
This commit is contained in:
Yong Cong Sin 2024-05-25 14:16:42 +08:00 committed by Carles Cufí
commit 02770ad963
8 changed files with 14 additions and 14 deletions

View file

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