]> 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)
commit5c9128b98f4f0d076925969f878abcd3720e0dc2
tree9750abdc0f876f38642c06c188b152324c512fdb
parentb4dcea4f1af80d79dcd3526ff38ee32500f98ba0
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