lkml.org 
[lkml]   [2012]   [Aug]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
Subjectcompile a kernel for kgdb with less "optimized out"
From
I think those who use kgdb must hate this sentence  "optimized out". I  
have tried many times to build a kernel with less optimization but failed.
today,I found a trick method ,just get rid of the -O2 and -Os on the top
level of the kernel source and add -O2 for the arch/x86 directory,it
works !.I saw much "optimized out" now.

I build the kernel of centos6, with kernel 2.6.32. I don't know whether it
works with kernel of other versions ,but it worth a try.


\
 
 \ /
  Last update: 2012-08-10 05:41    [W:0.027 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site