summaryrefslogtreecommitdiff
path: root/gdb/features
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2007-06-13 18:50:38 +0000
committerDaniel Jacobowitz <dan@debian.org>2007-06-13 18:50:38 +0000
commit3b5cd193a6eac423534b52161698e1befca80afc (patch)
tree5fcdfbceb6d4f03f4323adc4dd55cea2c4b8dec1 /gdb/features
parent1d3b46a43e49f76e7784e5f98f04594e30a95629 (diff)
downloadgdb-3b5cd193a6eac423534b52161698e1befca80afc.tar.gz
* features/Makefile: Generate regformats for mips-linux and
mips64-linux. * features/sort-regs.xsl: Correct typo. * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete. * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated files. * Makefile.in (clean): Clean new files instead of deleted ones. (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete. (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New rules. * configure.srv: Specify XML files and new regformats for MIPS and MIPS64 GNU/Linux. * linux-mips-low.c (mips_num_regs): Set to only used registers. (mips_regmap): Do not fetch $0. Remove unused registers. Add an entry for the restart register. (mips_cannot_fetch_register, mips_cannot_store_register) (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update register names to match the XML descriptions. (mips_fill_gregset, mips_store_gregset): Likewise. Handle the restart register instead of $0.
Diffstat (limited to 'gdb/features')
-rw-r--r--gdb/features/Makefile4
-rw-r--r--gdb/features/sort-regs.xsl2
2 files changed, 4 insertions, 2 deletions
diff --git a/gdb/features/Makefile b/gdb/features/Makefile
index 3442f8b602e..e1162665198 100644
--- a/gdb/features/Makefile
+++ b/gdb/features/Makefile
@@ -25,10 +25,12 @@
# affected XML files is changed, and the results should be kept in the
# GDB repository.
-WHICH = arm-with-iwmmxt
+WHICH = arm-with-iwmmxt mips-linux mips64-linux
# Record which registers should be sent to GDB by default after stop.
arm-with-iwmmxt-expedite = r11,sp,pc
+mips-linux-expedite = r29,pc
+mips64-linux-expedite = r29,pc
XSLTPROC = xsltproc
outdir = ../regformats
diff --git a/gdb/features/sort-regs.xsl b/gdb/features/sort-regs.xsl
index c89fcce6924..5a99ec85dd1 100644
--- a/gdb/features/sort-regs.xsl
+++ b/gdb/features/sort-regs.xsl
@@ -3,7 +3,7 @@
<xsl:template match="/">
<target>
<xsl:for-each select="//reg">
- <xsl:sort select="regnum" data-type="number"/>
+ <xsl:sort select="@regnum" data-type="number"/>
<xsl:copy-of select="."/>
</xsl:for-each>
</target>