Introduce target_ops method thread_info_to_thread_handle
[deliverable/binutils-gdb.git] / gdb / remote.c
index 767c69444b84ae00b3ceddd59ff1b31bfa3426c1..9bbf458b6374c5653e6657bec4eeaa8dc4288f32 100644 (file)
@@ -485,6 +485,9 @@ public:
                                             int handle_len,
                                             inferior *inf) override;
 
+  gdb::byte_vector thread_info_to_thread_handle (struct thread_info *tp)
+                                                override;
+
   void stop (ptid_t) override;
 
   void interrupt () override;
@@ -13998,6 +14001,13 @@ remote_target::thread_handle_to_thread_info (const gdb_byte *thread_handle,
   return NULL;
 }
 
+gdb::byte_vector
+remote_target::thread_info_to_thread_handle (struct thread_info *tp)
+{
+  remote_thread_info *priv = get_remote_thread_info (tp);
+  return priv->thread_handle;
+}
+
 bool
 remote_target::can_async_p ()
 {
This page took 0.025246 seconds and 4 git commands to generate.