mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
* 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:
@@ -179,6 +179,12 @@ DEFUN (core_sym_class, (sym), asymbol * sym)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* If the object file supports marking of function symbols, then we can
|
||||
zap anything that doesn't have BSF_FUNCTION set. */
|
||||
if (ignore_non_functions && (sym->flags & BSF_FUNCTION) == 0)
|
||||
return 0;
|
||||
|
||||
return 't'; /* it's a static text symbol */
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user