From: Mark Kettenis Date: Wed, 16 Feb 2000 13:45:24 +0000 (+0000) Subject: 2000-02-09 Mark Kettenis X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=83d37ec863028d177ac35e57a113caa65ec80d59;p=binutils-gdb.git 2000-02-09 Mark Kettenis * configure.in: Check for lwpid_t, psaddr_t, prgregset_t and prfpregset_t in . * 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1862fed6c83..a12240f7c85 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,12 @@ +2000-02-09 Mark Kettenis + + * configure.in: Check for lwpid_t, psaddr_t, prgregset_t and + prfpregset_t in . + * 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 From 2000-01-26 Rodney Brown : diff --git a/gdb/config.in b/gdb/config.in index 07dae64a25e..f0382cc6565 100644 --- a/gdb/config.in +++ b/gdb/config.in @@ -354,3 +354,14 @@ /* Define if has fpregset_t. */ #undef HAVE_FPREGSET_T +/* Define if has prgregset_t. */ +#undef HAVE_PRGREGSET_T + +/* Define if has prfpregset_t. */ +#undef HAVE_PRFPREGSET_T + +/* Define if has lwpid_t. */ +#undef HAVE_LWPID_T + +/* Define if has psaddr_t. */ +#undef HAVE_PSADDR_T diff --git a/gdb/configure.in b/gdb/configure.in index 3e3d4f0e9c6..19670499608 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -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 diff --git a/gdb/gdb_proc_service.h b/gdb/gdb_proc_service.h index dfbf9647d0e..1f1ff9e6f05 100644 --- a/gdb/gdb_proc_service.h +++ b/gdb/gdb_proc_service.h @@ -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. */