strace.1.in: display -k option description only if it is enabled
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.
This commit is contained in:
parent
4531bae51a
commit
e453f28934
10
strace.1.in
10
strace.1.in
@ -58,7 +58,12 @@
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user