* 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)
commite7e981d68486380483cff5ed13408b8ab00f56d8
treed3570972a90e2c05ef4f75e47889804dc9e5f123
parent81694485e2c696e1aa8dfb3f92110d437c833b22
    * 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