• We did not send an email asking for donations - please read this post.

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

Active Member
Joined
Apr 15, 2022
Messages
244
Reaction score
142
Credits
2,235
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".
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Linux.org Hosting Donations
Consider making a donation

Members online


Top