summaryrefslogtreecommitdiff
path: root/tests/Gtest-resume-sig.c
Commit message (Collapse)AuthorAgeFilesLines
* x86_64: Use sigprocmask from signal framesDave Watson2017-01-131-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | Currently setcontext for x86_64 restores the signal mask, even though it is never saved anywhere. This means the signal mask is often garbage after an unw_resume. (changed in commit f8a15e9679e59872ca2) It looks like this was a fix for the Gtest-resume-sig function - testing if signal masks are restored across signal frames. The root issue looks like that x86_64 only uses sigreturn for the exact signal frame, and not for any decedant frames as well (as i64 does). Instead, modify Gresume to use sigreturn if *any* frame on the stack is a signal frame, so that we correct fixup the signal mask and any sigaltstacks. The sigreturn os-specific functions are changed slightly to copy in the saved ucontext structure if we are jumping farther up the stack. This should fix sigprocmask reported issues such as https://github.com/dropbox/pyston/blob/master/libunwind_patches/0002-pyston-stop-x86_64-setcontext-restoring-uninitialize.patch Tests pass on freebsd, linux
* Add TileGx platform support to libunwind.Zhi-Gang Liu2014-09-081-0/+5
| | | | | | | | "make check" passed. ====================================================== All 34 tests behaved as expected (2 expected failures) ====================================================== Zhi-Gang Liu @ Tilera
* Use `UNUSED' in testsTommi Rantala2012-09-281-3/+5
|
* test-resume-sig-rt: test unw_resume() in presence of "realtime" signal frameTommi Rantala2012-08-211-3/+25
| | | | | | | | Introduce a new test case that is derived from test-resume-sig, but using the SA_SIGINFO sigaction() flag. This case is referred in the linux kernel sources as "realtime" signal handler, and is handled differently in the kernel on many architectures and in libunwind as well.
* Annotate unused parameters in testsTommi Rantala2012-08-211-1/+1
| | | | | | Compiling the tests with -Wextra results to lots of warnings for unused parameters. Annotate these cases with the `unused' attribute to avoid the warnings.
* Fix a couple of test breakages on x86_64Arun Sharma2010-03-101-6/+7
| | | | | setcontext() now restores the signal mask. Also remove a check in the test that doesn't seem to be valid.
* (handler): get_bsp() returns an integer, not a pointer.mostang.com!davidm2005-05-031-14/+52
| | | | | | | | | | | | | | | (main): Do some silly FP computations. On x86-64, this ensures that the signal handler invocations will always be called with the FPU-state saved as well. Without this, the first signal was invoked without FPU-state, the second with, causing a spurious failure. 2004/11/17 02:06:25-08:00 mostang.com!davidm (get_bsp): New function. (handler): Clean up & check for error returns. (main): Also fail if we didn't get SIGUSR2. (Logical change 1.290)
* Cast printf() argument to avoid compiler warning.hp.com!davidm2003-11-271-1/+2
| | | | (Logical change 1.130)
* If we have it, include "config.h".mostang.com!davidm2003-03-271-0/+12
| | | | | | | If we have it, include <ia64intrin.h> (handler): Add support for ECC. (Logical change 1.68)
* Dhp.com!davidm2003-02-221-0/+115
| | | | | | | 2003/02/21 18:59:31-08:00 hp.com!davidm Rename: tests/test-resume-sig.c -> tests/Gtest-resume-sig.c (Logical change 1.53)
* Initial revisionhp.com!davidm2003-02-221-0/+0