aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2003-04-02 05:12:25 +0000
committerKevin Buettner <kevinb@redhat.com>2003-04-02 05:12:25 +0000
commit040b99fd420c93c8271cb02e25bd1d81ed553a95 (patch)
tree59a05a83db473555b12d1788597b18701099ab59
parent9a3d7dfd2e56889dce422be422767465d3f0f06b (diff)
downloadgdb-040b99fd420c93c8271cb02e25bd1d81ed553a95.zip
gdb-040b99fd420c93c8271cb02e25bd1d81ed553a95.tar.gz
gdb-040b99fd420c93c8271cb02e25bd1d81ed553a95.tar.bz2
* mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
(mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/mips-tdep.c8
2 files changed, 13 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index c25970b..2f28c9e 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2003-04-01 Kevin Buettner <kevinb@redhat.com>
+
+ * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
+ (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
+
2003-04-01 Adam Fedor <fedor@gnu.org>
* Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c
index 1a5e7ef..f9424d7 100644
--- a/gdb/mips-tdep.c
+++ b/gdb/mips-tdep.c
@@ -5573,6 +5573,10 @@ mips_stab_reg_to_regnum (int num)
return num;
else if (num >= 38 && num < 70)
return num + FP0_REGNUM - 38;
+ else if (num == 70)
+ return HI_REGNUM;
+ else if (num == 71)
+ return LO_REGNUM;
else
{
/* This will hopefully (eventually) provoke a warning. Should
@@ -5591,6 +5595,10 @@ mips_dwarf_dwarf2_ecoff_reg_to_regnum (int num)
return num;
else if (num >= 32 && num < 64)
return num + FP0_REGNUM - 32;
+ else if (num == 64)
+ return HI_REGNUM;
+ else if (num == 65)
+ return LO_REGNUM;
else
{
/* This will hopefully (eventually) provoke a warning. Should