From 540c2971fa25a14ae16a9bb14ba2f424b5f1ea96 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Tue, 14 Jan 2014 18:19:51 -0800 Subject: psymtab cleanup patch 1/3 This is the first of a set of three patches to cleanup psymtab.c a bit. Basically, these two functions do not belong in psymtab.c: expand_partial_symbol_names, map_partial_symbol_filenames, and "partial" does not belong in the function name. This first patch moves them to a better location. The second patch adds some typedefs for function parameters to quick_symbol_functions.expand_symtabs_matching. The third patch removes "partial" from the function names and uses them in more places. * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c. (map_partial_symbol_filenames): Ditto. * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h. (map_partial_symbol_filenames): Ditto. * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c. (map_partial_symbol_filenames): Ditto. * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h. (map_partial_symbol_filenames): Ditto. * symtab.c: Delete #include "psymtab.h". --- gdb/symfile.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gdb/symfile.h') diff --git a/gdb/symfile.h b/gdb/symfile.h index ff6f152..380c8cd 100644 --- a/gdb/symfile.h +++ b/gdb/symfile.h @@ -554,6 +554,12 @@ void free_symfile_segment_data (struct symfile_segment_data *data); extern struct cleanup *increment_reading_symtab (void); +void expand_partial_symbol_names (int (*fun) (const char *, void *), + void *data); + +void map_partial_symbol_filenames (symbol_filename_ftype *fun, void *data, + int need_fullname); + /* From dwarf2read.c */ /* Names for a dwarf2 debugging section. The field NORMAL is the normal -- cgit v1.1