[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] sparc gdbserver: fix number of regs
From: |
Tristan Gingold |
Subject: |
[Qemu-devel] [PATCH] sparc gdbserver: fix number of regs |
Date: |
Tue, 13 Jan 2009 16:14:19 +0100 |
Hi,
gdbstubs.c set the number of regs for sparc32 to 73 but gdb expects
only 72. As a consequence, gdb
doesn't accept 'g' packets (packets too long).
This patch reduces the number of registers to 72. This is harmless as
the 72nd register is not used and
gdb accepts packets that contains less registers.
Tristan.
--- gdbstub.c (revision 6277)
+++ gdbstub.c (working copy)
@@ -694,7 +694,7 @@
#if defined(TARGET_SPARC64) && !defined(TARGET_ABI32)
#define NUM_CORE_REGS 86
#else
-#define NUM_CORE_REGS 73
+#define NUM_CORE_REGS 72
#endif
#ifdef TARGET_ABI32
@@ -728,7 +728,7 @@
case 69: GET_REGA(env->npc);
case 70: GET_REGA(env->fsr);
case 71: GET_REGA(0); /* csr */
- case 72: GET_REGA(0);
+ default: GET_REGA(0);
}
#else
if (n < 64) {
- [Qemu-devel] [PATCH] sparc gdbserver: fix number of regs,
Tristan Gingold <=