From: Luis Machado Date: Thu, 13 Oct 2011 13:15:16 +0000 (+0000) Subject: 2011-10-13 Luis Machado X-Git-Tag: sid-snapshot-20111101~180 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d6c5869f500e76a23480ab50b4b48e980e73f01c;p=thirdparty%2Fbinutils-gdb.git 2011-10-13 Luis Machado * remote.c (remote_save_trace_data): Invert comparison. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0933b08d878..4d8f007bb40 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2011-10-13 Luis Machado + + * remote.c (remote_save_trace_data): Invert comparison. + 2011-10-13 Luis Machado * tracepoint.c (trace_save_command): Use filename instead of diff --git a/gdb/remote.c b/gdb/remote.c index 32e68f3d16d..d9cc97c468e 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);