/* 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.
{
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;
}
= 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);
}
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));
}