From e453f28934b1f7360a075a49bae50bf12e714e86 Mon Sep 17 00:00:00 2001 From: Eugene Syromyatnikov Date: Sun, 20 May 2018 22:23:03 +0200 Subject: [PATCH] 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. --- strace.1.in | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/strace.1.in b/strace.1.in index 9a74a032..71d9bb17 100644 --- a/strace.1.in +++ b/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 -- 2.50.0