diff options
author | Doug Evans <dje@google.com> | 2012-05-29 18:54:50 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2012-05-29 18:54:50 +0000 |
commit | 0a0edcd5c2947ab8fea2f080e121d7ade585e967 (patch) | |
tree | 54149e4871bd164f8d066cf57812ffcf4086443e | |
parent | d416e51da0f5e79c66f1d609068e83fff4add35a (diff) | |
download | gdb-0a0edcd5c2947ab8fea2f080e121d7ade585e967.zip gdb-0a0edcd5c2947ab8fea2f080e121d7ade585e967.tar.gz gdb-0a0edcd5c2947ab8fea2f080e121d7ade585e967.tar.bz2 |
* stabsread.h (cleanup_undefined_stabs_types): Renamed from
cleanup_undefined_types.
* stabsread.c (cleanup_undefined_stabs_types): Ditto.
All callers updated.
-rw-r--r-- | gdb/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/buildsym.c | 6 | ||||
-rw-r--r-- | gdb/stabsread.c | 2 | ||||
-rw-r--r-- | gdb/stabsread.h | 2 |
4 files changed, 12 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c089f03..b550855 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2012-05-29 Doug Evans <dje@google.com> + + * stabsread.h (cleanup_undefined_stabs_types): Renamed from + cleanup_undefined_types. + * stabsread.c (cleanup_undefined_stabs_types): Ditto. + All callers updated. + 2012-05-29 Tom Tromey <tromey@redhat.com> * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen diff --git a/gdb/buildsym.c b/gdb/buildsym.c index ae7f90e..d41f26d 100644 --- a/gdb/buildsym.c +++ b/gdb/buildsym.c @@ -49,7 +49,7 @@ #include "buildsym.h" /* Our own declarations. */ #undef EXTERN -/* For cleanup_undefined_types and finish_global_stabs (somewhat +/* For cleanup_undefined_stabs_types and finish_global_stabs (somewhat questionable--see comment where we call them). */ #include "stabsread.h" @@ -1001,13 +1001,13 @@ end_symtab (CORE_ADDR end_addr, struct objfile *objfile, int section) (this needs to be done before the finish_blocks so that file_symbols is still good). - Both cleanup_undefined_types and finish_global_stabs are stabs + Both cleanup_undefined_stabs_types and finish_global_stabs are stabs specific, but harmless for other symbol readers, since on gdb startup or when finished reading stabs, the state is set so these are no-ops. FIXME: Is this handled right in case of QUIT? Can we make this cleaner? */ - cleanup_undefined_types (objfile); + cleanup_undefined_stabs_types (objfile); finish_global_stabs (objfile); if (pending_blocks == NULL diff --git a/gdb/stabsread.c b/gdb/stabsread.c index 41a7754..eb09c9d 100644 --- a/gdb/stabsread.c +++ b/gdb/stabsread.c @@ -4598,7 +4598,7 @@ cleanup_undefined_types_1 (void) this unit. */ void -cleanup_undefined_types (struct objfile *objfile) +cleanup_undefined_stabs_types (struct objfile *objfile) { cleanup_undefined_types_1 (); cleanup_undefined_types_noname (objfile); diff --git a/gdb/stabsread.h b/gdb/stabsread.h index a48f4b1..e4332bc 100644 --- a/gdb/stabsread.h +++ b/gdb/stabsread.h @@ -129,7 +129,7 @@ EXTERN int n_this_object_header_files; EXTERN int n_allocated_this_object_header_files; -extern void cleanup_undefined_types (struct objfile *); +extern void cleanup_undefined_stabs_types (struct objfile *); extern long read_number (char **, int); |