diff options
author | Tristan Gingold <gingold@adacore.com> | 2009-02-05 13:59:18 +0000 |
---|---|---|
committer | Tristan Gingold <gingold@adacore.com> | 2009-02-05 13:59:18 +0000 |
commit | aacd552b10c8e999e2181350cad7dd2e1c25f0d4 (patch) | |
tree | f107ec17494b7314ae80cac8551b8d29de62700f /gdb/testsuite/gdb.base/signull.c | |
parent | ae6a3a4c2a48a78e57332eb9489c3065a8b9aca1 (diff) | |
download | gdb-aacd552b10c8e999e2181350cad7dd2e1c25f0d4.zip gdb-aacd552b10c8e999e2181350cad7dd2e1c25f0d4.tar.gz gdb-aacd552b10c8e999e2181350cad7dd2e1c25f0d4.tar.bz2 |
2009-02-05 Tristan Gingold <gingold@adacore.com>
* gdb.base/sigbpt.exp: Detect which signal is received when a NULL
pointer is dereferenced and use this signal name in regexp.
* gdb.base/signull.exp: Ditto.
* gdb.base/sigbpt.c (main): Catch SIGBUS too.
* gdb.base/signull.c (main): Ditto.
Diffstat (limited to 'gdb/testsuite/gdb.base/signull.c')
-rw-r--r-- | gdb/testsuite/gdb.base/signull.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/signull.c b/gdb/testsuite/gdb.base/signull.c index c506a2b..e4eb6d8 100644 --- a/gdb/testsuite/gdb.base/signull.c +++ b/gdb/testsuite/gdb.base/signull.c @@ -78,6 +78,7 @@ main () memset (&act, 0, sizeof act); act.sa_handler = keeper; sigaction (SIGSEGV, &act, NULL); + sigaction (SIGBUS, &act, NULL); for (i = 0; i < 10; i++) { |