aboutsummaryrefslogtreecommitdiff
path: root/gdb/lin-thread.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2000-09-03 11:51:49 +0000
committerMark Kettenis <kettenis@gnu.org>2000-09-03 11:51:49 +0000
commit110be7c974fa48040bd00ed8a7b154cca1ba8cb3 (patch)
tree6e10feafd41db23c8045dacb5c540df571aca13a /gdb/lin-thread.c
parenta8596edfa19bd71497e3a2d3c4f8ace07f3c0918 (diff)
downloadgdb-110be7c974fa48040bd00ed8a7b154cca1ba8cb3.zip
gdb-110be7c974fa48040bd00ed8a7b154cca1ba8cb3.tar.gz
gdb-110be7c974fa48040bd00ed8a7b154cca1ba8cb3.tar.bz2
* gdb_proc_service.h: Add copyright notice.
Protect against multiple inclusion. Add fix for broken prfpregset_t here. (struct ps_prochandle): Declare here. [HAVE_PROC_SERVICE_H]: Include <proc_service.h>. [!HAVE_PROC_SERVICE_H]: Include "gregset.h", define prgregset_t and prfpregset_t in terms of gdb_gregset_t and gdb_fpregset_t if necessary. * lin-thread.c: Unconditionally include "gdb_proc_service.h". Remove fix for broken prfpregset_t here. (struct ps_prochandle): Don't declare here.
Diffstat (limited to 'gdb/lin-thread.c')
-rw-r--r--gdb/lin-thread.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/gdb/lin-thread.c b/gdb/lin-thread.c
index dd06e5d..37d8ef4 100644
--- a/gdb/lin-thread.c
+++ b/gdb/lin-thread.c
@@ -110,11 +110,7 @@
#include <sys/procfs.h>
#endif
-#if defined (HAVE_PROC_SERVICE_H)
-#include <proc_service.h> /* defines incoming API (ps_* callbacks) */
-#else
#include "gdb_proc_service.h"
-#endif
#if defined HAVE_STDINT_H /* Pre-5.2 systems don't have this header */
#if defined (HAVE_THREAD_DB_H)
@@ -173,16 +169,6 @@ typedef const void *gdb_ps_write_buf_t;
typedef size_t gdb_ps_size_t;
#endif
-/* Unfortunately glibc 2.1.3 was released with a broken prfpregset_t
- type. We let configure check for this lossage, and make
- appropriate typedefs here. */
-
-#ifdef PRFPREGSET_T_BROKEN
-typedef elf_fpregset_t gdb_prfpregset_t;
-#else
-typedef prfpregset_t gdb_prfpregset_t;
-#endif
-
/*
* proc_service callback functions, called by thread_db.
*/
@@ -321,10 +307,6 @@ static void restore_inferior_pid (void *saved_pid);
static char *thr_err_string (td_err_e);
static char *thr_state_string (td_thr_state_e);
-struct ps_prochandle {
- int pid;
-};
-
struct ps_prochandle main_prochandle;
td_thragent_t * main_threadagent;