]> granicus.if.org Git - strace/commitdiff
strace.1.in: rewrite conditional parts
authorEugene Syromyatnikov <evgsyr@gmail.com>
Tue, 23 Jul 2019 23:43:25 +0000 (01:43 +0200)
committerDmitry V. Levin <ldv@altlinux.org>
Sun, 4 Aug 2019 22:33:09 +0000 (22:33 +0000)
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

index 6d70fa9c98df4037d761a2bba95550abc82fdd8d..7e310e8c95a2ae84cf23e1dd7aa93ffabefc7758 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
+.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