From 22555301adabad6ef2401a7f02bfc2337044ddbd Mon Sep 17 00:00:00 2001 From: Nathan Froyd Date: Thu, 4 Jun 2009 19:02:28 -0700 Subject: gdb-xml: fix hacks in powerpc register numbering 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 Signed-off-by: Aurelien Jarno --- gdb-xml/power-spe.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb-xml/power-spe.xml') diff --git a/gdb-xml/power-spe.xml b/gdb-xml/power-spe.xml index 1ec15d66a1..57740cc5cb 100644 --- a/gdb-xml/power-spe.xml +++ b/gdb-xml/power-spe.xml @@ -7,7 +7,7 @@ - + -- cgit v1.2.1