Fix PR 20559 - "eval" command and $arg0...$arg9/$argc substitution
[deliverable/binutils-gdb.git] / gdb / cli / cli-script.h
index 7db6e82e6ff6b9e0fc5642e38bafcb7c4c13d333..8920d44fde4e796f195f9e046ae788b12f525da2 100644 (file)
@@ -53,6 +53,12 @@ extern struct cleanup *
 
 extern void execute_user_command (struct cmd_list_element *c, char *args);
 
+/* If we're in a user-defined command, replace any $argc/$argN
+   reference found in LINE with the arguments that were passed to the
+   command.  Otherwise, treat $argc/$argN as normal convenience
+   variables.  */
+extern std::string insert_user_defined_cmd_args (const char *line);
+
 /* Exported to top.c */
 
 extern void print_command_trace (const char *cmd);
This page took 0.023655 seconds and 4 git commands to generate.