LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Compiling With Debug Info Does Not Work? (https://www.linuxquestions.org/questions/linux-general-1/compiling-with-debug-info-does-not-work-570454/)

spotmax777 07-18-2007 01:30 PM

Compiling With Debug Info Does Not Work?
 
I am trying to compile Linux 2.6.10 with debug info using the "make menuconfig" Kernel_Hacking-->Kernel_debugging-->Compile_the_kernel_with_debug_info selection.

I can see that the C files are compiled with the -g option, but the resultant vmlinux ELF file contains debug information for only the head.S assembler file.

Is there a strip command happening somewhere? Or does this menuconfig option simply not work?

Also, it compiles with "-g -O2". Is there a way to compile it with "-g O0"?

Best Regards,
Jerry


All times are GMT -5. The time now is 12:49 PM.