From: Eugene Syromyatnikov Date: Tue, 23 Jul 2019 23:43:25 +0000 (+0200) Subject: strace.1.in: rewrite conditional parts X-Git-Tag: v5.3~96 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=91c6c7acc56499a546569d7dac9dc628633f510d;p=strace strace.1.in: rewrite conditional parts The current implementation doesn't work as intended since in case the condition is false, .ig has no effect and it results in "warning: macro 'end_unwind_opt' not defined". Rewrite it into something more dumb and verbose, but hopefully correct. * strace.1.in (.SH SYNOPSYS, .SS Output format): Prepend each conditional line with respective ".if" instead of trying to wrap it in ".ig". --- diff --git a/strace.1.in b/strace.1.in index 6d70fa9c..7e310e8c 100644 --- a/strace.1.in +++ b/strace.1.in @@ -38,12 +38,8 @@ 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 +.if '@ENABLE_STACKTRACE_FALSE@'#' .OP \-ACdffhikqrtttTvVxxy +.if '@ENABLE_STACKTRACE_TRUE@'#' .OP \-ACdffhiqrtttTvVxxy .OP \-I n .OP \-b execve .OM \-e expr @@ -651,11 +647,10 @@ or higher. .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. -.end_unwind +.if '@ENABLE_STACKTRACE_FALSE@'#' .TP +.if '@ENABLE_STACKTRACE_FALSE@'#' .B \-k +.if '@ENABLE_STACKTRACE_FALSE@'#' Print the execution stack trace of the traced +.if '@ENABLE_STACKTRACE_FALSE@'#' processes after each system call. .TP .BI "\-o " filename Write the trace output to the file