Re: [PATCH] Fix typo in i386 single step changes

From: Daniel Jacobowitz
Date: Sun Jan 02 2005 - 18:44:07 EST


On Mon, Jan 03, 2005 at 12:32:19AM +0100, Andi Kleen wrote:
>
> Fix an obvious typo in the recent i386 single stepping changes.
>
> I would recommend to redo all the Wine etc. testing that lead to this patch
> since it probably never worked.
>
> Signed-off-by: Andi Kleen <ak@xxxxxx>
>
> --- linux-2.6.10-bk5/arch/i386/kernel/traps.c-o Mon Jan 3 01:02:06 2005
> +++ linux-2.6.10-bk5/arch/i386/kernel/traps.c Mon Jan 3 01:03:05 2005
> @@ -725,7 +725,7 @@
> if (tsk->ptrace & PT_DTRACE) {
> regs->eflags &= ~TF_MASK;
> tsk->ptrace &= ~PT_DTRACE;
> - if (!tsk->ptrace & PT_DTRACE)
> + if (!(tsk->ptrace & PT_DTRACE))
> goto clear_TF;
> }
> }

That test is still wrong... the bit is cleared on the previous line.
Is it supposed to be testing something else entirely?

--
Daniel Jacobowitz
-
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/