* corefile.c (core_create_function_syms): Initialise a symbol's
authorNick Clifton <nickc@redhat.com>
Thu, 9 Apr 2009 13:07:34 +0000 (13:07 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 9 Apr 2009 13:07:34 +0000 (13:07 +0000)
        is_func field based on the setting of the BSF_FUNCTION flag.

gprof/ChangeLog
gprof/corefile.c

index 1f640b29674845510009dadce303e3cd40a8cde7..e7fd5efac7b91dd50564dc6b3bc9f3c5cf200b1b 100644 (file)
@@ -1,3 +1,8 @@
+2009-04-09  Philippe Biondi  <phil@secdev.org>
+
+       * corefile.c (core_create_function_syms): Initialise a symbol's
+       is_func field based on the setting of the BSF_FUNCTION flag.
+
 2009-03-06  Nick Clifton  <nickc@redhat.com>
 
        * po/es.po: Updated Spanish translation.
index b3433c299c6ea5941c01b0ce8ea3b2341df0fa79..1f2575f361404ebb4573b04c41160a496de31b7d 100644 (file)
@@ -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')