aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
authorDon Breazeal <donb@codesourcery.com>2015-09-30 09:58:34 -0700
committerDon Breazeal <donb@codesourcery.com>2015-09-30 10:14:45 -0700
commit6ab24463cb63af792c958ab4455d630b5936f1b1 (patch)
treee5765394bcb2dd279e6246a5c94abbbeeaa4cccc /gdb/remote.c
parent6899683948c66a81ae470efc0869ea01e489e9cd (diff)
downloadgdb-6ab24463cb63af792c958ab4455d630b5936f1b1.zip
gdb-6ab24463cb63af792c958ab4455d630b5936f1b1.tar.gz
gdb-6ab24463cb63af792c958ab4455d630b5936f1b1.tar.bz2
Call strprefix instead of strncmp in event parsing
This fixes a typo that used strncmp instead of strprefix when checking for an exec event in a stop reply packet. gdb/ChangeLog: * remote.c (remote_parse_stop_reply): Call strprefix instead of strncmp.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r--gdb/remote.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index ea6ff6b..f40f791 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -6227,7 +6227,7 @@ Packet: '%s'\n"),
event->ws.kind = TARGET_WAITKIND_VFORK_DONE;
p = skip_to_semicolon (p1 + 1);
}
- else if (strncmp (p, "exec", p1 - p) == 0)
+ else if (strprefix (p, p1, "exec"))
{
ULONGEST ignored;
char pathname[PATH_MAX];