mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-22 17:55:57 +01:00
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:
@@ -10,8 +10,14 @@ CONFIG_OVERLAY_FS=y
|
|||||||
# https://cirosantilli.com/linux-kernel-module-cheat#squashfs
|
# https://cirosantilli.com/linux-kernel-module-cheat#squashfs
|
||||||
CONFIG_SQUASHFS=y
|
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
|
CONFIG_DEBUG_INFO=y
|
||||||
|
# >= 5.18
|
||||||
|
CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
|
||||||
|
|
||||||
CONFIG_DEBUG_KERNEL=y
|
CONFIG_DEBUG_KERNEL=y
|
||||||
CONFIG_GDB_SCRIPTS=y
|
CONFIG_GDB_SCRIPTS=y
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user