aboutsummaryrefslogtreecommitdiff
path: root/gdb/inferior.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/inferior.c')
-rw-r--r--gdb/inferior.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/inferior.c b/gdb/inferior.c
index cad7e55..3493c16 100644
--- a/gdb/inferior.c
+++ b/gdb/inferior.c
@@ -754,6 +754,9 @@ remove_inferior_command (char *args, int from_tty)
if (inf == current_inferior ())
error (_("Can not remove current symbol inferior."));
+
+ if (inf->pid != 0)
+ error (_("Can not remove an active inferior."));
delete_inferior_1 (inf, 1);
}