diff options
author | 2009-06-16 11:49:12 +0000 | |
---|---|---|
committer | 2009-06-16 11:49:12 +0000 | |
commit | e7e981d68486380483cff5ed13408b8ab00f56d8 (patch) | |
tree | d3570972a90e2c05ef4f75e47889804dc9e5f123 /gprof/corefile.h | |
parent | * elf32-arm.c (cortex_a8_erratum_scan): Change type of offset (diff) | |
download | binutils-gdb-e7e981d68486380483cff5ed13408b8ab00f56d8.tar.gz binutils-gdb-e7e981d68486380483cff5ed13408b8ab00f56d8.tar.bz2 binutils-gdb-e7e981d68486380483cff5ed13408b8ab00f56d8.zip |
* 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.
Diffstat (limited to 'gprof/corefile.h')
-rw-r--r-- | gprof/corefile.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gprof/corefile.h b/gprof/corefile.h index ccdaf13fd4a..d3844f005e7 100644 --- a/gprof/corefile.h +++ b/gprof/corefile.h @@ -24,8 +24,9 @@ struct function_map { - char *function_name; - char *file_name; + char * function_name; + char * file_name; + unsigned int is_first:1; /* Is this the first symbol in an object file? */ }; extern struct function_map * symbol_map; @@ -33,9 +34,9 @@ extern unsigned int symbol_map_count; extern bfd * core_bfd; /* BFD for core-file. */ extern asection * core_text_sect; /* Core text section. */ -extern void * core_text_space; /* Text space of a.out in core. */ -extern int offset_to_code; /* Offset (in bytes) of code from entry - address of routine. */ +extern void * core_text_space; /* Text space of a.out in core. */ +extern int offset_to_code; /* Offset (in bytes) of code from entry + address of routine. */ extern void core_init (const char *); extern void core_get_text_space (bfd *); |