aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/remote.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index aa9ab19..79537a4 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2009-04-16 Pedro Alves <pedro@codesourcery.com>
+
+ * remote.c (remote_query_attached): Fix pasto in packet_ok result
+ checking.
+
2009-04-16 Joel Brobecker <brobecker@adacore.com>
* procfs.c (solib_mappings_callback, find_memory_regions_callback):
diff --git a/gdb/remote.c b/gdb/remote.c
index 367a0eb..bec99f0 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -1139,7 +1139,7 @@ remote_query_attached (int pid)
getpkt (&rs->buf, &rs->buf_size, 0);
switch (packet_ok (rs->buf,
- &remote_protocol_packets[PACKET_qAttached]) == PACKET_OK)
+ &remote_protocol_packets[PACKET_qAttached]))
{
case PACKET_OK:
if (strcmp (rs->buf, "1") == 0)