This is the mail archive of the mailing list for the GDB project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] MIPS/Linux: Update the number of pseudo registers too


 Similarly to the previous general MIPS change (pc_regnum and sp_regnum) 
the Linux backend needs to update the number of pseudo registers as it 
adds the "restart" register.  No regressions in mips-linux-gnu testing 
(native and remote).  OK to apply?

2011-12-06  Maciej W. Rozycki  <>

	* mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs


Index: gdb-fsf-trunk-quilt/gdb/mips-linux-tdep.c
--- gdb-fsf-trunk-quilt.orig/gdb/mips-linux-tdep.c	2011-11-24 00:54:31.955605130 +0000
+++ gdb-fsf-trunk-quilt/gdb/mips-linux-tdep.c	2011-11-24 00:55:54.545604049 +0000
@@ -1325,6 +1325,7 @@ mips_linux_init_abi (struct gdbarch_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,

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]