* mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
authorMaciej W. Rozycki <macro@linux-mips.org>
Mon, 27 Feb 2012 21:27:46 +0000 (21:27 +0000)
committerMaciej W. Rozycki <macro@linux-mips.org>
Mon, 27 Feb 2012 21:27:46 +0000 (21:27 +0000)
too.

gdb/ChangeLog
gdb/mips-linux-tdep.c

index 02c9c42..9533556 100644 (file)
@@ -1,3 +1,8 @@
+2012-02-27  Maciej W. Rozycki  <macro@codesourcery.com>
+
+       * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
+       too.
+
 2012-02-27  Thomas Schwinge  <thomas@codesourcery.com>
 
        * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
index c339ec0..6b16995 100644 (file)
@@ -1334,6 +1334,7 @@ mips_linux_init_abi (struct gdbarch_info info,
         described or not).  */
       gdb_assert (gdbarch_num_regs (gdbarch) <= MIPS_RESTART_REGNUM);
       set_gdbarch_num_regs (gdbarch, MIPS_RESTART_REGNUM + 1);
+      set_gdbarch_num_pseudo_regs (gdbarch, MIPS_RESTART_REGNUM + 1);
 
       /* If it's present, then assign it to the reserved number.  */
       feature = tdesc_find_feature (info.target_desc,