Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFC] legacy_virtual_frame_pointer: SP_REGNUM might be a  pseudo-register
@ 2007-05-07 21:48 Kevin Buettner
  2007-05-07 22:35 ` Ulrich Weigand
  2007-05-07 23:31 ` Daniel Jacobowitz
  0 siblings, 2 replies; 4+ messages in thread
From: Kevin Buettner @ 2007-05-07 21:48 UTC (permalink / raw)
  To: gdb-patches

Any comments on the patch below?

I found this change necessary to avoid internal errors in some gdb.trace
tests when running against the mips simulator.

	* arch-utils.c (legacy_virtual_frame_pointer): SP_REGNUM might
	be a pseudo-register; revise test accordingly.

Index: arch-utils.c
===================================================================
RCS file: /cvs/src/src/gdb/arch-utils.c,v
retrieving revision 1.145
diff -u -p -r1.145 arch-utils.c
--- arch-utils.c	28 Apr 2007 21:52:38 -0000	1.145
+++ arch-utils.c	7 May 2007 21:39:03 -0000
@@ -198,7 +198,7 @@ legacy_virtual_frame_pointer (CORE_ADDR 
      with things like Dwarf2's CFI.  */
   if (DEPRECATED_FP_REGNUM >= 0 && DEPRECATED_FP_REGNUM < NUM_REGS)
     *frame_regnum = DEPRECATED_FP_REGNUM;
-  else if (SP_REGNUM >= 0 && SP_REGNUM < NUM_REGS)
+  else if (SP_REGNUM >= 0 && SP_REGNUM < NUM_REGS + NUM_PSEUDO_REGS)
     *frame_regnum = SP_REGNUM;
   else
     /* Should this be an internal error?  I guess so, it is reflecting


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

end of thread, other threads:[~2007-05-08  2:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-07 21:48 [RFC] legacy_virtual_frame_pointer: SP_REGNUM might be a pseudo-register Kevin Buettner
2007-05-07 22:35 ` Ulrich Weigand
2007-05-07 23:31 ` Daniel Jacobowitz
2007-05-08  2:36   ` Kevin Buettner

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