From 7454930699835d060e8540a29dd51bec06ed2071 Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Wed, 11 Jan 1995 05:53:49 +0000 Subject: [PATCH] * gdb.base/sigall.c (gen_FPE): Generate SIGFPE with kill() rather than by dividing by zero. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.base/sigall.c | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index eec2ad1537d..6c2cc9583f8 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +Wed Jan 11 00:47:58 1995 Jim Kingdon + + * gdb.base/sigall.c (gen_FPE): Generate SIGFPE with kill() rather + than by dividing by zero. + Tue Jan 10 21:38:05 1995 Jeff Law (law@snake.cs.utah.edu) * gdb.base/watchpoint.exp: hppa*-*-*bsd* no longer has problems diff --git a/gdb/testsuite/gdb.base/sigall.c b/gdb/testsuite/gdb.base/sigall.c index ba28298c219..c23d7fef033 100644 --- a/gdb/testsuite/gdb.base/sigall.c +++ b/gdb/testsuite/gdb.base/sigall.c @@ -486,8 +486,15 @@ gen_FPE () do the same for SIGBUS, SIGSEGV, etc., but I suspect that even this test might turn out to be insufficiently portable. */ +#if 0 + /* Loses on the PA because after the signal handler executes we try to + re-execute the failing instruction again. Perhaps we could siglongjmp + out of the signal handler? */ /* The expect script looks for the word "kill"; don't delete it. */ return 5 / x; /* and we both started jumping up and down yelling kill */ +#else + kill (getpid (), SIGFPE); +#endif } int -- 2.30.2