Add -b, --no-signals to silence signal print outs.
diff --git a/options.c b/options.c
index 604ff68..8589572 100644
--- a/options.c
+++ b/options.c
@@ -75,6 +75,7 @@
"Trace library calls of a given program.\n\n"
" -a, --align=COLUMN align return values in a secific column.\n"
" -A ARRAYLEN maximum number of array elements to print.\n"
+ " -b, --no-signals don't print signals.\n"
" -c count time and calls, and report a summary on exit.\n"
# ifdef USE_DEMANGLE
" -C, --demangle decode low-level symbol names into user-level names.\n"
@@ -181,6 +182,7 @@
progname = argv[0];
options.output = stderr;
options.no_plt = 0;
+ options.no_signals = 0;
guess_cols();
@@ -201,9 +203,10 @@
{"output", 1, 0, 'o'},
{"version", 0, 0, 'V'},
{"no-plt", 0, 0, 'g'},
+ {"no-signals", 0, 0, 'b'},
{0, 0, 0, 0}
};
- c = getopt_long(argc, argv, "+cfhiLrStTVg"
+ c = getopt_long(argc, argv, "+cfhiLrStTVgb"
# ifdef USE_DEMANGLE
"C"
# endif
@@ -358,6 +361,9 @@
"version 2 or later for copying conditions. There is NO warranty.\n");
exit(0);
break;
+ case 'b':
+ options.no_signals = 1;
+ break;
case 'X':
#ifdef PLT_REINITALISATION_BP
PLTs_initialized_by_here = optarg;