On Dec 3, 2007, at 10:06 PM, Julian Elischer wrote: > first the kernel panic'd then I was in kdb on the serial console > (com1) > then I typed "gdb" followed by 's'. I'm not worried so much about > the panic > as its an experimental kernel, but by not being able to debug it.. Seems everything is just right. The only thing I can think of is that the GDB stub in the kernel doesn't get the packets as they are intended. It seems that even if gdb sends the ack. (i.e. the + character), the GDB stub retransmits its original packet. This seems to indicate that the GDB stub doesn't receive the ack. Try the following patch and see if the kernel receives the packets correctly as well: Index: gdb_main.c =================================================================== RCS file: /home/ncvs/src/sys/gdb/gdb_main.c,v retrieving revision 1.7 diff -u -r1.7 gdb_main.c --- gdb_main.c 26 May 2006 11:52:59 -0000 1.7 +++ gdb_main.c 4 Dec 2007 06:15:04 -0000 _at__at_ -115,7 +115,7 _at__at_ thr_iter = NULL; while (gdb_rx_begin() == 0) { - /* printf("GDB: got '%s'\n", gdb_rxp); */ + printf("GDB: got '%s'\n", gdb_rxp); switch (gdb_rx_char()) { case '?': /* Last signal. */ gdb_tx_begin('S'); FYI, -- Marcel Moolenaar xcllnt_at_mac.comReceived on Tue Dec 04 2007 - 05:15:58 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:23 UTC