2000-02-09 Mark Kettenis <kettenis@gnu.org>
authorMark Kettenis <kettenis@gnu.org>
Wed, 16 Feb 2000 13:45:24 +0000 (13:45 +0000)
committerMark Kettenis <kettenis@gnu.org>
Wed, 16 Feb 2000 13:45:24 +0000 (13:45 +0000)
* configure.in: Check for lwpid_t, psaddr_t, prgregset_t and
prfpregset_t in <sys/procfs.h>.
* config.in: Add HAVE_LWPID_T, HAVE_PSADDR_T, HAVE_PRGREGSET_T,
HAVE_PRFPREGSET_T.
* gdb_proc_service.h: Only provide typedefs for lwpid_t, psaddr_t,
prgregset_t and prfpregset_t if they are not already present.

gdb/ChangeLog
gdb/config.in
gdb/configure.in
gdb/gdb_proc_service.h

index 1862fed6c83786543dc06d3b0048678006e41e31..a12240f7c85132858ffcf295102bc6da243421a6 100644 (file)
@@ -1,3 +1,12 @@
+2000-02-09  Mark Kettenis  <kettenis@gnu.org>
+
+       * configure.in: Check for lwpid_t, psaddr_t, prgregset_t and
+       prfpregset_t in <sys/procfs.h>.
+       * config.in: Add HAVE_LWPID_T, HAVE_PSADDR_T, HAVE_PRGREGSET_T,
+       HAVE_PRFPREGSET_T.
+       * gdb_proc_service.h: Only provide typedefs for lwpid_t, psaddr_t,
+       prgregset_t and prfpregset_t if they are not already present.
+
 Wed Feb 16 19:00:02 2000  Andrew Cagney  <cagney@b1.cygnus.com>
 
        From 2000-01-26 Rodney Brown <RodneyBrown@pmsc.com>:
index 07dae64a25ef03411167eb1b370d13b5c3c2b883..f0382cc6565610758583046e9b8b94abf1a9e604 100644 (file)
 /* Define if <sys/procfs.h> has fpregset_t. */
 #undef HAVE_FPREGSET_T
 
+/* Define if <sys/procfs.h> has prgregset_t.  */
+#undef HAVE_PRGREGSET_T
+
+/* Define if <sys/procfs.h> has prfpregset_t.  */
+#undef HAVE_PRFPREGSET_T
+
+/* Define if <sys/procfs.h> has lwpid_t.  */
+#undef HAVE_LWPID_T
+
+/* Define if <sys/procfs.h> has psaddr_t.  */
+#undef HAVE_PSADDR_T
index 3e3d4f0e9c6114adf06da9f8baabe86fbc41a980..19670499608d1b81d60998eff40819fd58c25c29 100644 (file)
@@ -170,6 +170,10 @@ if test "$ac_cv_header_sys_procfs_h" = yes; then
   BFD_HAVE_SYS_PROCFS_TYPE(prrun_t)
   BFD_HAVE_SYS_PROCFS_TYPE(gregset_t)
   BFD_HAVE_SYS_PROCFS_TYPE(fpregset_t)
+  BFD_HAVE_SYS_PROCFS_TYPE(prgregset_t)
+  BFD_HAVE_SYS_PROCFS_TYPE(prfpregset_t)
+  BFD_HAVE_SYS_PROCFS_TYPE(lwpid_t)
+  BFD_HAVE_SYS_PROCFS_TYPE(psaddr_t)
 
   dnl Check for PIOCSET ioctl entry 
 
index dfbf9647d0eb3a9eb6ef794ccf05a6d25ce58928..1f1ff9e6f051bb6e21f14418b50f15d5c4bc588b 100644 (file)
@@ -12,13 +12,22 @@ typedef enum {
    */
 }       ps_err_e;
 
+#ifndef HAVE_LWPID_T
 typedef unsigned int  lwpid_t;
+#endif
+
 typedef unsigned long paddr_t;
-typedef unsigned long psaddr_t;
 
+#ifndef HAVE_PSADDR_T
+typedef unsigned long psaddr_t;
+#endif
 
+#ifndef HAVE_PRGREGSET_T
 typedef gregset_t  prgregset_t;                /* BOGUS BOGUS BOGUS */
-typedef fpregset_t prfpregset_t;       /* BOGUS BOGUS BOGUS */
+#endif
 
+#ifndef HAVE_PRFPREGSET_T
+typedef fpregset_t prfpregset_t;       /* BOGUS BOGUS BOGUS */
+#endif
 
 struct ps_prochandle;          /* user defined. */