]> git.baikalelectronics.ru Git - kernel.git/commit
kdb,kgdb: Implement switch and pass buffer from kdb -> gdb
authorJason Wessel <jason.wessel@windriver.com>
Mon, 23 May 2011 18:17:41 +0000 (13:17 -0500)
committerJason Wessel <jason.wessel@windriver.com>
Mon, 1 Aug 2011 18:23:59 +0000 (13:23 -0500)
commit70493f85347dea31888fe22ef31f6e35fb65a5ef
tree9750abdc0f876f38642c06c188b152324c512fdb
parent7e0e43d6bca94589d715d09d09b15b3d7d995ff6
kdb,kgdb: Implement switch and pass buffer from kdb -> gdb

When switching from kdb mode to kgdb mode packets were getting lost
depending on the size of the fifo queue of the serial chip.  When gdb
initially connects if it is in kdb mode it should entirely send any
character buffer over to the gdbstub when switching connections.

Previously kdb was zero'ing out the character buffer and this could
lead to gdb failing to connect at all, or a lengthy pause could occur
on the initial connect.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
kernel/debug/gdbstub.c
kernel/debug/kdb/kdb_debugger.c
kernel/debug/kdb/kdb_io.c
kernel/debug/kdb/kdb_private.h