public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] configs/debug: set CONFIG_DEBUG_INFO=y properly
@ 2022-03-01 20:29 Qian Cai
  2022-03-08 10:42 ` Daniel Thompson
  0 siblings, 1 reply; 5+ messages in thread
From: Qian Cai @ 2022-03-01 20:29 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel, Qian Cai

CONFIG_DEBUG_INFO can't be set by user directly, so set
CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y instead. Otherwise, we end
up with no debuginfo in vmlinux which is a big no-no for kernel
debugging.

Signed-off-by: Qian Cai <quic_qiancai@quicinc.com>
---
 kernel/configs/debug.config | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/configs/debug.config b/kernel/configs/debug.config
index e9ffb0cc1eec..07df6d93c4df 100644
--- a/kernel/configs/debug.config
+++ b/kernel/configs/debug.config
@@ -16,7 +16,7 @@ CONFIG_SYMBOLIC_ERRNAME=y
 #
 # Compile-time checks and compiler options
 #
-CONFIG_DEBUG_INFO=y
+CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
 CONFIG_DEBUG_SECTION_MISMATCH=y
 CONFIG_FRAME_WARN=2048
 CONFIG_SECTION_MISMATCH_WARN_ONLY=y
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-03-08 15:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-01 20:29 [PATCH] configs/debug: set CONFIG_DEBUG_INFO=y properly Qian Cai
2022-03-08 10:42 ` Daniel Thompson
2022-03-08 13:56   ` Qian Cai
2022-03-08 14:30     ` Daniel Thompson
2022-03-08 15:11       ` Qian Cai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox