This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] Resurrect v850
On Tue, May 17, 2005 at 03:38:27PM +0200, Corinna Vinschen wrote:
> Hi Daniel,
>
> On May 17 15:23, Corinna Vinschen wrote:
> > [...]
> > > You can do the frobbing when you record the saved registers - at the
> > > end, copy the saved location.
> >
> > Sorry, I don't understand this. Can you show me some (pseudo) code what
> > you mean?
>
> Do you mean like this, as in m32r-tdep.c, function m32r_frame_unwind_cache:
>
> /* The call instruction moves the caller's PC in the callee's LR.
> Since this is an unwind, do the reverse. Copy the location of LR
> into PC (the address / regnum) so that a request for PC will be
> converted into a request for the LR. */
> info->saved_regs[M32R_PC_REGNUM] = info->saved_regs[LR_REGNUM];
>
> ?
Yes, precisely.
--
Daniel Jacobowitz
CodeSourcery, LLC