[PowerPC] Consolidate linux vector regset sizes
[deliverable/binutils-gdb.git] / gdb / gdbserver / notif.c
index ba2af775b74a2dd7ccbf08d2b63fa7f0719f4b51..5ff7079123f3f694b4e39635fed9b577a0deeab6 100644 (file)
@@ -1,5 +1,5 @@
 /* Notification to GDB.
-   Copyright (C) 1989-2015 Free Software Foundation, Inc.
+   Copyright (C) 1989-2018 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -86,7 +86,7 @@ handle_notif_ack (char *own_buf, int packet_len)
     {
       const char *ack_name = notifs[i]->ack_name;
 
-      if (strncmp (own_buf, ack_name, strlen (ack_name)) == 0
+      if (startswith (own_buf, ack_name)
          && packet_len == strlen (ack_name))
        break;
     }
@@ -104,8 +104,8 @@ handle_notif_ack (char *own_buf, int packet_len)
        = QUEUE_deque (notif_event_p, np->queue);
 
       if (remote_debug)
-       fprintf (stderr, "%s: acking %d\n", np->ack_name,
-                QUEUE_length (notif_event_p, np->queue));
+       debug_printf ("%s: acking %d\n", np->ack_name,
+                     QUEUE_length (notif_event_p, np->queue));
 
       xfree (head);
     }
@@ -124,8 +124,8 @@ notif_event_enque (struct notif_server *notif,
   QUEUE_enque (notif_event_p, notif->queue, event);
 
   if (remote_debug)
-    fprintf (stderr, "pending events: %s %d\n", notif->notif_name,
-            QUEUE_length (notif_event_p, notif->queue));
+    debug_printf ("pending events: %s %d\n", notif->notif_name,
+                 QUEUE_length (notif_event_p, notif->queue));
 
 }
 
This page took 0.024668 seconds and 4 git commands to generate.