Add test that exercises the inferior being killed while stopped under GDB
authorPedro Alves <palves@redhat.com>
Wed, 11 Mar 2015 15:20:31 +0000 (15:20 +0000)
committerPedro Alves <palves@redhat.com>
Tue, 14 Jul 2015 09:55:05 +0000 (10:55 +0100)
commit8ffdba260ca757521c815782a0fe01fedc84849a
tree372b799cfaef75ac6604d1b47ed144b64c05a4ad
parent586b02a96f744497c8921a558f1c386287849ab0
Add test that exercises the inferior being killed while stopped under GDB

This exercises the case of the inferior disappearing while GDB is
debugging it, such as something doing "kill -9 PID" while the program
is stopped under GDB or GDBserver.  This triggered a set of internal
errors, fixed by previous patches.

gdb/testsuite/ChangeLog:
2015-07-14  Pedro Alves  <palves@redhat.com>

* gdb.base/killed-outside.exp: New file.
* gdb.base/killed-outside.c: New file.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/killed-outside.c [new file with mode: 0644]
gdb/testsuite/gdb.base/killed-outside.exp [new file with mode: 0644]