aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorLuis Machado <luisgpm@br.ibm.com>2011-10-13 13:15:16 +0000
committerLuis Machado <luisgpm@br.ibm.com>2011-10-13 13:15:16 +0000
commitd6c5869f500e76a23480ab50b4b48e980e73f01c (patch)
tree29d7a72c743b625c28fc914ab4cae0c53d6a4923 /gdb
parenta70633a2ddd428843a4db54a72ff13b2501cb705 (diff)
downloadgdb-d6c5869f500e76a23480ab50b4b48e980e73f01c.zip
gdb-d6c5869f500e76a23480ab50b4b48e980e73f01c.tar.gz
gdb-d6c5869f500e76a23480ab50b4b48e980e73f01c.tar.bz2
2011-10-13 Luis Machado <lgustavo@codesourcery.com>
* remote.c (remote_save_trace_data): Invert comparison.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/remote.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 0933b08..4d8f007 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
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
args when printing.
diff --git a/gdb/remote.c b/gdb/remote.c
index 32e68f3..d9cc97c 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -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);