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

* Re: [RFC] legacy_virtual_frame_pointer: SP_REGNUM might be a  pseudo-register
  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
  1 sibling, 0 replies; 4+ messages in thread
From: Ulrich Weigand @ 2007-05-07 22:35 UTC (permalink / raw)
  To: Kevin Buettner; +Cc: gdb-patches

Kevin Buettner wrote:

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

I understand those register numbers will be passed on to the tracepoint
stub -- this will probably not understand GDB's pseudo registers ...

Bye,
Ulrich

-- 
  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE
  Ulrich.Weigand@de.ibm.com


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

* Re: [RFC] legacy_virtual_frame_pointer: SP_REGNUM might be a  pseudo-register
  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
  1 sibling, 1 reply; 4+ messages in thread
From: Daniel Jacobowitz @ 2007-05-07 23:31 UTC (permalink / raw)
  To: Kevin Buettner; +Cc: gdb-patches

On Mon, May 07, 2007 at 02:48:24PM -0700, Kevin Buettner wrote:
> 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.

In addition to what Ulrich said, I'm planning to make SP_REGNUM into a
real register on MIPS; last week I did a first set of patches in this
direction and I hope to continue.

-- 
Daniel Jacobowitz
CodeSourcery


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

* Re: [RFC] legacy_virtual_frame_pointer: SP_REGNUM might be a  pseudo-register
  2007-05-07 23:31 ` Daniel Jacobowitz
@ 2007-05-08  2:36   ` Kevin Buettner
  0 siblings, 0 replies; 4+ messages in thread
From: Kevin Buettner @ 2007-05-08  2:36 UTC (permalink / raw)
  To: gdb-patches

On Mon, 7 May 2007 19:31:39 -0400
Daniel Jacobowitz <drow@false.org> wrote:

> On Mon, May 07, 2007 at 02:48:24PM -0700, Kevin Buettner wrote:
> > 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.
> 
> In addition to what Ulrich said, I'm planning to make SP_REGNUM into a
> real register on MIPS; last week I did a first set of patches in this
> direction and I hope to continue.

Okay, patch withdrawn.

Thanks,

Kevin


^ 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