2011-10-13 Luis Machado <lgustavo@codesourcery.com>
authorLuis Machado <luisgpm@br.ibm.com>
Thu, 13 Oct 2011 13:15:16 +0000 (13:15 +0000)
committerLuis Machado <luisgpm@br.ibm.com>
Thu, 13 Oct 2011 13:15:16 +0000 (13:15 +0000)
* remote.c (remote_save_trace_data): Invert comparison.

gdb/ChangeLog
gdb/remote.c

index 0933b08d878c2afcd2e513f392e985b6be8b872c..4d8f007bb40297a9ff932cdb2eeca94f48cd857f 100644 (file)
@@ -1,3 +1,7 @@
+2011-10-13  Luis Machado  <lgustavo@codesourcery.com>
+
+       * remote.c (remote_save_trace_data): Invert comparison.
+
 2011-10-13  Luis Machado  <lgustavo@codesourcery.com>
 
        * tracepoint.c (trace_save_command): Use filename instead of
index 32e68f3d16dc2b71af9c86e04e70b34850497287..d9cc97c468e07896947b98ade093188c98ba459f 100644 (file)
@@ -10274,7 +10274,7 @@ remote_save_trace_data (const char *filename)
   *p++ = '\0';
   putpkt (rs->buf);
   reply = remote_get_noisy_reply (&target_buf, &target_buf_size);
-  if (*reply != '\0')
+  if (*reply == '\0')
     error (_("Target does not support this command."));
   if (strcmp (reply, "OK") != 0)
     error (_("Bogus reply from target: %s"), reply);
This page took 0.033591 seconds and 4 git commands to generate.