gdbserver: turn target op 'handle_monitor_command' into a method
[deliverable/binutils-gdb.git] / gdbserver / server.cc
index f427e7706fbb62730636902bd77aaa2fcafab6db..f9817881d77312116e04cbbbb3245250b1bd33bd 100644 (file)
@@ -2577,8 +2577,7 @@ handle_query (char *own_buf, int packet_len, int *new_packet_len_p)
 
       write_ok (own_buf);
 
-      if (the_target->handle_monitor_command == NULL
-         || (*the_target->handle_monitor_command) (mon) == 0)
+      if (the_target->pt->handle_monitor_command (mon) == 0)
        /* Default processing.  */
        handle_monitor_command (mon, own_buf);
 
This page took 0.025795 seconds and 4 git commands to generate.