summaryrefslogtreecommitdiff
path: root/gdb/psymtab.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/psymtab.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/psymtab.h')
-rw-r--r--gdb/psymtab.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/psymtab.h b/gdb/psymtab.h
index 086ff2fb663..4d7f6d6d8f7 100644
--- a/gdb/psymtab.h
+++ b/gdb/psymtab.h
@@ -20,6 +20,8 @@
#ifndef PSYMTAB_H
#define PSYMTAB_H
+#include "symfile.h"
+
/* A bcache for partial symbols. */
struct psymbol_bcache;
@@ -31,9 +33,7 @@ extern struct bcache *psymbol_bcache_get_bcache (struct psymbol_bcache *);
void expand_partial_symbol_names (int (*fun) (const char *, void *),
void *data);
-void map_partial_symbol_filenames (void (*) (const char *, const char *,
- void *),
- void *);
+void map_partial_symbol_filenames (symbol_filename_ftype *fun, void *data);
extern const struct quick_symbol_functions psym_functions;