Re: [PATCH] x86-64 singlestep through sigreturn system call

From: Andi Kleen
Date: Tue Jul 13 2004 - 02:27:02 EST


On Mon, 12 Jul 2004 17:22:30 -0700
Roland McGrath <roland@xxxxxxxxxx> wrote:


> This patch fixes the problem by forcing a fake single-step trap at the end
> of rt_sigreturn when PTRACE_SINGLESTEP was used to enter the system call.

I don't like this very much, see previous mail.

If you really wanted to do it:

Wouldn't it be simpler to just copy the TF bit from the previous Eflags?
This special case looks quite ugly.

-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/