target-m68k: fix a typo in 'P' packet processing
authorKazu Hirata <kazu@codesourcery.com>
Thu, 14 Jan 2010 17:08:00 +0000 (09:08 -0800)
committerAurelien Jarno <aurelien@aurel32.net>
Thu, 14 Jan 2010 19:00:23 +0000 (20:00 +0100)
commit903f841e47ebf1258b5decd019e7d941a0d4d342
tree284ed68b4e71c20e8c004ed3c6e5e3b8013737e0
parent97c6ced2cae90e07794b81d5ae5ce92f0c1828a1
target-m68k: fix a typo in 'P' packet processing

Attached is a patch to fix a typo in 'P' packet processing for M68K.

Without this patch, QEMU fails to honor GDB's P packets from GDB
(writing to registers) for the address registers (A0 - A7).

The problem is because of an obvious typo.  Notice that the second
"if" condition is meant to be n < 16 in:

  if (n < 8) {
    :
  } else if (n < 8) {

Signed-off-by: Kazu Hirata <kazu@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
gdbstub.c