Completely Debug Kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hey All,

This question has been asked before but no complete solution was given.


Is there any way to build a completely debug kernel as opposed to a release kernel.? Is yes, how can i do that.?

Basically i need to disable all (or as many as possible) compile time optimizations. I tried disabling the O3 flag & i was able to successfully able to get the vmlinux file (after disabling many compile time options & drivers which were failing without the O3 flag). But when I tried to boot this kernel, the kernel hung during startup.

I think there are some files in the kernel source which MUST be compiled with the O3 flag. Does anybody have a list of such files. If yes, we can write a wrapper around the kernel makefile to build these files with the O3 flag, others without the O3 flag and then "stitch" these up to get vmlinux.

the problem is gdb goes haywire with these compile time optimizations & it is a pain in the neck to debug these kernels.

Venkatram

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux