diff options
author | Denys Vlasenko <dvlasenk@redhat.com> | 2014-04-10 09:57:17 +0200 |
---|---|---|
committer | Denys Vlasenko <dvlasenk@redhat.com> | 2014-04-10 09:57:17 +0200 |
commit | 329fa3919d0da95ec32949c2092dc40dac6a9d5b (patch) | |
tree | 7df04be6dc324deaf9d7178e63da1009951d8d71 | |
parent | 15bc2812698431b17b414fa98b972146102cb8c0 (diff) | |
download | strace-329fa3919d0da95ec32949c2092dc40dac6a9d5b.tar.gz strace-329fa3919d0da95ec32949c2092dc40dac6a9d5b.tar.bz2 strace-329fa3919d0da95ec32949c2092dc40dac6a9d5b.tar.xz |
Make int3 example in comments more cut-n-pastable
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>
-rw-r--r-- | strace.c | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -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) |