aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2002-08-22 16:12:00 +0000
committerNick Clifton <nickc@redhat.com>2002-08-22 16:12:00 +0000
commit0ab72ee2fdc5c3cd33575572d99c7199cfb5ff03 (patch)
tree2cadb9c69ac9e6d65f514b5c9c7b5e9d80882321
parentf598fd5e7ab8a762661a5af2ad89eb459c6a4586 (diff)
downloadgdb-0ab72ee2fdc5c3cd33575572d99c7199cfb5ff03.zip
gdb-0ab72ee2fdc5c3cd33575572d99c7199cfb5ff03.tar.gz
gdb-0ab72ee2fdc5c3cd33575572d99c7199cfb5ff03.tar.bz2
Set bfd_error to no_symbols if the symbols could not be read.
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/syms.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index d9fef30..d0e9ad6 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2002-08-22 Nick Clifton <nickc@redhat.com>
+
+ * syms.c (_bfd_generic_read_minisymbols): Set bfd_error if the
+ symbols are not read.
+
2002-08-22 Alan Modra <amodra@bigpond.net.au>
* elf32-m68hc11.c: Formatting fixes.
diff --git a/bfd/syms.c b/bfd/syms.c
index 8a8abf4..6eea2d8 100644
--- a/bfd/syms.c
+++ b/bfd/syms.c
@@ -806,6 +806,7 @@ _bfd_generic_read_minisymbols (abfd, dynamic, minisymsp, sizep)
return symcount;
error_return:
+ bfd_set_error (bfd_error_no_symbols);
if (syms != NULL)
free (syms);
return -1;