diff options
author | Kai Tietz <kai.tietz@onevision.com> | 2011-02-28 18:36:14 +0000 |
---|---|---|
committer | Kai Tietz <kai.tietz@onevision.com> | 2011-02-28 18:36:14 +0000 |
commit | aee9ba6f903510a47ea5e0bd524806f366dfd82a (patch) | |
tree | 665091a34d312a125fd06cc01f2a54b2eb55b25d /gprof/cg_print.c | |
parent | 426278217bb00a4eb13f360b408fae9368f3a3af (diff) | |
download | gdb-aee9ba6f903510a47ea5e0bd524806f366dfd82a.zip gdb-aee9ba6f903510a47ea5e0bd524806f366dfd82a.tar.gz gdb-aee9ba6f903510a47ea5e0bd524806f366dfd82a.tar.bz2 |
2011-02-28 Kai Tietz <kai.tietz@onevision.com>
* basic_blocks.c (cmp_bb): Use filename_(n)cmp.
* cg_print.c (order_and_dump_functions_by_arcs): Likewise.
(cg_print_file_ordering): Likewise.
* corefile.c (read_function_mappings): Likewise.
(core_create_line_syms): Likewise.
Diffstat (limited to 'gprof/cg_print.c')
-rw-r--r-- | gprof/cg_print.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gprof/cg_print.c b/gprof/cg_print.c index c1cb400..c1a2a31 100644 --- a/gprof/cg_print.c +++ b/gprof/cg_print.c @@ -22,6 +22,7 @@ #include "gprof.h" #include "libiberty.h" +#include "filenames.h" #include "search_list.h" #include "source.h" #include "symtab.h" @@ -1221,8 +1222,8 @@ order_and_dump_functions_by_arcs (the_arcs, arc_count, all, static int cmp_symbol_map (const void * l, const void * r) { - return strcmp (((struct function_map *) l)->file_name, - ((struct function_map *) r)->file_name); + return filename_cmp (((struct function_map *) l)->file_name, + ((struct function_map *) r)->file_name); } /* Print a suggested .o ordering for files on a link line based @@ -1269,7 +1270,7 @@ cg_print_file_ordering (void) /* Don't bother searching if this symbol is the same as the previous one. */ - if (last && !strcmp (last, symbol_map[sym_index].file_name)) + if (last && !filename_cmp (last, symbol_map[sym_index].file_name)) continue; for (index2 = 0; index2 < symtab.len; index2++) @@ -1277,7 +1278,8 @@ cg_print_file_ordering (void) if (! symtab.base[index2].mapped) continue; - if (!strcmp (symtab.base[index2].name, symbol_map[sym_index].file_name)) + if (!filename_cmp (symtab.base[index2].name, + symbol_map[sym_index].file_name)) break; } |