This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] m32c-tdep.c: Add virtual_frame_pointer function
- From: Daniel Jacobowitz <drow at false dot org>
- To: gdb-patches at sourceware dot org
- Date: Wed, 12 Jul 2006 15:13:32 -0400
- Subject: Re: [PATCH] m32c-tdep.c: Add virtual_frame_pointer function
- References: <20060628132918.GD24606@calimero.vinschen.de> <200606282129.k5SLTfc8004816@elgar.sibelius.xs4all.nl> <20060629023405.GA32465@nevyn.them.org> <20060629105116.GD18873@calimero.vinschen.de> <20060629130844.GF18873@calimero.vinschen.de>
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