]> granicus.if.org Git - strace/commitdiff
Add indication of optional demangle feature strace -V output
authorEugene Syromyatnikov <evgsyr@gmail.com>
Tue, 9 Jan 2018 19:00:27 +0000 (20:00 +0100)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 11 Jan 2018 15:54:33 +0000 (15:54 +0000)
* strace.c (print_version) [USE_DEMANGLE]: Append " stack-demangle"
to the features string.
* tests/strace-V.test: Update expected output.

strace.c
tests/strace-V.test

index a62f9c6ca2b45f4e5b268455cdb062296e158b3f..58b36c09ecdfb61cc360cec87c4ee1ad2ef35306 100644 (file)
--- 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"
index ec1ca059da57347620c46a6d9f79e559f90af5c5..ee33227be02b1db3fbe1a8614ade87d3ee1b56bc 100755 (executable)
@@ -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__