From 91c6c7acc56499a546569d7dac9dc628633f510d Mon Sep 17 00:00:00 2001 From: Eugene Syromyatnikov Date: Wed, 24 Jul 2019 01:43:25 +0200 Subject: [PATCH] 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". --- strace.1.in | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) 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 -- 2.40.0