gdbserver: turn target op 'thread_stopped' into a method
[deliverable/binutils-gdb.git] / gdbserver / target.cc
index 4f8d91c171f30bf1d8f7096be06eebd2bbd6b0b8..b44170a7cddc86f43cc99d8fb6c0d4cb2bb534de 100644 (file)
@@ -66,8 +66,8 @@ prepare_to_access_memory (void)
     {
       if (mythread_alive (thread->id))
        {
-         if (stopped == NULL && the_target->thread_stopped != NULL
-             && thread_stopped (thread))
+         if (stopped == NULL && the_target->pt->supports_thread_stopped ()
+             && target_thread_stopped (thread))
            stopped = thread;
 
          if (first == NULL)
@@ -626,3 +626,15 @@ process_target::write_pc (regcache *regcache, CORE_ADDR pc)
 {
   gdb_assert_not_reached ("process_target::write_pc: Unable to update PC");
 }
+
+bool
+process_target::supports_thread_stopped ()
+{
+  return false;
+}
+
+bool
+process_target::thread_stopped (thread_info *thread)
+{
+  gdb_assert_not_reached ("target op thread_stopped not supported");
+}
This page took 0.024082 seconds and 4 git commands to generate.