From 5a37791249c2dc6fe788fcb618a9dd9531695b84 Mon Sep 17 00:00:00 2001 From: blueswir1 Date: Tue, 13 Jan 2009 16:28:01 +0000 Subject: [PATCH] Fix gdbserver number of registers (Tristan Gingold) git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6280 c046a42c-6fe2-441c-8c8c-71466251a162 --- gdbstub.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gdbstub.c b/gdbstub.c index b8198ee29f..a3ff07aed9 100644 --- a/gdbstub.c +++ b/gdbstub.c @@ -694,7 +694,7 @@ static int cpu_gdb_write_register(CPUState *env, uint8_t *mem_buf, int n) #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 @@ static int cpu_gdb_read_register(CPUState *env, uint8_t *mem_buf, int n) 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) { -- 2.11.4.GIT