ptrace single-stepping change breaks Wine
Davide Libenzi
davidel at xmailserver.org
Sun Nov 21 17:14:39 CST 2004
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
More information about the wine-devel
mailing list