Fix PR 21352: Command tsave does not support -r argument
[binutils-gdb.git] / gdb / tracefile.c
index 641ad4d93704b21db270ca8f1926777249635611..cc90945bb2abfc9d017c1234e6759c000b016001 100644 (file)
@@ -325,7 +325,7 @@ tsave_command (char *args, int from_tty)
     {
       if (strcmp (*argv, "-r") == 0)
        target_does_save = 1;
-      if (strcmp (*argv, "-ctf") == 0)
+      else if (strcmp (*argv, "-ctf") == 0)
        generate_ctf = 1;
       else if (**argv == '-')
        error (_("unknown option `%s'"), *argv);