jidong xiao wrote: > Hi, > > I compiled kernel 2.6.31.3-5 with kgdb enabled, but when I booted my > kernel, I found no kgdb code had been executed, as I understand, the > kernel should stay at some point and wait for response from another > machine, but the truth is it fully booted up just like kgdb is not > existing. > > (my config file shows KGDB options are enabled: > > CONFIG_HAVE_ARCH_KGDB=y > CONFIG_KGDB=y > CONFIG_KGDB_SERIAL_CONSOLE=y > # CONFIG_KGDB_TESTS is not set > >
Unless you patch in the kgdb8250 driver, you cannot use it. If you build the kernel documentation you would get a directory called Documentation/DocBook/kgdb. In there you would find information about kgdboc, which is the only I/O driver merged to the mainline kernel. > and my grub/menu file is: > > title kernel 2.6.31.3-5-default > kernel (hd0,0)/vmlinuz-2.6.31.3-5-default root=/dev/sda15 > console=ttyS0,9600 console=tty0 kgdbwait kgdb8250=0,9600 > initrd (hd0,0)/initrd-2.6.31.3-5-default > ) > You would want to use: kgdboc=ttyS0,9600 kgdbwait Jason. ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Kgdb-bugreport mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport
