summaryrefslogtreecommitdiff
path: root/gdb-xml/power-spe.xml
diff options
context:
space:
mode:
authorNathan Froyd <froydnj@codesourcery.com>2009-06-04 19:02:28 -0700
committerAurelien Jarno <aurelien@aurel32.net>2009-07-12 23:42:05 +0200
commit22555301adabad6ef2401a7f02bfc2337044ddbd (patch)
tree6b846416854416146d0c7e12d58fb4aec14a0066 /gdb-xml/power-spe.xml
parent33890b3e0deb8891d5b1241671eb3979f8896bf3 (diff)
downloadqemu-22555301adabad6ef2401a7f02bfc2337044ddbd.tar.gz
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 <froydnj@codesourcery.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'gdb-xml/power-spe.xml')
-rw-r--r--gdb-xml/power-spe.xml2
1 files changed, 1 insertions, 1 deletions
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 @@
<!DOCTYPE feature SYSTEM "gdb-target.dtd">
<feature name="org.gnu.gdb.power.spe">
- <reg name="ev0h" bitsize="32"/>
+ <reg name="ev0h" bitsize="32" regnum="71"/>
<reg name="ev1h" bitsize="32"/>
<reg name="ev2h" bitsize="32"/>
<reg name="ev3h" bitsize="32"/>