Add "signal SIGTRAP" test
authorPedro Alves <palves@redhat.com>
Mon, 26 Jan 2015 17:52:28 +0000 (17:52 +0000)
committerPedro Alves <palves@redhat.com>
Tue, 10 Feb 2015 19:30:55 +0000 (19:30 +0000)
commit01b088bc51fe37e07905d36547f4ea43904837c0
tree79974766f86004f46b1479289a438a8241ae7363
parentb052c4fbf5e64a2e96452642adf433f60b185245
Add "signal SIGTRAP" test

Some local changes I was working on related to SIGTRAP handling
resulted in "signal SIGTRAP" no longer passing the SIGTRAP to the
inferior.

Surprisingly, only annota1.exp catches this.  This commit adds a test
that doesn't rely on annotations, so that at the point annotations are
finaly dropped, we still have this use case covered ...

This is a multi-threaded test to also exercise the case of first
needing to do a step-over before delivering the signal.

Tested on x86_64 Fedora 20, native, remote/extended-remote gdbserver.

gdb/testsuite/
2015-02-10  Pedro Alves  <palves@redhat.com>

* gdb.threads/signal-sigtrap.c: New file.
* gdb.threads/signal-sigtrap.exp: New file.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.threads/signal-sigtrap.c [new file with mode: 0644]
gdb/testsuite/gdb.threads/signal-sigtrap.exp [new file with mode: 0644]