Messages in this thread |  | | From | "H. Peter Anvin" <> | Subject | Re: [PATCH] 2.4.0 i386 watchpoint problems | Date | 22 Sep 2000 12:36:03 -0700 |
| |
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/
|  |