X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fremote-notif.c;h=2d24a9a57f736ff412a82884f145eb8b1d5e0453;hb=96e9210fd6fecc1926559dbfa45e7c7c59f7d821;hp=d3e1b26394b7b779008aae49a078fd18466ff9e1;hpb=ecd75fc8eed3bde86036141228074a20e55dcfc9;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/remote-notif.c b/gdb/remote-notif.c index d3e1b26394..2d24a9a57f 100644 --- a/gdb/remote-notif.c +++ b/gdb/remote-notif.c @@ -1,6 +1,6 @@ /* Remote notification in GDB protocol - Copyright (C) 1988-2014 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; }