Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] MIPS/Linux: Update the number of pseudo registers too
@ 2011-12-06 22:26 Maciej W. Rozycki
  2011-12-08  8:37 ` Joel Brobecker
  2011-12-08 13:49 ` Joel Brobecker
  0 siblings, 2 replies; 7+ messages in thread
From: Maciej W. Rozycki @ 2011-12-06 22:26 UTC (permalink / raw)
  To: gdb-patches

Hi,

 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  <macro@codesourcery.com>

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

  Maciej

gdb-mips-num-pseudo-regs.diff
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,


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-02-27 21:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-06 22:26 [PATCH] MIPS/Linux: Update the number of pseudo registers too Maciej W. Rozycki
2011-12-08  8:37 ` Joel Brobecker
2011-12-08  9:04   ` Mark Kettenis
2011-12-08  9:26     ` Joel Brobecker
2011-12-08 12:36       ` Mark Kettenis
2012-02-27 21:37         ` Maciej W. Rozycki
2011-12-08 13:49 ` Joel Brobecker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox