llvm-project/lldb/source/Plugins/Process/Linux
Ulrich Weigand bb00d0b6b2 Support Linux on SystemZ as platform
This patch adds support for Linux on SystemZ:
- A new ArchSpec value of eCore_s390x_generic
- A new directory Plugins/ABI/SysV-s390x providing an ABI implementation
- Register context support
- Native Linux support including watchpoint support
- ELF core file support
- Misc. support throughout the code base (e.g. breakpoint opcodes)
- Test case updates to support the platform

This should provide complete support for debugging the SystemZ platform.
Not yet supported are optional features like transaction support (zEC12)
or SIMD vector support (z13).

There is no instruction emulation, since our ABI requires that all code
provide correct DWARF CFI at all PC locations in .eh_frame to support
unwinding (i.e. -fasynchronous-unwind-tables is on by default).

The implementation follows existing platforms in a mostly straightforward
manner.  A couple of things that are different:

- We do not use PTRACE_PEEKUSER / PTRACE_POKEUSER to access single registers,
  since some registers (access register) reside at offsets in the user area
  that are multiples of 4, but the PTRACE_PEEKUSER interface only allows
  accessing aligned 8-byte blocks in the user area.  Instead, we use a s390
  specific ptrace interface PTRACE_PEEKUSR_AREA / PTRACE_POKEUSR_AREA that
  allows accessing a whole block of the user area in one go, so in effect
  allowing to treat parts of the user area as register sets.

- SystemZ hardware does not provide any means to implement read watchpoints,
  only write watchpoints.  In fact, we can only support a *single* write
  watchpoint (but this can span a range of arbitrary size).  In LLDB this
  means we support only a single watchpoint.  I've set all test cases that
  require read watchpoints (or multiple watchpoints) to expected failure
  on the platform.  [ Note that there were two test cases that install
  a read/write watchpoint even though they nowhere rely on the "read"
  property.  I've changed those to simply use plain write watchpoints. ]

Differential Revision: http://reviews.llvm.org/D18978

llvm-svn: 266308
2016-04-14 14:28:34 +00:00
..
CMakeLists.txt Support Linux on SystemZ as platform 2016-04-14 14:28:34 +00:00
NativeProcessLinux.cpp Support Linux on SystemZ as platform 2016-04-14 14:28:34 +00:00
NativeProcessLinux.h Work around a stepping bug in arm64 android M 2016-02-23 13:56:30 +00:00
NativeRegisterContextLinux.cpp [LLDB][MIPS] Fix offsets of all register sets and add MSA regset and FRE=1 mode support 2015-08-17 13:40:17 +00:00
NativeRegisterContextLinux.h Fix warnings found by -Wextra-semi 2015-07-22 08:12:01 +00:00
NativeRegisterContextLinux_arm.cpp Make the aarch64 lldb-server capable of debugging arm32 applications 2016-01-11 10:39:09 +00:00
NativeRegisterContextLinux_arm.h Make the aarch64 lldb-server capable of debugging arm32 applications 2016-01-11 10:39:09 +00:00
NativeRegisterContextLinux_arm64.cpp Process: fix the build with certain kernel versions 2016-04-12 05:40:51 +00:00
NativeRegisterContextLinux_arm64.h Fix the handling of FPR offsets in Linux arm/aarch64 register contexts 2015-09-07 10:11:23 +00:00
NativeRegisterContextLinux_mips64.cpp Try to fix the mips64 build after rL257447 2016-01-12 10:41:43 +00:00
NativeRegisterContextLinux_mips64.h [LLDB][MIPS] Adding call to IsMSAAvailable() while creating RegisterInfoInterface 2015-12-09 12:31:01 +00:00
NativeRegisterContextLinux_s390x.cpp Support Linux on SystemZ as platform 2016-04-14 14:28:34 +00:00
NativeRegisterContextLinux_s390x.h Support Linux on SystemZ as platform 2016-04-14 14:28:34 +00:00
NativeRegisterContextLinux_x86_64.cpp PTRACE ABI to read FXSAVE area for 32-bit inferior 2015-12-02 09:40:17 +00:00
NativeRegisterContextLinux_x86_64.h Bug 24457 - X87 FPU Special Purpose Registers 2015-09-07 07:40:16 +00:00
NativeThreadLinux.cpp Work around a stepping bug in arm64 android M 2016-02-23 13:56:30 +00:00
NativeThreadLinux.h Work around a stepping bug in arm64 android M 2016-02-23 13:56:30 +00:00
ProcFileReader.cpp Move several plugin to its own namespace 2015-03-31 09:52:22 +00:00
ProcFileReader.h Move several plugin to its own namespace 2015-03-31 09:52:22 +00:00
Procfs.h Remove unused mips typedefs. 2015-12-12 02:13:17 +00:00
SingleStepCheck.cpp Work around a stepping bug in arm64 android M 2016-02-23 13:56:30 +00:00
SingleStepCheck.h Work around a stepping bug in arm64 android M 2016-02-23 13:56:30 +00:00