diff options
author | Marc Khouzam <marc.khouzam@ericsson.com> | 2010-12-22 18:30:16 +0000 |
---|---|---|
committer | Marc Khouzam <marc.khouzam@ericsson.com> | 2010-12-22 18:30:16 +0000 |
commit | 8adc5fddcedf6ba47d6fd40dc2ba4c4f9c9b6a45 (patch) | |
tree | 1bc8fc5e7d84ee59fd0fcc6213deb21f3eca0b58 /gdb/inferior.c | |
parent | e0b60493e555d6d78e5bd69890531ed86fdfbad8 (diff) | |
download | gdb-8adc5fddcedf6ba47d6fd40dc2ba4c4f9c9b6a45.tar.gz |
* inferior.c (remove_inferior_command): Don't remove an active inferior.
* mi/mi-main.c (mi_cmd_remove_inferior): Ditto.
Diffstat (limited to 'gdb/inferior.c')
-rw-r--r-- | gdb/inferior.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/inferior.c b/gdb/inferior.c index cad7e55d3c9..3493c16037b 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); } |