This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH v3 0/3] Enable ptrace support for aarch64 sve
- From: Alan Hayward <alan dot hayward at arm dot com>
- To: gdb-patches at sourceware dot org
- Cc: nd at arm dot com, Alan Hayward <alan dot hayward at arm dot com>
- Date: Fri, 15 Jun 2018 17:18:21 +0100
- Subject: [PATCH v3 0/3] Enable ptrace support for aarch64 sve
- Nodisclaimer: True
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
This set of patches adds the ptrace support for SVE.
Patch 1 includes macros/defines copied from the Linux kernel headers.
Previously, there was reservation about the copyright/ownership issues
about putting this into gdb. These header contents were all fully written
by Arm, who own the copyright and released it to Linux under GPL3 license.
This patch simply repackages the same code and releases it with the
same license and "provided by Arm" comment. There is precedence for
Arm doing the same in other FSF projects, and it falls within GPLs
copyleft policy.
I've also kept all the defines in a single file as it only contains
the relevant sections from two headers.
Apologies for the delay on submitting this, as I was seeking
clarification to the above. I'm hoping this alleviates any concerns.
It's also a more robust solution than selectively compiling support.
Patches 2 and 3 fix up all the review comments from v2.
In particular, patch 3 changes is_sve_tdesc to the only method I
could find - checking the number of registers.
Ran make check on x86 and aarch64.
Tested SVE and non-SVE built gdb on Aarch64 SVE emulator.
In addition, I've still got the following awaiting review:
[PATCH] Support large registers in regcache transfer_regset
https://sourceware.org/ml/gdb-patches/2018-06/msg00303.html
Alan Hayward (3):
Add Aarch64 SVE compatibility macros
Ptrace support for Aarch64 SVE
Ptrace support for AArch64 SVE gdbsever
gdb/aarch64-linux-nat.c | 54 ++++++-
gdb/gdbserver/Makefile.in | 1 +
gdb/gdbserver/linux-aarch64-low.c | 63 +++++++-
gdb/nat/aarch64-sve-linux-ptrace.c | 269 ++++++++++++++++++++++++++++++++-
gdb/nat/aarch64-sve-linux-ptrace.h | 51 +++----
gdb/nat/aarch64-sve-linux-sigcontext.h | 268 ++++++++++++++++++++++++++++++++
6 files changed, 667 insertions(+), 39 deletions(-)
create mode 100644 gdb/nat/aarch64-sve-linux-sigcontext.h
--
2.15.1 (Apple Git-101)