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 | 0e27a8f69b7c9365e4ec543a3d27a24c968a7c16 (patch) | |
tree | 94441f5c531cfb81b7c6ca3c0a1dcb5745adec3a /gprof/corefile.h | |
parent | f37111339e22353181634dfb3498923a89f2f16c (diff) | |
download | gdb-0e27a8f69b7c9365e4ec543a3d27a24c968a7c16.zip gdb-0e27a8f69b7c9365e4ec543a3d27a24c968a7c16.tar.gz gdb-0e27a8f69b7c9365e4ec543a3d27a24c968a7c16.tar.bz2 |
* 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 7fd38b9..ccdaf13 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 */ |