From mboxrd@z Thu Jan 1 00:00:00 1970 From: mulyadi.santosa@gmail.com (Mulyadi Santosa) Date: Mon, 27 Jun 2011 21:51:53 +0700 Subject: debugging enabled? (was Re: KGDB command line options not working for kernel 2.6.32) Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org >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