]> Git Repo - binutils.git/blobdiff - gdb/lin-thread.c
Move realoc() decl to utils.c. s/realloc()/xrealloc()/.
[binutils.git] / gdb / lin-thread.c
index 9a3c2443af42d8127b4dbba3a9234513e830a5e5..8c303fd7cb697198a44fa4cf176ff81f58fb9831 100644 (file)
@@ -780,8 +780,8 @@ insert_thread (int tid, int lid, td_thr_state_e state, td_thr_type_e type)
   if (threadlist_top >= threadlist_max)
     {
       threadlist_max += THREADLIST_ALLOC;
-      threadlist      = realloc (threadlist, 
-                                threadlist_max * sizeof (threadinfo));
+      threadlist      = xrealloc (threadlist, 
+                                 threadlist_max * sizeof (threadinfo));
       if (threadlist == NULL)
        return NULL;
     }
@@ -1216,6 +1216,7 @@ thread_db_files_info (struct target_ops *tgt_vector)
 
 static int
 thread_db_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int dowrite,
+                      struct mem_attrib *attrib,
                       struct target_ops *target)
 {
   struct cleanup *old_chain;
@@ -1232,7 +1233,7 @@ thread_db_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int dowrite,
     }
 
   ret = target_beneath->to_xfer_memory (memaddr, myaddr, len,
-                                          dowrite, target);
+                                       dowrite, attrib, target);
   do_cleanups (old_chain);
   return ret;
 }
This page took 0.024517 seconds and 4 git commands to generate.