Re: [PATCH] m32c-tdep.c: Add virtual_frame_pointer function

Daniel Jacobowitz
2006-07-12T19:13:36Z

On Thu, Jun 29, 2006 at 03:08:44PM +0200, Corinna Vinschen wrote:
> On Jun 29 12:51, Corinna Vinschen wrote:
> > I see the point. I rewrote the m32c_virtual_frame_pointer function to
> > return a valid register/offset pair from the banked fb resp. sp
> > registers. Does that look ok?
>
> Oops! There was a copy/paste error in my patch, sorry about that.
> New patch below.
>
>
> Corinna
>
>
> * m32c-tdep.c (m32c_banked_register): New function.
> (m32c_banked_read): Use m32c_banked_register function to evaluate
> real register number.
> (m32c_banked_write): Ditto.
> (m32c_virtual_frame_pointer): New function.
> (m32c_gdbarch_init): Add set_gdbarch_virtual_frame_pointer call.

Yes, this looks fine to me. Thanks.

--
Daniel Jacobowitz
CodeSourcery