repair gdbstub to match the gdbserial protocol specification
commit257a8cc47329978d63f448e5e778a65cab7e68ca
authorJason Wessel <jason.wessel@windriver.com>
Thu, 22 Jul 2010 00:27:05 +0000 (21 19:27 -0500)
committerWilly Tarreau <w@1wt.eu>
Sat, 30 Apr 2011 14:53:32 +0000 (30 16:53 +0200)
treef0462d737fd414c80cf19963693db56fdebbf80a
parenta07cadd3a6ae614a805963b6414f4c9446ce0edb
repair gdbstub to match the gdbserial protocol specification

commit fb82c0ff27b2c40c6f7a3d1a94cafb154591fa80 upstream.

The gdbserial protocol handler should return an empty packet instead
of an error string when ever it responds to a command it does not
implement.

The problem cases come from a debugger client sending
qTBuffer, qTStatus, qSearch, qSupported.

The incorrect response from the gdbstub leads the debugger clients to
not function correctly.  Recent versions of gdb will not detach correctly as a result of this behavior.

Backport-request-by: Frank Pan <frankpzh@gmail.com>
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Dongdong Deng <dongdong.deng@windriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
kernel/kgdb.c