From 8fa067afb27618ea0b54d76b8096faca0d7ab0e7 Mon Sep 17 00:00:00 2001 From: Marc Khouzam Date: Wed, 22 Dec 2010 18:30:19 +0000 Subject: * inferior.c (remove_inferior_command): Don't remove an active inferior. * mi/mi-main.c (mi_cmd_remove_inferior): Ditto. --- gdb/mi/mi-main.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gdb/mi') diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c index b03a8b9..6f66e89 100644 --- a/gdb/mi/mi-main.c +++ b/gdb/mi/mi-main.c @@ -1772,6 +1772,9 @@ mi_cmd_remove_inferior (char *command, char **argv, int argc) if (!inf) error ("the specified thread group does not exist"); + if (inf->pid != 0) + error ("can not remove an active inferior"); + if (inf == current_inferior ()) { struct thread_info *tp = 0; -- cgit v1.1