From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MCOlX-0001Wp-Mw for qemu-devel@nongnu.org; Thu, 04 Jun 2009 22:02:43 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MCOlS-0001SC-Uw for qemu-devel@nongnu.org; Thu, 04 Jun 2009 22:02:43 -0400 Received: from [199.232.76.173] (port=37084 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MCOlS-0001S3-QG for qemu-devel@nongnu.org; Thu, 04 Jun 2009 22:02:38 -0400 Received: from mx20.gnu.org ([199.232.41.8]:45276) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MCOlR-0005G3-Se for qemu-devel@nongnu.org; Thu, 04 Jun 2009 22:02:38 -0400 Received: from mail.codesourcery.com ([65.74.133.4]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MCOlM-0003jy-0t for qemu-devel@nongnu.org; Thu, 04 Jun 2009 22:02:32 -0400 From: Nathan Froyd Date: Thu, 4 Jun 2009 19:02:28 -0700 Message-Id: <1244167348-806-1-git-send-email-froydnj@codesourcery.com> Subject: [Qemu-devel] [PATCH] gdb-xml: fix hacks in powerpc register numbering List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org The powerpc xml files contained a hack--an empty, non-existent register--for getting the register numbers to line up for newer (XML-aware) and older (non-XML-aware) GDB. While this hack worked in some cases, it didn't work in all cases, notably when the user used `finish' or `continue': GDB would attempt to read the non-existent register and QEMU would complain. This patch fixes things up properly. Instead of inserting a fake register, we explicitly declare the floating-point and SPE registers to start at 71. This action accomplishes the same thing as the nasty hack, except that now GDB never tries to fetch the non-existant register 70. Signed-off-by: Nathan Froyd --- gdb-xml/power-core.xml | 9 --------- gdb-xml/power-fpu.xml | 2 +- gdb-xml/power-spe.xml | 2 +- gdb-xml/power64-core.xml | 9 --------- 4 files changed, 2 insertions(+), 20 deletions(-) diff --git a/gdb-xml/power-core.xml b/gdb-xml/power-core.xml index dae13a6..0c69e8c 100644 --- a/gdb-xml/power-core.xml +++ b/gdb-xml/power-core.xml @@ -46,13 +46,4 @@ - - diff --git a/gdb-xml/power-fpu.xml b/gdb-xml/power-fpu.xml index d1ca3a3..3870551 100644 --- a/gdb-xml/power-fpu.xml +++ b/gdb-xml/power-fpu.xml @@ -7,7 +7,7 @@ - + diff --git a/gdb-xml/power-spe.xml b/gdb-xml/power-spe.xml index 1ec15d6..57740cc 100644 --- a/gdb-xml/power-spe.xml +++ b/gdb-xml/power-spe.xml @@ -7,7 +7,7 @@ - + diff --git a/gdb-xml/power64-core.xml b/gdb-xml/power64-core.xml index fef42e4..6cc1531 100644 --- a/gdb-xml/power64-core.xml +++ b/gdb-xml/power64-core.xml @@ -46,13 +46,4 @@ - - -- 1.6.3.2