diff options
author | Petr Machata <pmachata@redhat.com> | 2012-04-04 02:20:21 +0200 |
---|---|---|
committer | Petr Machata <pmachata@redhat.com> | 2012-04-19 01:35:47 +0200 |
commit | da3edbf059fe6c6d010b47ac50876783b4ed49ce (patch) | |
tree | c705b4531ae0a7a3cb65106954c9defe1ad74084 /options.h | |
parent | b5f80ac8982c40f79915ce1e1cb9bf8650ac5fe7 (diff) | |
download | ltrace-da3edbf059fe6c6d010b47ac50876783b4ed49ce.tar.gz |
Elementary support for -x
- this is applied across libraries. Syntax for the -x option is the same
as for -e
- this fails on symbol aliases. E.g. there are several symbols named like
strlen in libc: strlen, __GI_strlen, and perhaps others. This needs to
be taken into account, and symbol aliases shouldn't be enabled if
they were added under a different name already
Diffstat (limited to 'options.h')
-rw-r--r-- | options.h | 11 |
1 files changed, 1 insertions, 10 deletions
@@ -22,6 +22,7 @@ struct options_t { int bt_depth; /* how may levels of stack frames to show */ #endif /* defined(HAVE_LIBUNWIND) */ struct filter *plt_filter; + struct filter *static_filter; int hide_caller; /* Whether caller library should be hidden. */ }; extern struct options_t options; @@ -41,18 +42,8 @@ struct opt_F_t { struct opt_F_t *next; }; -struct opt_x_t { - char *name; - int found; - unsigned long hash; - struct opt_x_t *next; -}; - extern struct opt_p_t *opt_p; /* attach to process with a given pid */ extern struct opt_F_t *opt_F; /* alternate configuration file(s) */ -extern struct opt_x_t *opt_x; /* list of functions to break at */ -extern unsigned int opt_x_cnt; - extern char **process_options(int argc, char **argv); |