aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2001-02-27 18:45:45 +0000
committerH.J. Lu <hjl.tools@gmail.com>2001-02-27 18:45:45 +0000
commit920581c57e08ffff3fb22f70759f47eaf9b509cc (patch)
tree1530da3ccb1b6f58acc9ff8eb7461d2ecfb75b0f
parent86168def626c38aa83ad9625208fcbfc2f338ced (diff)
downloadgdb-920581c57e08ffff3fb22f70759f47eaf9b509cc.zip
gdb-920581c57e08ffff3fb22f70759f47eaf9b509cc.tar.gz
gdb-920581c57e08ffff3fb22f70759f47eaf9b509cc.tar.bz2
2001-02-27 H.J. Lu <hjl@gnu.org>
* aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if abfd->tdata.aout_data == NULL.
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/aoutx.h3
2 files changed, 7 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 61edfb7..374a01f 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2001-02-27 H.J. Lu <hjl@gnu.org>
+
+ * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
+ abfd->tdata.aout_data == NULL.
+
2001-02-27 Alan Modra <alan@linuxcare.com.au>
* elf32-hppa.c: Correct field selector in stub comments.
diff --git a/bfd/aoutx.h b/bfd/aoutx.h
index 94a46b0..e5cc394 100644
--- a/bfd/aoutx.h
+++ b/bfd/aoutx.h
@@ -2906,7 +2906,8 @@ NAME(aout,bfd_free_cached_info) (abfd)
{
asection *o;
- if (bfd_get_format (abfd) != bfd_object)
+ if (bfd_get_format (abfd) != bfd_object
+ || abfd->tdata.aout_data == NULL)
return true;
#define BFCI_FREE(x) if (x != NULL) { free (x); x = NULL; }