diff options
author | Jeff Law <law@redhat.com> | 1994-03-22 18:51:41 +0000 |
---|---|---|
committer | Jeff Law <law@redhat.com> | 1994-03-22 18:51:41 +0000 |
commit | 4b8250bda269ad61e3af496dcd49d67bd0aa7ef5 (patch) | |
tree | f8c8fd01f4a67557d2c6979ae70fbab282ad6f78 /gprof | |
parent | 4335ce642d96bf45cef3d78349a56f06b0e4877a (diff) | |
download | binutils-gdb-4b8250bda269ad61e3af496dcd49d67bd0aa7ef5.tar.gz |
* gprof.c (funcsymbol): Use bfd_get_symbol_info instead of
bfd_decode_symclass.
Diffstat (limited to 'gprof')
-rw-r--r-- | gprof/ChangeLog | 7 | ||||
-rw-r--r-- | gprof/gprof.c | 5 |
2 files changed, 10 insertions, 2 deletions
diff --git a/gprof/ChangeLog b/gprof/ChangeLog index c6b86faff7d..ae96c04086d 100644 --- a/gprof/ChangeLog +++ b/gprof/ChangeLog @@ -1,4 +1,9 @@ -Sun Mar 20 15:40:21 1994 Jeffrey A. Law (law@cygnus.com) +Tue Mar 22 10:50:52 1994 Jeffrey A. Law (law@snake.cs.utah.edu) + + * gprof.c (funcsymbol): Use bfd_get_symbol_info instead of + bfd_decode_symclass. + +Sun Mar 20 15:40:21 1994 Jeffrey A. Law (law@snake.cs.utah.edu) * Makefile.in: Avoid bug in hpux sed. diff --git a/gprof/gprof.c b/gprof/gprof.c index 2e6d6d1c60a..7cfeaf0e04a 100644 --- a/gprof/gprof.c +++ b/gprof/gprof.c @@ -690,6 +690,7 @@ funcsymbol( symp ) CONST char *name; int i; char symprefix; + symbol_info syminfo; /* * must be a text symbol, @@ -707,8 +708,10 @@ funcsymbol( symp ) return FALSE; } + symprefix = bfd_get_symbol_leading_char (abfd); - i = bfd_decode_symclass (symp); + bfd_get_symbol_info (abfd, symp, &syminfo); + i = syminfo.type; #if defined(DEBUG) && 0 if (i != 'T' && i != 't') fprintf (stderr, "%s(%d): %s is of class %c\n", __FILE__, __LINE__, symp->name, i); |