This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Xtensa GDB port -- revised patch
- From: Daniel Jacobowitz <drow at false dot org>
- To: Maxim Grigoriev <maxim at tensilica dot com>
- Cc: gdb-patches at sources dot redhat dot com, Bob Wilson <bwilson at tensilica dot com>, Marc Gauthier <marc at tensilica dot com>, Chris Zankel <czankel at tensilica dot com>
- Date: Fri, 10 Nov 2006 20:40:26 -0500
- Subject: Re: Xtensa GDB port -- revised patch
- References: <451B202C.3090804@hq.tensilica.com> <20060928011910.GA20142@nevyn.them.org> <45259B4B.3010101@hq.tensilica.com> <20061110203908.GC1115@nevyn.them.org> <45552583.8070206@hq.tensilica.com>
On Fri, Nov 10, 2006 at 05:21:07PM -0800, Maxim Grigoriev wrote:
> I understood your concern is that the register number within the next
> frame is not set ( *realnump ). On Xtensa, it's going to be unchanged
> from the previous frame's value.
>
> Question: is replacing of
>
> frame_register_unwind (next_frame, regnum,
> optimizedp, lvalp, addrp, realnump, valuep);
>
> with
>
> *optimizedp = 0;
> *lvalp = lval_register;
> *addrp = 0;
> *realnump = regnum;
> if (valuep)
> frame_unwind_register (next_frame, (*realnump), valuep);
>
> the fix you are looking for ? I tested it. It works fine.
Yes, I think that's right.
--
Daniel Jacobowitz
CodeSourcery