Re: Debug symbols in kernel modules
On 10/07/2012 06:46 AM, Mulyadi Santosa wrote: > On Sat, Oct 6, 2012 at 6:31 PM, Aft nix wrote: >> Hi, >> >> When i write a makefile to build a kernel module how should i make >> sure that it contains debugging symbols? > > IIRC, it's in kernel hacking section during make config/menuconfig/xconfig. > > Find "kernel debug" or something like that. Then check the resulting > config. You should find that CONFIG_DEBUG_INFO=y > > Or...if it's a stock kernel from your distro repository, just install > the kernel debug symbol package. > Thanks for the reply. ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: Debug symbols in kernel modules
On Sat, Oct 6, 2012 at 6:31 PM, Aft nix wrote: > Hi, > > When i write a makefile to build a kernel module how should i make > sure that it contains debugging symbols? IIRC, it's in kernel hacking section during make config/menuconfig/xconfig. Find "kernel debug" or something like that. Then check the resulting config. You should find that CONFIG_DEBUG_INFO=y Or...if it's a stock kernel from your distro repository, just install the kernel debug symbol package. -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Debug symbols in kernel modules
Hi, When i write a makefile to build a kernel module how should i make sure that it contains debugging symbols? So that when i will use gdb over serial line to debug the module, i can use "add-symbol-file"? -- -aft ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies