Re: [RFA] Resurrect v850

Corinna Vinschen
2005-05-17T13:39:37Z

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];

?

Corinna

--
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat, Inc.