From 4b8250bda269ad61e3af496dcd49d67bd0aa7ef5 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Tue, 22 Mar 1994 18:51:41 +0000 Subject: [PATCH] * gprof.c (funcsymbol): Use bfd_get_symbol_info instead of bfd_decode_symclass. --- gprof/ChangeLog | 7 ++++++- 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); -- 2.30.2