summaryrefslogtreecommitdiff
path: root/gdb/symfile.h
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2011-06-10 21:48:03 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2011-06-10 21:48:03 +0000
commit7ef857ff9718956cc6096dcc40336b45724332e0 (patch)
tree9b7c4acd7cbbd8a037e98a5c45eb6f68a37629c5 /gdb/symfile.h
parentf5913dbcec8b826d300ce7ac0586e57081a43ac2 (diff)
downloadgdb-7ef857ff9718956cc6096dcc40336b45724332e0.tar.gz
gdb/
Code cleanup. * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype for fun. * psymtab.c (map_symbol_filenames_psymtab) (map_partial_symbol_filenames): Likewise. * psymtab.h: Include symfile.h. (map_partial_symbol_filenames): Use symbol_filename_ftype for fun. * symfile.h (symbol_filename_ftype): New. (struct quick_symbol_functions): Use symbol_filename_ftype for fun of map_symbol_filenames, clarify more the naming in comment.
Diffstat (limited to 'gdb/symfile.h')
-rw-r--r--gdb/symfile.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/gdb/symfile.h b/gdb/symfile.h
index 9c0bb752951..cc65a14140d 100644
--- a/gdb/symfile.h
+++ b/gdb/symfile.h
@@ -116,6 +116,11 @@ struct symfile_segment_data
int *segment_info;
};
+/* Callback for quick_symbol_functions->map_symbol_filenames. */
+
+typedef void (symbol_filename_ftype) (const char *filename,
+ const char *fullname, void *data);
+
/* The "quick" symbol functions exist so that symbol readers can
avoiding an initial read of all the symbols. For example, symbol
readers might choose to use the "partial symbol table" utilities,
@@ -283,12 +288,10 @@ struct quick_symbol_functions
int warn_if_readin);
/* Call a callback for every file defined in OBJFILE whose symtab is
- not already read in. FUN is the callback. It is passed the file's name,
- the file's full name, and the DATA passed to this function. */
+ not already read in. FUN is the callback. It is passed the file's
+ FILENAME, the file's FULLNAME, and the DATA passed to this function. */
void (*map_symbol_filenames) (struct objfile *objfile,
- void (*fun) (const char *, const char *,
- void *),
- void *data);
+ symbol_filename_ftype *fun, void *data);
};
/* Structure to keep track of symbol reading functions for various