summaryrefslogtreecommitdiff
path: root/gdb/gdb_proc_service.h
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2000-02-16 13:45:24 +0000
committerMark Kettenis <kettenis@gnu.org>2000-02-16 13:45:24 +0000
commit70e47050fde09a58f9a50846abee87cfa125cbcd (patch)
tree560126765f1e6e2adc5203e0633bd87cd50db216 /gdb/gdb_proc_service.h
parentc1bf4991ccf70b04c4fef8509af4e122f786f821 (diff)
downloadgdb-70e47050fde09a58f9a50846abee87cfa125cbcd.tar.gz
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.
Diffstat (limited to 'gdb/gdb_proc_service.h')
-rw-r--r--gdb/gdb_proc_service.h13
1 files changed, 11 insertions, 2 deletions
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. */