Revert call to bfd_cache_close().
[deliverable/binutils-gdb.git] / gdb / uw-thread.c
index 17e98fd3d627a9d535f6530be4ab7544fd77b234..8f1d1c66542b812c2ab6391280a340ca55d3ff5c 100644 (file)
@@ -1,7 +1,7 @@
 /* Low level interface for debugging UnixWare user-mode threads for
    GDB, the GNU debugger.
 
-   Copyright 1999, 2000 Free Software Foundation, Inc.
+   Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
    Written by Nick Duffek <nsd@cygnus.com>.
 
    This file is part of GDB.
 #include "gdbthread.h"
 #include "target.h"
 #include "inferior.h"
+#include "regcache.h"
 #include <fcntl.h>
 
 /* <thread.h> includes <sys/priocntl.h>, which requires boolean_t from
@@ -323,7 +324,7 @@ static int
 read_thr_debug (struct thread_debug *debugp)
 {
   return base_ops.to_xfer_memory (thr_debug_addr, (char *)debugp,
-                                 sizeof (*debugp), 0, &base_ops);
+                                 sizeof (*debugp), 0, NULL, &base_ops);
 }
 
 /* Read into MAP the contents of the thread map at inferior process address
@@ -333,7 +334,7 @@ static int
 read_map (CORE_ADDR mapp, struct thread_map *map)
 {
   return base_ops.to_xfer_memory ((CORE_ADDR)THR_MAP (mapp), (char *)map,
-                                 sizeof (*map), 0, &base_ops);
+                                 sizeof (*map), 0, NULL, &base_ops);
 }
 
 /* Read into LWP the contents of the lwp decriptor at inferior process address
@@ -343,7 +344,7 @@ static int
 read_lwp (CORE_ADDR lwpp, __lwp_desc_t *lwp)
 {
   return base_ops.to_xfer_memory (lwpp, (char *)lwp,
-                                 sizeof (*lwp), 0, &base_ops);
+                                 sizeof (*lwp), 0, NULL, &base_ops);
 }
 
 /* Iterate through all user threads, applying FUNC(<map>, <lwp>, DATA) until
@@ -366,7 +367,7 @@ thread_iter (int (*func)(iter_t *, void *), void *data)
   if (!read_thr_debug (&debug))
     return 0;
   if (!base_ops.to_xfer_memory ((CORE_ADDR)debug.thr_map, (char *)&mapp,
-                               sizeof (mapp), 0, &base_ops))
+                               sizeof (mapp), 0, NULL, &base_ops))
     return 0;
   if (!mapp)
     return 0;
@@ -618,10 +619,10 @@ libthread_stub (int pid)
   /* Retrieve stub args. */
   sp = read_register_pid (SP_REGNUM, pid);
   if (!base_ops.to_xfer_memory (sp + SP_ARG0, (char *)&mapp,
-                               sizeof (mapp), 0, &base_ops))
+                               sizeof (mapp), 0, NULL, &base_ops))
     goto err;
   if (!base_ops.to_xfer_memory (sp + SP_ARG0 + sizeof (mapp), (char *)&change,
-                               sizeof (change), 0, &base_ops))
+                               sizeof (change), 0, NULL, &base_ops))
     goto err;
 
   /* create_inferior() may not have finished yet, so notice the main
@@ -965,7 +966,7 @@ libthread_init (void)
       /* Activate the stub function. */
       onp = (CORE_ADDR)&((struct thread_debug *)thr_debug_addr)->thr_debug_on;
       if (!base_ops.to_xfer_memory ((CORE_ADDR)onp, (char *)&one,
-                                   sizeof (one), 1, &base_ops))
+                                   sizeof (one), 1, NULL, &base_ops))
        {
          delete_breakpoint (b);
          goto err;
This page took 0.02519 seconds and 4 git commands to generate.