]> git.baikalelectronics.ru Git - kernel.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)
committerJason Wessel <jason.wessel@windriver.com>
Thu, 22 Jul 2010 00:27:05 +0000 (19:27 -0500)
commitc345bd1d3129d551f7eaa35276f9bb8700f64c97
tree98e49fdc15e9db7eb45e91571ca6187f9a5cf516
parent2a6b29d6b9d61810116b91ae977306e7ad9d382f
repair gdbstub to match the gdbserial protocol specification

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.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Dongdong Deng <dongdong.deng@windriver.com>
kernel/debug/gdbstub.c