From: ml-kernelnewbies@spiro.trikaliotis.net (Spiro Trikaliotis) Date: Mon, 27 Jun 2011 20:48:22 +0200 Subject: KGDB command line options not working for kernel 2.6.32 In-Reply-To: <1308916684.53382.YahooMailRC@web161312.mail.bf1.yahoo.com> References: <719014.18741.qm@web161309.mail.bf1.yahoo.com> <20110624095111.GA5270@trikaliotis.net> <1308916684.53382.YahooMailRC@web161312.mail.bf1.yahoo.com> Message-ID: <20110627184822.GD15361@trikaliotis.net> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org Hello Shaji, * On Fri, Jun 24, 2011 at 04:58:04AM -0700 Shaji Yusuf wrote: > I root caused the issue by undoing my modifications and debugging again. The > reason why kgdbwait did not kick in was that my point of debug?was much before > kgdb module loading. I think I remember "kgdb early debugging" which says to compile the kgdb I/O driver not as a module, but directly in the kernel. http://www.kernel.org/doc/htmldocs/kgdb.html#CompileKGDB might give you a hint (I did not test it, though). I also see this: "If you build the kgdb I/O driver as a loadable kernel module kgdbwait will not do anything." (http://www.kernel.org/doc/htmldocs/kgdb.html#kgdbwait) This seems to proove my above point. > I think kgdb cannot be used for debugging my issue as i > need to debug an issue much close to console init. Is there any way I can make > kgdb load a little early? see above: Does thie help? > As you said the space between kgdboc=ttyS0,? and 115200 also does matter. :) HTH Spiro. -- Spiro R. Trikaliotis http://opencbm.sf.net/ http://www.trikaliotis.net/ http://www.viceteam.org/