Skip to content

Commit

Permalink
debug: remove DEBUG_INFO from EXCEPTION_STACK_TRACE
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
ycsin committed May 28, 2024
1 parent 3169990 commit dd1c5a4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions arch/x86/core/Kconfig.ia32
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
1 change: 1 addition & 0 deletions arch/x86/core/Kconfig.intel64
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 0 additions & 1 deletion subsys/debug/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,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
Expand Down

0 comments on commit dd1c5a4

Please sign in to comment.