diff options
author | Petr Machata <pmachata@redhat.com> | 2012-04-03 13:51:09 +0200 |
---|---|---|
committer | Petr Machata <pmachata@redhat.com> | 2012-04-19 01:35:46 +0200 |
commit | 0367389718bc6e544b7ec42acb84f590c69d76ad (patch) | |
tree | 0ff964ecc915084fe12bb106743275986861abd7 /options.c | |
parent | af334ebfc46c4bd1c0efe60d6a33e14d1f3e62d1 (diff) | |
download | ltrace-0367389718bc6e544b7ec42acb84f590c69d76ad.tar.gz |
Hide caller unless custom -e is passed
Diffstat (limited to 'options.c')
-rw-r--r-- | options.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -639,8 +639,10 @@ process_options(int argc, char **argv) { /* Set default filter. Use @MAIN for now, as that's what * ltrace used to have in the past. XXX Maybe we should make * this "*" instead. */ - if (options.filter == NULL) + if (options.filter == NULL) { parse_filter_chain(&options, "@MAIN"); + options.hide_caller = 1; + } if (!opt_p && argc < 1) { fprintf(stderr, "%s: too few arguments\n", progname); |