This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PING][PATCH v2 0/3] Core file support for Aarch64 SVE
- From: Alan Hayward <Alan dot Hayward at arm dot com>
- To: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Cc: nd <nd at arm dot com>
- Date: Mon, 6 Aug 2018 10:10:01 +0000
- Subject: [PING][PATCH v2 0/3] Core file support for Aarch64 SVE
- References: <20180730092528.98739-1-alan.hayward@arm.com>
Ping.
> On 30 Jul 2018, at 10:25, Alan Hayward <Alan.Hayward@arm.com> wrote:
>
> Support both the reading and writing of core files on aarch64 SVE.
>
> SVE core files are doumented here:
> https://github.com/torvalds/linux/blob/master/Documentation/arm64/sve.txt
> * A NT_ARM_SVE note will be added to each coredump for each thread of the
> dumped process. The contents will be equivalent to the data that would have
> been read if a PTRACE_GETREGSET of NT_ARM_SVE were executed for each thread
> when the coredump was generated.
>
> The first patch adds support allowing writing of core files for targets with
> variable length core files. Currently all targets with variable length core
> files do not allow the creation of core files.
>
> The second patch detects SVE state in a core file.
> The final patch adds the supply/collect functions for core file parsing.
>
> Checked with make check on x86 (all targets) and aarch64.
> Generated core files on SVE emulator both from gdb "generate-core-file"
> command and a segfault. Loaded these back into gdb.
>
>
> Alan Hayward (3):
> Add min size to regset section iterations
> Detect SVE when reading aarch64 core files
> Parse SVE registers in aarch64 core file reading/writing
>
> gdb/aarch64-fbsd-tdep.c | 8 +-
> gdb/aarch64-linux-tdep.c | 190 +++++++++++++++++++++++++++++++++++++++++++++--
> gdb/alpha-linux-tdep.c | 4 +-
> gdb/alpha-nbsd-tdep.c | 6 +-
> gdb/amd64-fbsd-tdep.c | 8 +-
> gdb/amd64-linux-tdep.c | 6 +-
> gdb/arm-bsd-tdep.c | 6 +-
> gdb/arm-fbsd-tdep.c | 7 +-
> gdb/arm-linux-tdep.c | 11 +--
> gdb/corelow.c | 27 ++++---
> gdb/fbsd-tdep.c | 2 +-
> gdb/frv-linux-tdep.c | 8 +-
> gdb/gdbarch.h | 2 +-
> gdb/gdbarch.sh | 2 +-
> gdb/hppa-linux-tdep.c | 6 +-
> gdb/hppa-nbsd-tdep.c | 3 +-
> gdb/hppa-obsd-tdep.c | 6 +-
> gdb/i386-fbsd-tdep.c | 11 ++-
> gdb/i386-linux-tdep.c | 9 ++-
> gdb/i386-tdep.c | 6 +-
> gdb/ia64-linux-tdep.c | 6 +-
> gdb/linux-tdep.c | 2 +-
> gdb/m32r-linux-tdep.c | 3 +-
> gdb/m68k-bsd-tdep.c | 6 +-
> gdb/m68k-linux-tdep.c | 6 +-
> gdb/mips-fbsd-tdep.c | 8 +-
> gdb/mips-linux-tdep.c | 14 ++--
> gdb/mips-nbsd-tdep.c | 8 +-
> gdb/mips64-obsd-tdep.c | 3 +-
> gdb/mn10300-linux-tdep.c | 8 +-
> gdb/nios2-linux-tdep.c | 3 +-
> gdb/ppc-fbsd-tdep.c | 6 +-
> gdb/ppc-linux-tdep.c | 12 +--
> gdb/ppc-nbsd-tdep.c | 4 +-
> gdb/ppc-obsd-tdep.c | 2 +-
> gdb/regcache.h | 8 ++
> gdb/rs6000-aix-tdep.c | 4 +-
> gdb/s390-linux-tdep.c | 23 +++---
> gdb/score-tdep.c | 4 +-
> gdb/sh-tdep.c | 6 +-
> gdb/sparc-tdep.c | 6 +-
> gdb/tilegx-linux-tdep.c | 4 +-
> gdb/vax-tdep.c | 2 +-
> gdb/xtensa-tdep.c | 4 +-
> 44 files changed, 350 insertions(+), 130 deletions(-)
>
> --
> 2.15.2 (Apple Git-101.1)
>