Re: [Patch,ARM] Next pc of sigreturn/rt_sigreturn syscall

Yao Qi
2010-08-30T15:35:39Z

On Mon, Aug 30, 2010 at 03:07:16PM +0200, Mark Kettenis wrote:
> > Date: Mon, 30 Aug 2010 08:59:58 -0400
> > From: Daniel Jacobowitz <dan@codesourcery.com>
> >
> > On Thu, Aug 26, 2010 at 04:50:48PM +0800, Yao Qi wrote:
> > > > Why did you remove the condition_true check?
> > >
> > > Because I noticed that condition_true always returns true if cond is 0xf
> > > (INST_NV).
> >
> > Sorry, you're right - I completely misread this.
> >
> > > 2010-08-26 Yao Qi <yao@codesourcery.com>
> > >
> > > * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
> > > (arm_linux_syscall_next_pc): New.
> > > (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
> > > (arm_linux_init_abi): Initialize syscall_next_pc.
> > > * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode.
> > > (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
> > > * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
> > > Declare arm_frame_is_thumb.
> >
> > This is OK. Thanks!
>
> If Daniel is happy with this, I'm as well.

Committed in both GDB mainline and GDB 7.2 branch.
http://www.cygwin.org/ml/gdb-cvs/2010-08/msg00190.html
http://www.cygwin.org/ml/gdb-cvs/2010-08/msg00191.html

--
Yao Qi
CodeSourcery
yao@codesourcery.com
(650) 331-3385 x739