From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 59364 invoked by alias); 30 Jul 2018 09:26:06 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 59263 invoked by uid 89); 30 Jul 2018 09:26:05 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-6.9 required=5.0 tests=BAYES_00,GIT_PATCH_2,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: EUR02-VE1-obe.outbound.protection.outlook.com Received: from mail-eopbgr20072.outbound.protection.outlook.com (HELO EUR02-VE1-obe.outbound.protection.outlook.com) (40.107.2.72) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 30 Jul 2018 09:26:03 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=N9l5KkxX/rI4WcDakQLhSv4LtNzS1TuHrrWn3H7PpKA=; b=F96Q8LsMHuXnYrQgz+XNdBhrRKyrGUO3GIdPUUHr5yveiexQhpwV+bvaDQHrOfotYPEWpiAX5Ex1DDbgQsuigQ4dpUUMBdDTThz6xQx5IGTJjROTNdMb/Y2pLZAJnteEu+LfHoSfYMHWFeDEfnnxRnu53VZOD+nQroQ/TThm03M= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Alan.Hayward@arm.com; Received: from C02TF0U7HF1T.manchester.arm.com (217.140.106.32) by DB6PR0802MB2133.eurprd08.prod.outlook.com (2603:10a6:4:83::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.995.21; Mon, 30 Jul 2018 09:25:45 +0000 From: Alan Hayward To: gdb-patches@sourceware.org Cc: nd@arm.com, Alan Hayward Subject: [PATCH v2 0/3] Core file support for Aarch64 SVE Date: Mon, 30 Jul 2018 09:26:00 -0000 Message-Id: <20180730092528.98739-1-alan.hayward@arm.com> MIME-Version: 1.0 Content-Type: text/plain Return-Path: alan.hayward@arm.com Received-SPF: None (protection.outlook.com: arm.com does not designate permitted sender hosts) X-IsSubscribed: yes X-SW-Source: 2018-07/txt/msg00760.txt.bz2 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)