On Fri, Feb 5, 2010 at 5:49 AM, Philippe Auphelle <pauphe...@gmail.com> wrote: > FWIW, I had a similar problem first time I used kgdb. > I'm using it to debug modules, butand when I reached my own hard coded > int 3 in the module, I ended up with a timeout in gdb, andhost / > target connectivty was lost. > > It happens that when kgbd was entered from the module (target), the > serial port parms had been reset to some default value (like 9600) > instead of the 115200 I had set in the kernel parms (I would get the > right speed in the kernel on kgdbwait stop, the speed was messed after > that). So kgdb sent at 9600 while gdb in the dev host was set to > 115200.
Hi Philippe, Maybe you set a wrong format parms to kgdb, so it uses the default parms. You can add some printk at following functions, see what happens on that. linux-2.6/drivers/serial/serial_core.c : 2231 int uart_poll_init() { int baud = 9600; ... if (options) { uart_parse_options(options, &baud, &parity, &bits, &flow); /* here, the parms will be uesd by uart at last. */ printk(KERN_ERR "band:%d, parit: %d, bits: %d, flow:%d", baud, parity, bits, flow); return uart_set_options(port, NULL, baud, parity, bits, flow); } return 0; } Dongdong > stty to the right parms just before loading the module in the target > took care of that (would be nice if kgdb always set those parms back > when waking up, though :) ) > > Not sure this is related to the problem you have, but just in case it > could help... > > ------------------------------------------------------------------------------ > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the business > Choose flexible plans and management services without long-term contracts > Personal 24x7 support from experience hosting pros just a phone call away. > http://p.sf.net/sfu/theplanet-com > _______________________________________________ > Kgdb-bugreport mailing list > Kgdb-bugreport@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport > ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ Kgdb-bugreport mailing list Kgdb-bugreport@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport