From: Joel Brobecker <brobecker@gnat.com>
To: gdb-patches@sources.redhat.com
Subject: [RFA] gdb/configure: Add check for sys/proc.h
Date: Sun, 07 Jul 2002 08:46:00 -0000 [thread overview]
Message-ID: <20020706021043.GA1091@gnat.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 786 bytes --]
This is in preparation for some later patches porting GDB to
i386-interix: when compiling proc-api.c, we try to include <sys/proc.h>
but this header file does not exist. I haven't checked this myself,
but I trust that the definitions that proc-api was needing from this
file will be found elsewhere. So I would like to conditionalize the
inclusion of this file using the HAVE_SYS_PROC_H macro. The following
patch introduces this macro.
2002-07-05 Joel Brobecker <brobecker@gnat.com>
Define HAVE_SYS_PROC_H if sys/proc.h exists
* configure.in: Add check for sys/proc.h
* config.in: Regenerate.
* configure: Regenerate.
This patch has been tested on x86-linux (no sys/proc.h), and on
sparc-solaris (have sys/proc.h).
Ok to commit?
Thanks,
--
Joel
[-- Attachment #2: HAVE_SYS_PROC_H.diff --]
[-- Type: text/plain, Size: 3304 bytes --]
Index: configure.in
===================================================================
RCS file: /cvs/src/src/gdb/configure.in,v
retrieving revision 1.88
diff -c -3 -p -r1.88 configure.in
*** configure.in 21 Jun 2002 23:48:39 -0000 1.88
--- configure.in 6 Jul 2002 01:52:41 -0000
*************** esac; esac
*** 121,127 ****
AC_CHECK_HEADERS(ctype.h nlist.h link.h thread_db.h proc_service.h \
memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \
! string.h sys/procfs.h sys/ptrace.h sys/reg.h stdint.h \
term.h termio.h termios.h unistd.h wait.h sys/wait.h \
wchar.h wctype.h asm/debugreg.h sys/debugreg.h sys/select.h \
time.h sys/file.h sys/ioctl.h sys/user.h sys/fault.h sys/syscall.h \
--- 121,127 ----
AC_CHECK_HEADERS(ctype.h nlist.h link.h thread_db.h proc_service.h \
memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \
! string.h sys/procfs.h sys/proc.h sys/ptrace.h sys/reg.h stdint.h \
term.h termio.h termios.h unistd.h wait.h sys/wait.h \
wchar.h wctype.h asm/debugreg.h sys/debugreg.h sys/select.h \
time.h sys/file.h sys/ioctl.h sys/user.h sys/fault.h sys/syscall.h \
Index: config.in
===================================================================
RCS file: /cvs/src/src/gdb/config.in,v
retrieving revision 1.38
diff -c -3 -p -r1.38 config.in
*** config.in 21 Jun 2002 23:48:32 -0000 1.38
--- config.in 6 Jul 2002 01:52:36 -0000
***************
*** 367,372 ****
--- 367,375 ----
/* Define if you have the <sys/poll.h> header file. */
#undef HAVE_SYS_POLL_H
+ /* Define if you have the <sys/proc.h> header file. */
+ #undef HAVE_SYS_PROC_H
+
/* Define if you have the <sys/procfs.h> header file. */
#undef HAVE_SYS_PROCFS_H
***************
*** 379,392 ****
/* Define if you have the <sys/select.h> header file. */
#undef HAVE_SYS_SELECT_H
- /* Define if you have the <sys/stat.h> header file. */
- #undef HAVE_SYS_STAT_H
-
/* Define if you have the <sys/syscall.h> header file. */
#undef HAVE_SYS_SYSCALL_H
-
- /* Define if you have the <sys/types.h> header file. */
- #undef HAVE_SYS_TYPES_H
/* Define if you have the <sys/user.h> header file. */
#undef HAVE_SYS_USER_H
--- 382,389 ----
Index: configure
===================================================================
RCS file: /cvs/src/src/gdb/configure,v
retrieving revision 1.86
diff -c -3 -p -r1.86 configure
*** configure 21 Jun 2002 23:48:32 -0000 1.86
--- configure 6 Jul 2002 01:52:40 -0000
*************** esac; esac
*** 3389,3395 ****
for ac_hdr in ctype.h nlist.h link.h thread_db.h proc_service.h \
memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \
! string.h sys/procfs.h sys/ptrace.h sys/reg.h stdint.h \
term.h termio.h termios.h unistd.h wait.h sys/wait.h \
wchar.h wctype.h asm/debugreg.h sys/debugreg.h sys/select.h \
time.h sys/file.h sys/ioctl.h sys/user.h sys/fault.h sys/syscall.h \
--- 3389,3395 ----
for ac_hdr in ctype.h nlist.h link.h thread_db.h proc_service.h \
memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \
! string.h sys/procfs.h sys/proc.h sys/ptrace.h sys/reg.h stdint.h \
term.h termio.h termios.h unistd.h wait.h sys/wait.h \
wchar.h wctype.h asm/debugreg.h sys/debugreg.h sys/select.h \
time.h sys/file.h sys/ioctl.h sys/user.h sys/fault.h sys/syscall.h \
next reply other threads:[~2002-07-06 2:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-07 8:46 Joel Brobecker [this message]
2002-07-08 21:24 ` Andrew Cagney
2002-07-09 16:16 ` Joel Brobecker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020706021043.GA1091@gnat.com \
--to=brobecker@gnat.com \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox