* core.c (core_sym_class): Ignore symbols without BSF_FUNCTION

set if ignore_non_function is set.
        * gprof.h (ignore_non_functions): Declare.
        * gprof.c (ignore_non_functions): Define.
        (long_options): Add "ignore-non-functions".
        (usage): Add new options.
        (main): Recognize "-D" and "--ignore-non-functions" option.
So we can get more accurate information on Solaris, HPUX and other
systems that can uniquely identify function symbols.
This commit is contained in:
Jeff Law
1995-12-25 04:32:29 +00:00
parent 7920c1d195
commit 32843f948c
5 changed files with 32 additions and 3 deletions

View File

@@ -128,6 +128,8 @@ extern bool ignore_zeros; /* ignore unused symbols/files */
extern bool line_granularity; /* function or line granularity? */
extern bool print_descriptions; /* output profile description */
extern bool print_path; /* print path or just filename? */
extern bool ignore_non_functions;/* Ignore non-function symbols. */
extern File_Format file_format; /* requested file format */
extern bool first_output; /* no output so far? */