diff options
author | Michael Munday <mike.munday@ibm.com> | 2017-12-05 10:05:41 -0500 |
---|---|---|
committer | Dave Watson <davejwatson@fb.com> | 2018-01-09 07:37:55 -0800 |
commit | 441adc46ffe775d83446ec7253f5259864069cba (patch) | |
tree | c0b5c5fa1535f7007c047b10a54f4413e8a7dbeb /src/s390x/Lstep.c | |
parent | 4c07b170372feb174e11775a01ea3bd718d636d6 (diff) | |
download | libunwind-441adc46ffe775d83446ec7253f5259864069cba.tar.gz |
Add port to Linux on IBM Z (s390x)
This adds a port to Linux on the IBM Z platform (a.k.a s390x). It only
supports the 64-bit ABI. Most functionality is working and all the tests
pass with the exception of the coredump tests*.
Unwinding is only supported if DWARF unwind information is present.
libunwind can't currently make use of the backchain (if present).
The getcontext/setcontext functions only preserve/restore a subset of
registers. Currently this only consists of callee-saved registers and
some parameter registers.
Vector registers and access registers are not saved (and aren't callee-
saved) by getcontext and cannot currently be modified. They will however
be restored unmodified after resuming a context from a signal handler.
There is no special libunwind support for setjmp, the functionality is
emulated using glibc (I think all the ports do this for modern Linux
kernels).
* Unwinding on s390x requires floating point register access which the
coredump library doesn't currently support.
Diffstat (limited to 'src/s390x/Lstep.c')
-rw-r--r-- | src/s390x/Lstep.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/s390x/Lstep.c b/src/s390x/Lstep.c new file mode 100644 index 00000000..c1ac3c75 --- /dev/null +++ b/src/s390x/Lstep.c @@ -0,0 +1,5 @@ +#define UNW_LOCAL_ONLY +#include <libunwind.h> +#if defined(UNW_LOCAL_ONLY) && !defined(UNW_REMOTE_ONLY) +#include "Gstep.c" +#endif |