aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi/mi-parse.c
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2008-04-24 13:28:06 +0000
committerVladimir Prus <vladimir@codesourcery.com>2008-04-24 13:28:06 +0000
commit9e22b03a59af5954c5c62391c22475d1916bc4bd (patch)
treedde75c8a39acfb5db9c51820736b942d0414e2c9 /gdb/mi/mi-parse.c
parent18a1839349df0a60254542ab16bc5e299d9bfaeb (diff)
downloadgdb-9e22b03a59af5954c5c62391c22475d1916bc4bd.zip
gdb-9e22b03a59af5954c5c62391c22475d1916bc4bd.tar.gz
gdb-9e22b03a59af5954c5c62391c22475d1916bc4bd.tar.bz2
* mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
Adjust all prototypes using mi_cmd_args_ftype to use mi_cmd_argv_ftype. (struct mi_cmd): Remove the args_func field. * mi/mi-cmds.c: Don't provide value for the args_func field. * mi/mi-main.c (mi_execute_async_cli_command) (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction) (mi_cmd_exec_step, mi_cmd_exec_step_instruction) (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return) (mi_cmd_exec_continue, mi_cmd_exec_interrupt) (mi_cmd_target_download): Adjust. (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter. (mi_cmd_execute): Do not check for args_func. (mi_execute_async_cli_command): Adjust. * mi/mi-parse.c: Don't check for args_func.
Diffstat (limited to 'gdb/mi/mi-parse.c')
-rw-r--r--gdb/mi/mi-parse.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/gdb/mi/mi-parse.c b/gdb/mi/mi-parse.c
index 5b2d03f..a2dc50d 100644
--- a/gdb/mi/mi-parse.c
+++ b/gdb/mi/mi-parse.c
@@ -217,13 +217,10 @@ mi_parse (char *cmd)
}
/* FIXME: DELETE THIS */
- /* For CLI and old ARGS commands, also return the remainder of the
+ /* For CLI commands, also return the remainder of the
command line as a single string. */
- if (parse->cmd->args_func != NULL
- || parse->cmd->cli.cmd != NULL)
- {
- parse->args = xstrdup (chp);
- }
+ if (parse->cmd->cli.cmd != NULL)
+ parse->args = xstrdup (chp);
/* Fully parsed. */
parse->op = MI_COMMAND;