]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/printcmd.c
Add set_repeat_arguments function
[thirdparty/binutils-gdb.git] / gdb / printcmd.c
index 017c7bee07a7e8e44d13268c59d6c61b07be3886..51e3d384798acce8e80d3215223ea725755c6186 100644 (file)
@@ -1646,7 +1646,7 @@ x_command (char *exp, int from_tty)
          repeated with Newline.  But don't clobber a user-defined
          command's definition.  */
       if (from_tty)
-       *exp = 0;
+       set_repeat_arguments ("");
       val = evaluate_expression (expr.get ());
       if (TYPE_IS_REFERENCE (value_type (val)))
        val = coerce_ref (val);