gdbserver: turn target op 'request_interrupt' into a method
[deliverable/binutils-gdb.git] / gdbserver / server.cc
index 73f8e185477378989dbbcbfe859ddb9f3d91ef3f..bc497f87b7f27bff7203b4d9bd595fb31b4681fa 100644 (file)
@@ -2192,8 +2192,8 @@ handle_query (char *own_buf, int packet_len, int *new_packet_len_p)
       if (target_supports_tracepoints ())
        tracepoint_look_up_symbols ();
 
-      if (current_thread != NULL && the_target->look_up_symbols != NULL)
-       (*the_target->look_up_symbols) ();
+      if (current_thread != NULL)
+       the_target->pt->look_up_symbols ();
 
       current_thread = save_thread;
 
@@ -2847,7 +2847,7 @@ resume (struct thread_resume *actions, size_t num_actions)
       enable_async_io ();
     }
 
-  (*the_target->resume) (actions, num_actions);
+  the_target->pt->resume (actions, num_actions);
 
   if (non_stop)
     write_ok (cs.own_buf);
@@ -3088,7 +3088,7 @@ handle_v_requests (char *own_buf, int packet_len, int *new_packet_len)
     {
       if (strcmp (own_buf, "vCtrlC") == 0)
        {
-         (*the_target->request_interrupt) ();
+         the_target->pt->request_interrupt ();
          write_ok (own_buf);
          return;
        }
This page took 0.032885 seconds and 4 git commands to generate.