From ea00e04382cb1ce26086a8fe0ef26330cbf49cee Mon Sep 17 00:00:00 2001 From: Yong Cong Sin Date: Wed, 29 May 2024 23:40:39 +0800 Subject: [PATCH] arch: x86: select DEBUG_INFO in X86_EXCEPTION_STACK_TRACE Select `DEBUG_INFO` instead of depending on it. Signed-off-by: Yong Cong Sin --- arch/x86/core/Kconfig.ia32 | 2 +- arch/x86/core/Kconfig.intel64 | 2 +- tests/arch/common/stack_unwind/testcase.yaml | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/x86/core/Kconfig.ia32 b/arch/x86/core/Kconfig.ia32 index 25cf5c93cb9..770f6ff4d6d 100644 --- a/arch/x86/core/Kconfig.ia32 +++ b/arch/x86/core/Kconfig.ia32 @@ -166,8 +166,8 @@ endmenu config X86_EXCEPTION_STACK_TRACE bool default y + select DEBUG_INFO depends on EXCEPTION_STACK_TRACE - depends on DEBUG_INFO depends on !OMIT_FRAME_POINTER help Internal config to enable runtime stack traces on fatal exceptions. diff --git a/arch/x86/core/Kconfig.intel64 b/arch/x86/core/Kconfig.intel64 index f519aa24435..36e7110f79a 100644 --- a/arch/x86/core/Kconfig.intel64 +++ b/arch/x86/core/Kconfig.intel64 @@ -32,8 +32,8 @@ config X86_EXCEPTION_STACK_SIZE config X86_EXCEPTION_STACK_TRACE bool default y + select DEBUG_INFO depends on EXCEPTION_STACK_TRACE - depends on DEBUG_INFO depends on !OMIT_FRAME_POINTER depends on NO_OPTIMIZATIONS help diff --git a/tests/arch/common/stack_unwind/testcase.yaml b/tests/arch/common/stack_unwind/testcase.yaml index eee2ffe3112..1699adeae5d 100644 --- a/tests/arch/common/stack_unwind/testcase.yaml +++ b/tests/arch/common/stack_unwind/testcase.yaml @@ -32,7 +32,6 @@ tests: arch_allow: x86 extra_configs: - CONFIG_NO_OPTIMIZATIONS=y - - CONFIG_DEBUG_INFO=y - CONFIG_OMIT_FRAME_POINTER=n integration_platforms: - qemu_x86