]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
repair gdbstub to match the gdbserial protocol specification
authorJason Wessel <jason.wessel@windriver.com>
Thu, 22 Jul 2010 00:27:05 +0000 (19:27 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 14 Apr 2011 23:53:09 +0000 (16:53 -0700)
commit1c7c045e442d5b2ac65b4cf20e6e942eaacc7079
tree823fde1cbf8348dfd79292a2956f3d8b1a734ffc
parenteddded6c0566797b36dd64a6fa7e72dc781dc353
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