* inferior.c (remove_inferior_command): Don't remove an active inferior.
* mi/mi-main.c (mi_cmd_remove_inferior): Ditto.
This commit is contained in:
parent
ab73a86628
commit
8fa067afb2
3 changed files with 11 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2010-12-22 Marc Khouzam <marc.khouzam@ericsson.com>
|
||||||
|
|
||||||
|
* inferior.c (remove_inferior_command): Don't remove an active inferior.
|
||||||
|
* mi/mi-main.c (mi_cmd_remove_inferior): Ditto.
|
||||||
|
|
||||||
2010-12-21 Tom Tromey <tromey@redhat.com>
|
2010-12-21 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
* thread.c (print_thread_info): Make a ui-out table in CLI mode.
|
* thread.c (print_thread_info): Make a ui-out table in CLI mode.
|
||||||
|
|
|
@ -754,6 +754,9 @@ remove_inferior_command (char *args, int from_tty)
|
||||||
|
|
||||||
if (inf == current_inferior ())
|
if (inf == current_inferior ())
|
||||||
error (_("Can not remove current symbol inferior."));
|
error (_("Can not remove current symbol inferior."));
|
||||||
|
|
||||||
|
if (inf->pid != 0)
|
||||||
|
error (_("Can not remove an active inferior."));
|
||||||
|
|
||||||
delete_inferior_1 (inf, 1);
|
delete_inferior_1 (inf, 1);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1772,6 +1772,9 @@ mi_cmd_remove_inferior (char *command, char **argv, int argc)
|
||||||
if (!inf)
|
if (!inf)
|
||||||
error ("the specified thread group does not exist");
|
error ("the specified thread group does not exist");
|
||||||
|
|
||||||
|
if (inf->pid != 0)
|
||||||
|
error ("can not remove an active inferior");
|
||||||
|
|
||||||
if (inf == current_inferior ())
|
if (inf == current_inferior ())
|
||||||
{
|
{
|
||||||
struct thread_info *tp = 0;
|
struct thread_info *tp = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue