How to compile Linux kernel 5.19.8 with symbols and debugging enabled?

knave

New Member
Joined
Sep 13, 2022
Messages
5
Reaction score
0
Credits
76
In the config file, all I can find is the option "CONFIG_DEBUG_INFO_NONE". I am not sure what I should set this to, and what other config options must be set in order for the kernel to be compiled with symbols for debugging. I am trying to use GDB to debug the kernel.
 


osprey

Well-Known Member
Joined
Apr 15, 2022
Messages
691
Reaction score
574
Credits
6,441
If you want kernel debug info, set: CONFIG_DEBUG_INFO=y, and leave CONFIG_DEBUG_INFO_NONE as unset. It's a double negative: CONFIG_DEBUG_INFO_NONE=n, that is, you don't want "none".
 
MALIBAL Linux Laptops

Linux Laptops Custom Built for You
MALIBAL is an innovative computer manufacturer that produces high-performance, custom laptops for Linux.

For more info, visit: https://www.malibal.com


Latest posts

Top