debug: remove !OMIT_FRAME_POINTER
from EXCEPTION_STACK_TRACE
Not all stack trace implementation requires frame pointer, move that dependency to architecture Kconfig. Signed-off-by: Yong Cong Sin <ycsin@meta.com>
This commit is contained in:
parent
413b1cf409
commit
8a5823b474
4 changed files with 3 additions and 1 deletions
|
@ -168,6 +168,7 @@ config X86_EXCEPTION_STACK_TRACE
|
||||||
default y
|
default y
|
||||||
depends on EXCEPTION_STACK_TRACE
|
depends on EXCEPTION_STACK_TRACE
|
||||||
depends on DEBUG_INFO
|
depends on DEBUG_INFO
|
||||||
|
depends on !OMIT_FRAME_POINTER
|
||||||
help
|
help
|
||||||
Internal config to enable runtime stack traces on fatal exceptions.
|
Internal config to enable runtime stack traces on fatal exceptions.
|
||||||
|
|
||||||
|
|
|
@ -34,6 +34,7 @@ config X86_EXCEPTION_STACK_TRACE
|
||||||
default y
|
default y
|
||||||
depends on EXCEPTION_STACK_TRACE
|
depends on EXCEPTION_STACK_TRACE
|
||||||
depends on DEBUG_INFO
|
depends on DEBUG_INFO
|
||||||
|
depends on !OMIT_FRAME_POINTER
|
||||||
depends on NO_OPTIMIZATIONS
|
depends on NO_OPTIMIZATIONS
|
||||||
help
|
help
|
||||||
Internal config to enable runtime stack traces on fatal exceptions.
|
Internal config to enable runtime stack traces on fatal exceptions.
|
||||||
|
|
|
@ -382,7 +382,6 @@ config SYMTAB
|
||||||
config EXCEPTION_STACK_TRACE
|
config EXCEPTION_STACK_TRACE
|
||||||
bool "Attempt to print stack traces upon exceptions"
|
bool "Attempt to print stack traces upon exceptions"
|
||||||
default y
|
default y
|
||||||
depends on !OMIT_FRAME_POINTER
|
|
||||||
help
|
help
|
||||||
If the architecture fatal handling code supports it, attempt to
|
If the architecture fatal handling code supports it, attempt to
|
||||||
print a stack trace of function memory addresses when an
|
print a stack trace of function memory addresses when an
|
||||||
|
|
|
@ -33,6 +33,7 @@ tests:
|
||||||
extra_configs:
|
extra_configs:
|
||||||
- CONFIG_NO_OPTIMIZATIONS=y
|
- CONFIG_NO_OPTIMIZATIONS=y
|
||||||
- CONFIG_DEBUG_INFO=y
|
- CONFIG_DEBUG_INFO=y
|
||||||
|
- CONFIG_OMIT_FRAME_POINTER=n
|
||||||
integration_platforms:
|
integration_platforms:
|
||||||
- qemu_x86
|
- qemu_x86
|
||||||
- qemu_x86_64
|
- qemu_x86_64
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue