lkml.org 
[lkml]   [2004]   [Nov]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: ptrace single-stepping change breaks Wine
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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:08    [W:0.286 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site