2001-01-02 Michael Snyder <msnyder@cleaver.cygnus.com>
[deliverable/binutils-gdb.git] / gdb / lin-thread.c
index dd06e5d21897d26ef9b0ea9f00a072ce3c4836f7..b3fd14ca961047e3128aab245d599e5a9697c409 100644 (file)
 #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;
 
@@ -683,7 +665,7 @@ restore_inferior_pid (void *arg)
 {
   int *saved_pid_ptr = arg;
   inferior_pid = *saved_pid_ptr;
-  free (arg);
+  xfree (arg);
 }
 
 /*
@@ -831,11 +813,8 @@ next_pending_event (void)
 }
 
 static void
-threadlist_iter (func, data, state, type)
-     int (*func) ();
-     void *data;
-     td_thr_state_e state;
-     td_thr_type_e  type;
+threadlist_iter (int (*func) (), void *data, td_thr_state_e state,
+                td_thr_type_e type)
 {
   int i;
 
@@ -1167,8 +1146,7 @@ get_lwp_from_thread_handle (td_thrhandle_t *th)
  */
 
 static int     /* lwpid_t or pid_t */
-get_lwp_from_thread_id (tid)
-     int tid;  /* thread_t? */
+get_lwp_from_thread_id (int tid        /* thread_t? */)
 {
   td_thrhandle_t th;
   td_err_e       ret;
@@ -1236,12 +1214,8 @@ thread_db_files_info (struct target_ops *tgt_vector)
  */
 
 static int
-thread_db_xfer_memory (memaddr, myaddr, len, dowrite, target)
-     CORE_ADDR memaddr;
-     char *myaddr;
-     int len;
-     int dowrite;
-     struct target_ops *target;        /* ignored */
+thread_db_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int dowrite,
+                      struct target_ops *target)
 {
   struct cleanup *old_chain;
   int ret;
This page took 0.025645 seconds and 4 git commands to generate.