[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gprof not really looking at symbols attributes
From: |
phil |
Subject: |
gprof not really looking at symbols attributes |
Date: |
Wed, 8 Apr 2009 18:46:12 +0200 (CEST) |
User-agent: |
Alpine 1.10 (DEB 962 2008-03-14) |
Hi,
When the same address is pointed to by many symbols, it seems gprof does
everything to make the right choice for the symbol name to use ... except
filling the Sym structure correctly. Here is a patch.
diff --git a/gprof/corefile.c b/gprof/corefile.c
--- a/gprof/corefile.c
+++ b/gprof/corefile.c
@@ -573,7 +573,7 @@
}
}
- symtab.limit->is_func = TRUE;
+ symtab.limit->is_func = (core_syms[i]->flags & BSF_FUNCTION) != 0;
symtab.limit->is_bb_head = TRUE;
if (class == 't')
(please cc me, i'm not on the list)
- gprof not really looking at symbols attributes,
phil <=