Make int3 example in comments more cut-n-pastable
authorDenys Vlasenko <dvlasenk@redhat.com>
Thu, 10 Apr 2014 07:57:17 +0000 (09:57 +0200)
committerDenys Vlasenko <dvlasenk@redhat.com>
Thu, 10 Apr 2014 07:57:17 +0000 (09:57 +0200)
I found that I use it quite often. Lets make it so that
after cut-n-pasting it into a file, there is no need
to edit the result (e.g. no need to remove C comment
chars from every line.

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
strace.c

index 063cb94ae2b9c1ea92ed17b3eeeee675fcf5d9d3..8a49340f76ddf4065aeb1925e8e54e385e2bb906 100644 (file)
--- a/strace.c
+++ b/strace.c
@@ -1415,12 +1415,13 @@ test_ptrace_setoptions_followfork(void)
  *
  * Use of this option enables correct handling of user-generated SIGTRAPs,
  * and SIGTRAPs generated by special instructions such as int3 on x86:
- * _start:     .globl  _start
- *             int3
- *             movl    $42, %ebx
- *             movl    $1, %eax
- *             int     $0x80
- * (compile with: "gcc -nostartfiles -nostdlib -o int3 int3.S")
+
+# compile with: gcc -nostartfiles -nostdlib -o int3 int3.S
+_start:                .globl  _start
+               int3
+               movl    $42, %ebx
+               movl    $1, %eax
+               int     $0x80
  */
 static int
 test_ptrace_setoptions_for_all(void)