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.
 


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".
 

Members online


Latest posts

Top