Remove some uses of "object_files"
[deliverable/binutils-gdb.git] / gdb / thread.c
index 5b23b8c1f2a7db16298a793d6a71c3d4ade99301..dbcf8be0e1efa4bce00fa6baf6860251cfe115cd 100644 (file)
@@ -540,12 +540,12 @@ find_thread_ptid (inferior *inf, ptid_t ptid)
 /* See gdbthread.h.  */
 
 struct thread_info *
-find_thread_by_handle (struct value *thread_handle, struct inferior *inf)
+find_thread_by_handle (gdb::array_view<const gdb_byte> handle,
+                      struct inferior *inf)
 {
-  return target_thread_handle_to_thread_info
-          (value_contents_all (thread_handle),
-           TYPE_LENGTH (value_type (thread_handle)),
-           inf);
+  return target_thread_handle_to_thread_info (handle.data (),
+                                             handle.size (),
+                                             inf);
 }
 
 /*
This page took 0.023034 seconds and 4 git commands to generate.