diff options
author | Gary Benson <gbenson@redhat.com> | 2018-10-01 10:37:39 +0100 |
---|---|---|
committer | Gary Benson <gbenson@redhat.com> | 2018-10-01 10:37:39 +0100 |
commit | 43b7e92b0c73d693d3b656b84b2a1181e40477ca (patch) | |
tree | 67c903d2e6e885643849f3833847b75dd88a0c71 /gdb/configure.ac | |
parent | 3795e814428a269a3528d3d9a86da957449fc5b6 (diff) | |
download | gdb-43b7e92b0c73d693d3b656b84b2a1181e40477ca.zip gdb-43b7e92b0c73d693d3b656b84b2a1181e40477ca.tar.gz gdb-43b7e92b0c73d693d3b656b84b2a1181e40477ca.tar.bz2 |
Add workaround from gdbserver's gdb_proc_service.h to GDB
This commit adds a workaround from gdbserver's gdb_proc_service.h
to GDB's. It doesn't seem to have been needed on any glibc as far
back as 2001, but it's possibly required for other C libraries so
I've retained it.
gdb/ChangeLog:
* configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
(AC_CHECK_HEADERS): Check for linux/elf.h.
* configure, config.in: Rebuild.
* gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
doesn't define elf_fpregset_t.
Diffstat (limited to 'gdb/configure.ac')
-rw-r--r-- | gdb/configure.ac | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/configure.ac b/gdb/configure.ac index 66fc6c6..a469d0a 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac @@ -1296,7 +1296,7 @@ fi AC_HEADER_STDC # elf_hp.h is for HP/UX 64-bit shared library support. AC_CHECK_HEADERS([nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \ - thread_db.h \ + thread_db.h linux/elf.h \ sys/file.h sys/filio.h sys/ioctl.h sys/param.h \ sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \ sys/reg.h sys/debugreg.h sys/select.h \ @@ -1528,6 +1528,7 @@ if test "$ac_cv_header_sys_procfs_h" = yes; then BFD_HAVE_SYS_PROCFS_TYPE(prgregset32_t) BFD_HAVE_SYS_PROCFS_TYPE(lwpid_t) BFD_HAVE_SYS_PROCFS_TYPE(psaddr_t) + BFD_HAVE_SYS_PROCFS_TYPE(elf_fpregset_t) dnl Check for broken prfpregset_t type |