kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* debugging enabled? (was Re: KGDB command line options not working for kernel 2.6.32)
@ 2011-06-27 14:51 Mulyadi Santosa
  2011-06-27 18:40 ` Spiro Trikaliotis
  0 siblings, 1 reply; 6+ messages in thread
From: Mulyadi Santosa @ 2011-06-27 14:51 UTC (permalink / raw)
  To: kernelnewbies

>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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-06-28 17:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-27 14:51 debugging enabled? (was Re: KGDB command line options not working for kernel 2.6.32) Mulyadi Santosa
2011-06-27 18:40 ` Spiro Trikaliotis
2011-06-28  1:51   ` Mulyadi Santosa
2011-06-28  6:25     ` Prabhu nath
2011-06-28 10:11       ` Mulyadi Santosa
2011-06-28 17:41       ` Dave Hylands

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).