diff options
author | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2003-05-26 19:35:53 +0000 |
---|---|---|
committer | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2003-05-26 19:35:53 +0000 |
commit | a7a487976274843322ca48da124cc2f39c5ca0a9 (patch) | |
tree | b611b8e8bd0866fe5cd8feff2163c8a321bf1961 /gdb | |
parent | f5479e9c58047dd029988e3824e08dac0675a3eb (diff) | |
download | gdb-a7a487976274843322ca48da124cc2f39c5ca0a9.zip gdb-a7a487976274843322ca48da124cc2f39c5ca0a9.tar.gz gdb-a7a487976274843322ca48da124cc2f39c5ca0a9.tar.bz2 |
2003-05-26 Elena Zannoni <ezannoni@redhat.com>
* stabsread.c (dbx_lookup_type): Make static.
(read_type): Ditto.
(add_undefined_type): Ditto.
* stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
not export.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 8 | ||||
-rw-r--r-- | gdb/stabsread.c | 10 | ||||
-rw-r--r-- | gdb/stabsread.h | 6 |
3 files changed, 15 insertions, 9 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 95cec75..5e2bed1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,13 @@ 2003-05-26 Elena Zannoni <ezannoni@redhat.com> + * stabsread.c (dbx_lookup_type): Make static. + (read_type): Ditto. + (add_undefined_type): Ditto. + * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do + not export. + +2003-05-26 Elena Zannoni <ezannoni@redhat.com> + * hpread.c (hpread_has_name): Make static. (hpread_psymtab_to_symtab): Ditto. (file_exists): Ditto. diff --git a/gdb/stabsread.c b/gdb/stabsread.c index e0c88aa..d49c583 100644 --- a/gdb/stabsread.c +++ b/gdb/stabsread.c @@ -105,6 +105,8 @@ static void fix_common_block (struct symbol *, int); static int read_type_number (char **, int *); +static struct type *read_type (char **, struct objfile *); + static struct type *read_range_type (char **, int[2], struct objfile *); static struct type *read_sun_builtin_type (char **, int[2], struct objfile *); @@ -146,6 +148,8 @@ static struct type *read_array_type (char **, struct type *, static struct field *read_args (char **, int, struct objfile *, int *, int *); +static void add_undefined_type (struct type *); + static int read_cpp_abbrev (struct field_info *, char **, struct type *, struct objfile *); @@ -248,7 +252,7 @@ static struct symbol *current_symbol = NULL; This can be used for finding the type associated with that pair or for associating a new type with the pair. */ -struct type ** +static struct type ** dbx_lookup_type (int typenums[2]) { register int filenum = typenums[0]; @@ -2259,7 +2263,7 @@ error_type (char **pp, struct objfile *objfile) assume that type information starts with a digit, '-', or '(' in deciding whether to call read_type. */ -struct type * +static struct type * read_type (register char **pp, struct objfile *objfile) { register struct type *type = 0; @@ -5128,7 +5132,7 @@ fix_common_block (struct symbol *sym, int valu) /* Add a type to the list of undefined types to be checked through once this file has been read in. */ -void +static void add_undefined_type (struct type *type) { if (undef_types_length == undef_types_allocated) diff --git a/gdb/stabsread.h b/gdb/stabsread.h index b70f162..91db978 100644 --- a/gdb/stabsread.h +++ b/gdb/stabsread.h @@ -130,16 +130,10 @@ EXTERN int n_this_object_header_files; EXTERN int n_allocated_this_object_header_files; -extern struct type *read_type (char **, struct objfile *); - extern void cleanup_undefined_types (void); -extern struct type **dbx_lookup_type (int[2]); - extern long read_number (char **, int); -extern void add_undefined_type (struct type *); - extern struct symbol *define_symbol (CORE_ADDR, char *, int, int, struct objfile *); |