This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [Patch,ARM] Next pc of sigreturn/rt_sigreturn syscall
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
CodeSourcery