> 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 <[email protected]> > Signed-off-by: Jason Wessel <[email protected]> > Signed-off-by: Dongdong Deng <[email protected]>
This is just Dongdong's patch. I've tested that on qemu(i386), with recent HEAD on 2.6.32.x tree. Both kgdb and kernel runs well. -- 潘震皓, Frank Pan Computer Science and Technology Tsinghua University _______________________________________________ stable mailing list [email protected] http://linux.kernel.org/mailman/listinfo/stable
