From: Nathan Froyd Date: Fri, 5 Jun 2009 02:02:28 +0000 (-0700) Subject: gdb-xml: fix hacks in powerpc register numbering X-Git-Tag: v0.11.0-rc0~99 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=22555301adabad6ef2401a7f02bfc2337044ddbd;p=thirdparty%2Fqemu.git 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 --- diff --git a/gdb-xml/power-core.xml b/gdb-xml/power-core.xml index dae13a67ef3..0c69e8c8a79 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 d1ca3a3d5c1..38705515d45 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 1ec15d66a1f..57740cc5cb7 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 fef42e41667..6cc15312018 100644 --- a/gdb-xml/power64-core.xml +++ b/gdb-xml/power64-core.xml @@ -46,13 +46,4 @@ - -