OSDN Git Service

* corefile.c (cmp_symbol_map): New function.
authorNick Clifton <nickc@redhat.com>
Tue, 16 Jun 2009 11:49:12 +0000 (11:49 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 16 Jun 2009 11:49:12 +0000 (11:49 +0000)
commit69419ececf8617464a3a68d98f65b219c379f113
tree4a66fe6b83157bd03c47f09924d5af13985b9fb0
parentff24b200da0ea9f58d9b7676925725191ab7832a
    * corefile.c (cmp_symbol_map): New function.
        (read_function_mappins): Use qsort to sort the symbols.
        (search_mapped_symbol): New function.
        (core_create_function_syms): Use bsearch to find symbols.
        * corefile.h (struct function_map): Add new bit-field: is_first.
        * cg_print.c (cmp_symbol_map): New function.
        (cg_print_file_ordering): Sort the symbol map.
gprof/ChangeLog
gprof/cg_print.c
gprof/corefile.c
gprof/corefile.h