From 8cea0b917aae36d23747ecda4acc5a3291a8867c Mon Sep 17 00:00:00 2001 From: Eugene Syromyatnikov Date: Tue, 9 Jan 2018 20:00:27 +0100 Subject: [PATCH] Add indication of optional demangle feature strace -V output * strace.c (print_version) [USE_DEMANGLE]: Append " stack-demangle" to the features string. * tests/strace-V.test: Update expected output. --- strace.c | 3 +++ tests/strace-V.test | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/strace.c b/strace.c index a62f9c6c..58b36c09 100644 --- a/strace.c +++ b/strace.c @@ -204,6 +204,9 @@ print_version(void) #ifdef USE_LIBUNWIND " stack-unwind" #endif /* USE_LIBUNWIND */ +#ifdef USE_DEMANGLE + " stack-demangle" +#endif /* USE_DEMANGLE */ ""; printf("%s -- version %s\n" diff --git a/tests/strace-V.test b/tests/strace-V.test index ec1ca059..ee33227b 100755 --- a/tests/strace-V.test +++ b/tests/strace-V.test @@ -39,8 +39,9 @@ config_year=$(getstr COPYRIGHT_YEAR) } option_unwind=$(getoption USE_LIBUNWIND " stack-unwind") +option_demangle=$(getoption USE_DEMANGLE " stack-demangle") -features="${option_unwind}" +features="${option_unwind}${option_demangle}" [ -n "$features" ] || features=" (none)" cat > "$EXP" << __EOF__ -- 2.49.0