X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fremote-notif.c;h=2d24a9a57f736ff412a82884f145eb8b1d5e0453;hb=96e9210fd6fecc1926559dbfa45e7c7c59f7d821;hp=163979d211108687f0c779c6889c2ac9b57e8009;hpb=62972e0b66f4247f56c795ee55bc0825933a7bed;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/remote-notif.c b/gdb/remote-notif.c index 163979d211..2d24a9a57f 100644 --- a/gdb/remote-notif.c +++ b/gdb/remote-notif.c @@ -1,6 +1,6 @@ /* Remote notification in GDB protocol - Copyright (C) 1988-2013 Free Software Foundation, Inc. + Copyright (C) 1988-2015 Free Software Foundation, Inc. This file is part of GDB. @@ -38,10 +38,9 @@ #include "event-loop.h" #include "target.h" #include "inferior.h" +#include "infrun.h" #include "gdbcmd.h" -#include - int notif_debug = 0; /* Supported clients of notifications. */ @@ -134,7 +133,7 @@ handle_notification (struct remote_notif_state *state, char *buf) { const char *name = notifs[i]->name; - if (strncmp (buf, name, strlen (name)) == 0 + if (startswith (buf, name) && buf[strlen (name)] == ':') break; }