History log of /external/libunwind/src/setjmp/siglongjmp.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
814bd79fb1814eb5bbeb2fdb652d5ae08f1edd28 04-Aug-2012 Arun Sharma <asharma@fb.com> Fix some compiler warnings
/external/libunwind/src/setjmp/siglongjmp.c
59328832f7ee48682fcd0fd1ca0cb9cfdb32ec4a 05-Feb-2012 Konstantin Belousov <kib@freebsd.org> Provide the FreeBSD implementation for _UI_siglongjmp_cont on x86.
On FreeBSD, _NSIG is at least 128, so just pass a pointer to the
signal mask in the register.
Add my copyright.
/external/libunwind/src/setjmp/siglongjmp.c
2b606faa21024932f6819ba31e846d866db9d2f9 26-Nov-2011 Konstantin Belousov <kostikbel@gmail.com> Fix compilation on non-glibc machines.

Commit 297d9cd07d7ea9b541fb13bffe418 (Fix for failing test-setjmp)
breaks non glibc systems, since __GLIBC_PREREQ is not defined there.
As a consequence, preprocessor aborts with an error.

Trying to hide __GLIBC_PREREQ under #ifdef __GLIBC would require
either code duplication, or moving the longjmp implementation into
the separate file, which is included twice. In fact, I am not sure
in any use of the __GLIBC_PREREQ at the compile time, because the
compiled code can be run on the later version of glibc.

Below is the patch, tested on FreeBSD x86/x86_64 and Scientific Linux 6.1
x86_64. I compile the code always, but keep it in under unused static
symbol. In principle, the code could be optimized out by linker.

[ Minor formatting edits: asharma@fb.com ]
/external/libunwind/src/setjmp/siglongjmp.c
297d9cd07d7ea9b541fb13bffe418c8b2a8c3aa6 15-Nov-2011 Paul Pluzhnikov <ppluzhnikov@google.com> Fix for failing test-setjmp

On Mon, Nov 14, 2011 at 5:02 PM, Paul Pluzhnikov <ppluzhnikov@google.com> wrote:

> P.S. test-setjmp is failing for me (before or after the patch).
> When I enable assertions (to confirm my new assertions are correct), I see:
>
>  lt-test-setjmp: ../../src/dwarf/Gparser.c:754: apply_reg_state: \
>    Assertion `rs->reg[17].where == DWARF_WHERE_EXPR' failed.
>
> which likely explains that failure.

The problem is actually two-fold:

First, the loops in {sig,}longjmp.c are "do { ... } while (unw_step() >= 0);"

But unw_step() returns 0 on reaching the end of the chain (_start),
and the loop should stop there.

The second problem is that with this commit:
http://repo.or.cz/w/glibc.git/commitdiff/c67da0b50e3d20f89d7bb352cd67dcf66d808e50
glibc obfuscates value of SP in jmp_buf, so we might as well just give up.

Patch attached.

Thanks,
--
Paul Pluzhnikov
/external/libunwind/src/setjmp/siglongjmp.c
5715d912f4f43041735031170d7f8ead6f70924d 03-Apr-2010 Konstantin Belousov <kostik@pooma.home> Make setjmp/longjmp work at least on FreeBSD/amd64.
FreeBSD-supplied setjmp() saves incremented stack pointer into jmpbuf.

I have no idea whether siglongjmp ever worked on amd64, since
UNW_NUM_EH_REGS == 2 and abort at siglongjmp.c:81 is firing.
/external/libunwind/src/setjmp/siglongjmp.c
29c110265f50c14b8611a3f14be3941b23952125 06-Mar-2010 Konstantin Belousov <kostik@pooma.home> _NSIG.
/external/libunwind/src/setjmp/siglongjmp.c
3842dac7333e42aa44531eda34ba55200b99ccf8 05-Feb-2008 Daniel Jacobowitz <drow@false.org> Add initial ARM and MIPS support. To support this, also enable the
reading of .debug_frame sections (used in lieu of .eh_frame sections
when they're not available).
/external/libunwind/src/setjmp/siglongjmp.c
fd2fa63a6cfb475f29cf81a7b32235f6915ef6a4 26-Jul-2006 David Mosberger-Tang <davidm@koala.localdomain> Fix missed merge on setjmp_i.h and siglongjmp.c.
/external/libunwind/src/setjmp/siglongjmp.c
a369768c279654ae247643f81e0d2f6f7ddd4d15 26-Jul-2006 David Mosberger-Tang <davidm@koala.localdomain> Revert "Initial revision"

This reverts 06d223e924c0c16f2df3e1eeb92e4c44224969fd commit.
/external/libunwind/src/setjmp/siglongjmp.c
d9e100753f5694ebb14769048373e8171f336127 20-May-2005 hp.com!davidm <hp.com!davidm> Include "libunwind_i.h" instead of "tdep.h".

(Logical change 1.294)
/external/libunwind/src/setjmp/siglongjmp.c
06d223e924c0c16f2df3e1eeb92e4c44224969fd 03-May-2005 mostang.com!davidm <mostang.com!davidm> Initial revision
/external/libunwind/src/setjmp/siglongjmp.c
acf90b1f82efaef45ed3cce2d3e565582f764579 03-May-2005 mostang.com!davidm <mostang.com!davidm> Include "setjmp_i.h".
Abstract ia64-specific code into bsp_match() and
resume_restores_sigmask() routines.

2004/12/06 01:33:01-08:00 mostang.com!davidm
Rename: src/siglongjmp.c -> src/setjmp/siglongjmp.c

(Logical change 1.290)
/external/libunwind/src/setjmp/siglongjmp.c