Enable all MI commands while inferiour is running
* mi/mi-main.c (mi_cmd_execute): Don't check if inferiour is executing.
This commit is contained in:
parent
b10a37b10a
commit
e3d6cd5f43
2 changed files with 6 additions and 17 deletions
|
@ -1,3 +1,9 @@
|
|||
2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
|
||||
|
||||
Enable all commands while inferiour is running
|
||||
* mi/mi-main.c (mi_cmd_execute): Don't check if
|
||||
inferiour is executing.
|
||||
|
||||
2008-07-13 Vladimir Prus <vladimir@codesourcery.com>
|
||||
|
||||
Allow all CLI command even if target is executing.
|
||||
|
|
|
@ -1121,23 +1121,6 @@ mi_cmd_execute (struct mi_parse *parse)
|
|||
error_stream (stb);
|
||||
}
|
||||
|
||||
if ((!non_stop && any_running ())
|
||||
|| (non_stop && is_running (inferior_ptid)))
|
||||
{
|
||||
if (strcmp (parse->command, "exec-interrupt"))
|
||||
{
|
||||
struct ui_file *stb;
|
||||
stb = mem_fileopen ();
|
||||
|
||||
fputs_unfiltered ("Cannot execute command ", stb);
|
||||
fputstr_unfiltered (parse->command, '"', stb);
|
||||
fputs_unfiltered (" while target running", stb);
|
||||
|
||||
make_cleanup_ui_file_delete (stb);
|
||||
error_stream (stb);
|
||||
}
|
||||
}
|
||||
|
||||
parse->cmd->argv_func (parse->command, parse->argv, parse->argc);
|
||||
}
|
||||
else if (parse->cmd->cli.cmd != 0)
|
||||
|
|
Loading…
Reference in a new issue