public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH v3 0/3] Enable ptrace support for aarch64 sve
@ 2018-06-15 16:18 Alan Hayward
  2018-06-15 16:18 ` [PATCH v3 1/3] Add Aarch64 SVE compatibility macros Alan Hayward
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Alan Hayward @ 2018-06-15 16:18 UTC (permalink / raw)
  To: gdb-patches; +Cc: nd, Alan Hayward

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)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-06-17  2:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-15 16:18 [PATCH v3 0/3] Enable ptrace support for aarch64 sve Alan Hayward
2018-06-15 16:18 ` [PATCH v3 1/3] Add Aarch64 SVE compatibility macros Alan Hayward
2018-06-15 16:18 ` [PATCH v3 3/3] Ptrace support for AArch64 SVE gdbsever Alan Hayward
2018-06-15 16:18 ` [PATCH v3 2/3] Ptrace support for Aarch64 SVE Alan Hayward
2018-06-17  2:26 ` [PATCH v3 0/3] Enable ptrace support for aarch64 sve Simon Marchi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).