summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2000-05-08 07:00:25 +0000
committerAlan Modra <amodra@bigpond.net.au>2000-05-08 07:00:25 +0000
commit37bb2c22d6980e3c10c440abe746451c4e7d8908 (patch)
treeceaa46cf008f4c4ac3be8982a78f84fc3f7a4f3a
parent94708e8abed8bcc08496c632251664dd97038ac4 (diff)
downloadgdb-37bb2c22d6980e3c10c440abe746451c4e7d8908.tar.gz
* trad-core.c (trad_unix_core_file_p): Return
bfd_error_wrong_format rather than bfd_error_file_truncated.
-rw-r--r--bfd/ChangeLog3
-rw-r--r--bfd/trad-core.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index b1887cb8fbf..87af53214ea 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,8 @@
2000-05-08 Alan Modra <alan@linuxcare.com.au>
+ * trad-core.c (trad_unix_core_file_p): Return
+ bfd_error_wrong_format rather than bfd_error_file_truncated.
+
* peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
add_data_entry. DataDirectory virtual address is relative.
(pe_print_idata): Account for relative DataDirectory virtual
diff --git a/bfd/trad-core.c b/bfd/trad-core.c
index 633c53d9838..aea6366795b 100644
--- a/bfd/trad-core.c
+++ b/bfd/trad-core.c
@@ -112,7 +112,7 @@ trad_unix_core_file_p (abfd)
+ u.u_ssize))
> (unsigned long) statbuf.st_size)
{
- bfd_set_error (bfd_error_file_truncated);
+ bfd_set_error (bfd_error_wrong_format);
return 0;
}
#ifndef TRAD_CORE_ALLOW_ANY_EXTRA_SIZE