summaryrefslogtreecommitdiff
path: root/gprof/corefile.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2009-04-09 13:07:34 +0000
committerNick Clifton <nickc@redhat.com>2009-04-09 13:07:34 +0000
commit8487be8ba80b9de04968c89e2108f6248e6d86f8 (patch)
tree7845bbd2066a1459abdd026c4a926701f11a6168 /gprof/corefile.c
parentb08bbc4b81e9ec8d8a51cd630acb4f13c96327df (diff)
downloadbinutils-gdb-8487be8ba80b9de04968c89e2108f6248e6d86f8.tar.gz
* corefile.c (core_create_function_syms): Initialise a symbol's
is_func field based on the setting of the BSF_FUNCTION flag.
Diffstat (limited to 'gprof/corefile.c')
-rw-r--r--gprof/corefile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gprof/corefile.c b/gprof/corefile.c
index b3433c299c6..1f2575f3614 100644
--- a/gprof/corefile.c
+++ b/gprof/corefile.c
@@ -572,7 +572,7 @@ core_create_function_syms ()
}
}
- 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')