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.
This commit is contained in:
Vladimir Prus
2008-06-25 15:15:42 +00:00
parent a2840c3559
commit ce8f13f88e
12 changed files with 111 additions and 201 deletions

View File

@@ -28,7 +28,7 @@
/* Return to the client the absolute path and line number of the
current file being executed. */
enum mi_cmd_result
void
mi_cmd_file_list_exec_source_file (char *command, char **argv, int argc)
{
struct symtab_and_line st;
@@ -60,11 +60,9 @@ mi_cmd_file_list_exec_source_file (char *command, char **argv, int argc)
ui_out_field_string (uiout, "fullname", st.symtab->fullname);
ui_out_field_int (uiout, "macro-info", st.symtab->macro_table ? 1 : 0);
return MI_CMD_DONE;
}
enum mi_cmd_result
void
mi_cmd_file_list_exec_source_files (char *command, char **argv, int argc)
{
struct symtab *s;
@@ -113,6 +111,4 @@ mi_cmd_file_list_exec_source_files (char *command, char **argv, int argc)
}
ui_out_end (uiout, ui_out_type_list);
return MI_CMD_DONE;
}