* remote.c (remote_query_attached): Fix pasto in packet_ok result
authorPedro Alves <palves@redhat.com>
Thu, 16 Apr 2009 19:31:03 +0000 (19:31 +0000)
committerPedro Alves <palves@redhat.com>
Thu, 16 Apr 2009 19:31:03 +0000 (19:31 +0000)
checking.

gdb/ChangeLog
gdb/remote.c

index aa9ab19b9943256e45cf081ebd1d28d082b8b741..79537a45a1e3af9a0fb9d092ab192dbde7b898af 100644 (file)
@@ -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):
index 367a0ebf029e3ec30baf7345ddcde5e6ceb0b654..bec99f0b533675af083cb06275da3888348d471d 100644 (file)
@@ -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)