This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]