summaryrefslogtreecommitdiff
path: root/gprof/corefile.h
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2009-06-16 11:49:12 +0000
committerNick Clifton <nickc@redhat.com>2009-06-16 11:49:12 +0000
commite7e981d68486380483cff5ed13408b8ab00f56d8 (patch)
treed3570972a90e2c05ef4f75e47889804dc9e5f123 /gprof/corefile.h
parent81694485e2c696e1aa8dfb3f92110d437c833b22 (diff)
* 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.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/gprof/corefile.h b/gprof/corefile.h
index ccdaf13fd4..d3844f005e 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 *);