KGDB command line options not working for kernel 2.6.32

Spiro Trikaliotis ml-kernelnewbies at spiro.trikaliotis.net
Mon Jun 27 14:48:22 EDT 2011


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/



More information about the Kernelnewbies mailing list