aboutsummaryrefslogtreecommitdiff
path: root/gprof
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1994-03-22 18:51:41 +0000
committerJeff Law <law@redhat.com>1994-03-22 18:51:41 +0000
commit4b8250bda269ad61e3af496dcd49d67bd0aa7ef5 (patch)
treef8c8fd01f4a67557d2c6979ae70fbab282ad6f78 /gprof
parent4335ce642d96bf45cef3d78349a56f06b0e4877a (diff)
downloadgdb-4b8250bda269ad61e3af496dcd49d67bd0aa7ef5.zip
gdb-4b8250bda269ad61e3af496dcd49d67bd0aa7ef5.tar.gz
gdb-4b8250bda269ad61e3af496dcd49d67bd0aa7ef5.tar.bz2
* gprof.c (funcsymbol): Use bfd_get_symbol_info instead of
bfd_decode_symclass.
Diffstat (limited to 'gprof')
-rw-r--r--gprof/ChangeLog7
-rw-r--r--gprof/gprof.c5
2 files changed, 10 insertions, 2 deletions
diff --git a/gprof/ChangeLog b/gprof/ChangeLog
index c6b86fa..ae96c04 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 2e6d6d1..7cfeaf0 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);