Re: ptrace single-stepping change breaks Wine

From: Davide Libenzi
Date: Sun Nov 21 2004 - 18:18:00 EST


On Sun, 21 Nov 2004, Linus Torvalds wrote:

> void handler(int signo)
> {
> extern char smc;
> smc++;
> }
>
> asm volatile("\nsmc:\n\t"
> ".byte 0xb7\n\t"
> ".long function"
> :"=d" (fnp));
> fnp();

You know you're sick, don't you? Making traps inc's to get you in the
correct opcode to move function in edx->fnp, is indeed fruit of a sick
mind :=)



- Davide

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