From ce8f13f88e2d8fc915e0af5039080ec0b293ee11 Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Wed, 25 Jun 2008 15:15:42 +0000 Subject: Kill the return value for all MI command functions. * mi/mi-cmds.h (enum mi_cmd_result): Remove. (mi_cmd_argv_ftype): Change return type to void. * mi/mi-main.c: Adjust all function that implement MI commands to return nothing. (struct captured_mi_execute_command_actions): Remove the rc field. (mi_cmd_execute): Return nothing. (mi_execute_async_cli_command): Return nothing. (mi_cmd_exec_interrupt): Don't print ^done here. (mi_cmd_target_select): Don't print ^connected here. (captured_mi_execute_command): Don't check for MI_CMD_DONE. Special-case -target-select and output ^connected, not ^done. * mi/mi-cmd-break.c: Adjust. * mi/mi-cmd-disas.c: Adjust. * mi/mi-cmd-env.c: Adjust. * mi/mi-cmd-file.c: Adjust. * mi/mi-cmd-stack.c: Adjust. * mi/mi-cmd-target.c: Adjust. * mi/mi-cmd-var.c: Adjust. * mi/mi-interp.c: Adjust. * mi/mi-symbol-cmds.c: Adjust. --- gdb/mi/mi-interp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gdb/mi/mi-interp.c') diff --git a/gdb/mi/mi-interp.c b/gdb/mi/mi-interp.c index e329b8b..4a1821d 100644 --- a/gdb/mi/mi-interp.c +++ b/gdb/mi/mi-interp.c @@ -175,7 +175,7 @@ mi_interpreter_prompt_p (void *data) return 0; } -enum mi_cmd_result +void mi_cmd_interpreter_exec (char *command, char **argv, int argc) { struct interp *interp_to_use; @@ -220,7 +220,6 @@ mi_cmd_interpreter_exec (char *command, char **argv, int argc) if (mi_error_message != NULL) error ("%s", mi_error_message); do_cleanups (old_chain); - return MI_CMD_DONE; } /* -- cgit v1.1