debugging enabled? (was Re: KGDB command line options not working for kernel 2.6.32)

Mulyadi Santosa mulyadi.santosa at gmail.com
Mon Jun 27 10:51:53 EDT 2011


>I have one question in this context. Should we disable optimization when >building the kernel when we wish to enable kgdb or should we leave it intact.

Whenever possible, yes...disable optimization.... -O option and -g in
gcc don't play nicely together according to my experience. The DWARF
info will be somewhat fuzzed or even "corrupted"....so it might point
to wrong source line etc

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com



More information about the Kernelnewbies mailing list