aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-01-18 22:42:41 +0000
committerIan Lance Taylor <ian@airs.com>1996-01-18 22:42:41 +0000
commit80b99ca092b628195fd1757a88eb66df21d51ad8 (patch)
tree7593efe57153255f5393eb065886b9cfc9d13c21 /bfd
parent5826ca4ceec8ade9e6da94ff5c84f6bc7c88487d (diff)
downloadgdb-80b99ca092b628195fd1757a88eb66df21d51ad8.zip
gdb-80b99ca092b628195fd1757a88eb66df21d51ad8.tar.gz
gdb-80b99ca092b628195fd1757a88eb66df21d51ad8.tar.bz2
* elfcore.h: Include <signal.h> before <sys/procfs.h>.
PR 8807.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/elfcore.h5
2 files changed, 7 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index d632043..dc00ab4 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,7 @@
+Thu Jan 18 17:42:12 1996 Ian Lance Taylor <ian@cygnus.com>
+
+ * elfcore.h: Include <signal.h> before <sys/procfs.h>.
+
Wed Jan 17 12:40:14 1996 Ian Lance Taylor <ian@cygnus.com>
* cpu-powerpc.c (arch_info_struct): Change last entry to not point
diff --git a/bfd/elfcore.h b/bfd/elfcore.h
index e505759..e22faf7 100644
--- a/bfd/elfcore.h
+++ b/bfd/elfcore.h
@@ -19,6 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
/* Core file support */
#ifdef HAVE_SYS_PROCFS_H /* Some core file support requires host /proc files */
+#include <signal.h>
#include <sys/procfs.h>
#else
#define bfd_prstatus(abfd, descdata, descsz, filepos) true
@@ -366,11 +367,11 @@ elf_core_file_p (abfd)
switch (x_ehdr.e_ident[EI_DATA])
{
case ELFDATA2MSB: /* Big-endian */
- if (abfd->xvec->byteorder_big_p == false)
+ if (! bfd_big_endian (abfd))
goto wrong;
break;
case ELFDATA2LSB: /* Little-endian */
- if (abfd->xvec->byteorder_big_p == true)
+ if (! bfd_little_endian (abfd))
goto wrong;
break;
case ELFDATANONE: /* No data encoding specified */