]> granicus.if.org Git - strace/commitdiff
strace.1.in: display -k option description only if it is enabled
authorEugene Syromyatnikov <evgsyr@gmail.com>
Sun, 20 May 2018 20:23:03 +0000 (22:23 +0200)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 21 May 2018 11:02:54 +0000 (11:02 +0000)
Leverage the fact that manpage is generated and add condition statements
around mentions of -k option.

* strace.1.in (.SH SYNOPSIS): Put option list inside an
".if '@ENABLE_STACKTRACE_TRUE@'#' .ig end_unwind_opt ... .end_unwind_opt"
condition; add a second list of options without -k and put it inside
".if '@ENABLE_STACKTRACE_FALSE@'#' .ig end_no_unwind_opt ... .end_no_unwind_opt"
condition.
(.SS Output format) <-k>: Put it inside
".if '@ENABLE_STACKTRACE_TRUE@'#' .ig end_unwind ... .end_unwind"
condition, remove the mention of --enable-stacktrace configuration
option requirement.

strace.1.in

index 9a74a0326ac57b37859abd35cfd8114fba83b1e0..71d9bb17a52593628abdbbb1a406215346b3c7a5 100644 (file)
 strace \- trace system calls and signals
 .SH SYNOPSIS
 .SY strace
+.if '@ENABLE_STACKTRACE_TRUE@'#' .ig end_unwind_opt
 .OP \-ACdffhikqrtttTvVxxy
+.end_unwind_opt
+.if '@ENABLE_STACKTRACE_FALSE@'#' .ig end_no_unwind_opt
+.OP \-ACdffhiqrtttTvVxxy
+.end_no_unwind_opt
 .OP \-I n
 .OP \-b execve
 .OM \-e expr
@@ -255,12 +260,11 @@ Align return values in a specific column (default column 40).
 .TP
 .B \-i
 Print the instruction pointer at the time of the system call.
+.if '@ENABLE_STACKTRACE_TRUE@'#' .ig end_unwind
 .TP
 .B \-k
 Print the execution stack trace of the traced processes after each system call.
-This option is available only if
-.B strace
-is built using \-\-enable\-stacktrace configure option.
+.end_unwind
 .TP
 .BI "\-o " filename
 Write the trace output to the file