FRV: Reinstate null behaviour for the GDB remote protocol 'p' command
commita7f5378e2449fc8ae3f92739a6cc2239748ef86a
authorDavid Howells <dhowells@redhat.com>
Wed, 9 Jun 2010 18:52:22 +0000 (9 19:52 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 9 Jun 2010 19:42:44 +0000 (9 12:42 -0700)
treee9eecb629fa9f5b2dd55e281821e87c01d8a790f
parent9aad9c0d939e97c144388630a2d3f6918e61f672
FRV: Reinstate null behaviour for the GDB remote protocol 'p' command

Reinstate the null behaviour that the in-kernel gdbstub had for the GDB
remote protocol 'p' command (retrieve a single register value) prior to
commit 7ca8b9c0dafd ("frv: extend gdbstub to support more features of
gdb").

Before that, the 'p' command just returned an empty reply, which causes
gdb to then go and use the 'g' command.  However, since that commit, the
'p' command returns an error string, which causes gdb to abort its
connection to the target.

Not all gdb versions are affected, some use try 'g' first, and if that
works, don't bother with 'p', and so don't see the error.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/frv/kernel/gdb-stub.c