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

Daniel Jacobowitz
2010-08-24T14:13:09Z

On Tue, Aug 24, 2010 at 01:27:03PM +0200, Mark Kettenis wrote:
> > Date: Mon, 23 Aug 2010 23:38:54 -0700
> > From: Yao Qi <yao@codesourcery.com>
> >
> > Hi,
> > This patch is to calculate correct address of 'next pc' of syscall
> > sigreturn and rt_sigreturn.
>
> You're polluting the genric arm code with Linux-specific stuff.
> Please don't do that. If something like this is needed, it should be
> added to code in arm-linux-tdep.c.

There's a couple of ways to do that; one example is
mips_linux_syscall_next_pc.

--
Daniel Jacobowitz