Hi, I have been trying to use Kgdb (kernel 2.6.28) to debug a BeagleBoard (an ARM A8 board) over serial, but it seems that step commands are a bit of a problem. When Kgdb receives an 's' packet it doesn't populate the remcom_out_buffer with any sort of response. However, according to the gdb remote protocol the response should be one of S, T, W, X, O, F (http://sourceware.org/gdb/current/onlinedocs/gdb/Stop-Reply-Packets.html).
I have tested with GDB 6.8 and 7.0, and the result is the same: (gdb) set debug serial 1 (gdb) set debug remote 1 (gdb) step arch_kgdb_breakpoint () at kernel/kgdb.c:1731 1731 wmb(); /* Sync point before breakpoint */ (gdb) Sending packet: $mc0088b24,4#c8...[ r +]Ack [$][f][f][d][e][f][f][e][7][#][f][d]Packet received: ffdeffe7 Sending packet: $vCont?#49...[+]Ack [$][#][0][0]Packet received: Packet vCont (verbose-resume) is NOT supported Sending packet: $Hc0#db...[+]Ack [$][O][K][#][9][a]Packet received: OK Sending packet: $s#73...[+]Ack [$][#][0][0]Packet received: warning: Invalid remote reply: After the invalid reply gdb hangs, although I can restart and reconnect without any problems. I tried putting 'S00' into the remcom_out_buffer and everything seems to work as expected, but I guess there is a more appropriate signal to return. Google turns up a number of other reports of the same problem, the most detailed discussion of the issue is here: http://osdir.com/ml/kernel.debugging.kgdb.bugs/2006-01/msg00061.html Thanks a lot, George This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Kgdb-bugreport mailing list Kgdb-bugreport@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport