2005-02-20 Andrew Cagney <cagney@gnu.org>
* mi/mi-main.c (captured_mi_execute_command): Use mi_cmd_interpreter_exec.
This commit is contained in:
parent
b4b4ac0b71
commit
78f5381d69
@ -1,5 +1,8 @@
|
|||||||
2005-02-20 Andrew Cagney <cagney@gnu.org>
|
2005-02-20 Andrew Cagney <cagney@gnu.org>
|
||||||
|
|
||||||
|
* mi/mi-main.c (captured_mi_execute_command): Use
|
||||||
|
mi_cmd_interpreter_exec.
|
||||||
|
|
||||||
* cli/cli-decode.c (add_setshow_optional_filename_cmd): New
|
* cli/cli-decode.c (add_setshow_optional_filename_cmd): New
|
||||||
function.
|
function.
|
||||||
* cli/cli-setshow.c (deprecated_show_value_hack)
|
* cli/cli-setshow.c (deprecated_show_value_hack)
|
||||||
|
@ -1103,12 +1103,17 @@ captured_mi_execute_command (struct ui_out *uiout, void *data)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case CLI_COMMAND:
|
case CLI_COMMAND:
|
||||||
/* A CLI command was read from the input stream */
|
{
|
||||||
/* This will be removed as soon as we have a complete set of
|
char *argv[2];
|
||||||
mi commands */
|
/* A CLI command was read from the input stream. */
|
||||||
/* echo the command on the console. */
|
/* This "feature" will be removed as soon as we have a
|
||||||
|
complete set of mi commands. */
|
||||||
|
/* Echo the command on the console. */
|
||||||
fprintf_unfiltered (gdb_stdlog, "%s\n", context->command);
|
fprintf_unfiltered (gdb_stdlog, "%s\n", context->command);
|
||||||
mi_execute_cli_command (context->command, 0, NULL);
|
/* Call the "console" interpreter. */
|
||||||
|
argv[0] = "console";
|
||||||
|
argv[1] = context->command;
|
||||||
|
mi_cmd_interpreter_exec ("-interpreter-exec", argv, 2);
|
||||||
|
|
||||||
/* If we changed interpreters, DON'T print out anything. */
|
/* If we changed interpreters, DON'T print out anything. */
|
||||||
if (current_interp_named_p (INTERP_MI)
|
if (current_interp_named_p (INTERP_MI)
|
||||||
@ -1127,6 +1132,7 @@ captured_mi_execute_command (struct ui_out *uiout, void *data)
|
|||||||
args->rc = MI_CMD_DONE;
|
args->rc = MI_CMD_DONE;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user