diff options
author | John Gilmore <gnu@cygnus> | 1991-05-30 08:52:52 +0000 |
---|---|---|
committer | John Gilmore <gnu@cygnus> | 1991-05-30 08:52:52 +0000 |
commit | d11c44f1ee9650339d5c874d3227611f82e3f104 (patch) | |
tree | 23487e3405f8e4c1202d95d6c3e3fa4fe67ac2fb /gdb/symfile.c | |
parent | 924bbb3815705cba6e369cbea2dff86884e9265a (diff) | |
download | gdb-d11c44f1ee9650339d5c874d3227611f82e3f104.zip gdb-d11c44f1ee9650339d5c874d3227611f82e3f104.tar.gz gdb-d11c44f1ee9650339d5c874d3227611f82e3f104.tar.bz2 |
Roll in Tiemann changes for gcc -ansi. Fix assorted bugs. See ChangeLog.
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r-- | gdb/symfile.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c index 734d36a..1964417 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -40,7 +40,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ extern int info_verbose; -extern int close (); extern void qsort (); extern char *getenv (); @@ -865,6 +864,10 @@ free_named_symtabs (name) struct blockvector *bv; int blewit = 0; + /* Some symbol formats have trouble providing file names... */ + if (name == 0 || *name == '\0') + return 0; + /* Look for a psymtab with the specified name. */ again2: |