diff options
author | Nick Clifton <nickc@redhat.com> | 2009-06-12 15:33:30 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2009-06-12 15:33:30 +0000 |
commit | 8ba26b8d98b1bad5e7c5fcf5a6062c1262b0272b (patch) | |
tree | 233f9d2bef9102cd7d08596ad6fd6157294882c8 /gprof/corefile.h | |
parent | 35b0c3f16d70501acb0ecf66e9720df07c4ff1b6 (diff) | |
download | binutils-redhat-8ba26b8d98b1bad5e7c5fcf5a6062c1262b0272b.tar.gz |
* corefile.c (num_of_syms_in): New function - computes the number
of symbols in a given file.
(core_create_syms_from): New function - populates a symbol table
from the symbols found in a specified file.
* corefile.h: Prototype core_create_syms_from.
* gprof.c (long_options): Add --external-symbol-table.
(usage): Mention it.
(main): Initiailize external_symbol_table from
--external-symbol-table option. If set use it.
* gprof.texi: Document the new option.
* NEWS: Mention new feature added to gprof.
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 7fd38b9dd2..ccdaf13fd4 100644 --- a/gprof/corefile.h +++ b/gprof/corefile.h @@ -1,6 +1,6 @@ /* corefile.h - Copyright 2000, 2001, 2002, 2004, 2007 Free Software Foundation, Inc. + Copyright 2000, 2001, 2002, 2004, 2007, 2009 Free Software Foundation, Inc. This file is part of GNU Binutils. @@ -28,12 +28,12 @@ struct function_map char *file_name; }; -extern struct function_map *symbol_map; +extern struct function_map * symbol_map; extern unsigned int symbol_map_count; -extern bfd *core_bfd; /* BFD for core-file. */ -extern asection *core_text_sect;/* Core text section. */ -extern PTR core_text_space; /* Text space of a.out in core. */ +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. */ @@ -41,5 +41,6 @@ extern void core_init (const char *); extern void core_get_text_space (bfd *); extern void core_create_function_syms (void); extern void core_create_line_syms (void); +extern void core_create_syms_from (const char *); #endif /* corefile_h */ |