diff options
author | Doug Evans <xdje42@gmail.com> | 2014-10-25 22:22:47 -0700 |
---|---|---|
committer | Doug Evans <xdje42@gmail.com> | 2014-10-25 22:22:47 -0700 |
commit | ff6c39cf9cea7cdb925557493408808da2bf6e15 (patch) | |
tree | 2daa2bb1ad38f9eedc2b6cbe6124eb1dfe96624b /gdb | |
parent | ec201f0cd1e6a0804822981fd7e25c99a3b39fd0 (diff) | |
download | gdb-ff6c39cf9cea7cdb925557493408808da2bf6e15.zip gdb-ff6c39cf9cea7cdb925557493408808da2bf6e15.tar.gz gdb-ff6c39cf9cea7cdb925557493408808da2bf6e15.tar.bz2 |
symtab.c: forward decl cleanup
gdb/ChangeLog:
* symtab.c (types_info): Delete forward decl.
(functions_info, variables_info, sources_info): Ditto.
(_initialize_symtab): Rewrite forward decl to use
initialize_file_ftype.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/symtab.c | 14 |
2 files changed, 9 insertions, 12 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6d10648..1ff55a6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,12 @@ 2014-10-25 Doug Evans <xdje42@gmail.com> + * symtab.c (types_info): Delete forward decl. + (functions_info, variables_info, sources_info): Ditto. + (_initialize_symtab): Rewrite forward decl to use + initialize_file_ftype. + +2014-10-25 Doug Evans <xdje42@gmail.com> + * symtab.c (lookup_symbol_aux_quick): Set block_found upon success. 2014-10-25 Doug Evans <xdje42@gmail.com> diff --git a/gdb/symtab.c b/gdb/symtab.c index 2423b09..266cc94 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -61,18 +61,10 @@ #include "parser-defs.h" -/* Prototypes for local functions */ +/* Forward declarations for local functions. */ static void rbreak_command (char *, int); -static void types_info (char *, int); - -static void functions_info (char *, int); - -static void variables_info (char *, int); - -static void sources_info (char *, int); - static int find_line_common (struct linetable *, int, int *, int); static struct symbol *lookup_symbol_aux (const char *name, @@ -98,9 +90,7 @@ struct symbol *lookup_symbol_aux_quick (struct objfile *objfile, const char *name, const domain_enum domain); -void _initialize_symtab (void); - -/* */ +extern initialize_file_ftype _initialize_symtab; /* Program space key for finding name and language of "main". */ |