Revive GDB source code by enabling debug info for kernel >= v5.18

Fix https://github.com/cirosantilli/linux-kernel-module-cheat/issues/318
This commit is contained in:
Ciro Santilli
2025-04-29 13:40:41 +01:00
parent bcfea26ca1
commit 3d84eccc43

View File

@@ -10,8 +10,14 @@ CONFIG_OVERLAY_FS=y
# https://cirosantilli.com/linux-kernel-module-cheat#squashfs
CONFIG_SQUASHFS=y
# GDB debugging.
## GDB debugging.
# https://unix.stackexchange.com/questions/712513/why-is-the-flag-config-debug-info-reset-when-building-the-linux-kernel
# < 5.18
CONFIG_DEBUG_INFO=y
# >= 5.18
CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
CONFIG_DEBUG_KERNEL=y
CONFIG_GDB_SCRIPTS=y