Followup to: <[EMAIL PROTECTED]>
By author: Linus Torvalds <[EMAIL PROTECTED]>
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
--
<[EMAIL PROTECTED]> at work, <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/