Re: [PATCH] 2.4.0 i386 watchpoint problems

From: H. Peter Anvin (hpa@zytor.com)
Date: Fri Sep 22 2000 - 14:36:03 EST


Followup to: <Pine.LNX.4.10.10009221122090.1647-100000@penguin.transmeta.com>
By author: Linus Torvalds <torvalds@transmeta.com>
In newsgroup: linux.dev.kernel
>
> Remember: debug traps work even without debuggers. You can use a "int 3"
> in your program if you want to have self-debug somewhere. Not many people
> do it, of course, but there's nothing fundamentally wrong in just catching
> SIGTRAP yourself, and doing something special on debug events.
>

This is sometimes used to patch code at runtime, since it's a
single-byte instruction.

        -hpa

-- 
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 21:00:27 EST