aboutsummaryrefslogtreecommitdiff
path: root/bfd/syms.c
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 /bfd/syms.c
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.
Diffstat (limited to 'bfd/syms.c')
-rw-r--r--bfd/syms.c1
1 files changed, 1 insertions, 0 deletions
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;