aboutsummaryrefslogtreecommitdiff
path: root/options.c
diff options
context:
space:
mode:
authorPetr Machata <pmachata@redhat.com>2012-04-03 13:51:09 +0200
committerPetr Machata <pmachata@redhat.com>2012-04-19 01:35:46 +0200
commit0367389718bc6e544b7ec42acb84f590c69d76ad (patch)
tree0ff964ecc915084fe12bb106743275986861abd7 /options.c
parentaf334ebfc46c4bd1c0efe60d6a33e14d1f3e62d1 (diff)
downloadltrace-0367389718bc6e544b7ec42acb84f590c69d76ad.tar.gz
Hide caller unless custom -e is passed
Diffstat (limited to 'options.c')
-rw-r--r--options.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/options.c b/options.c
index 193b650..1580010 100644
--- a/options.c
+++ b/options.c
@@ -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);