From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12586 invoked by alias); 1 Sep 2016 07:37:00 -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 12367 invoked by uid 89); 1 Sep 2016 07:36:58 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=reducing, Hx-languages-length:1707, H*MI:sk:1472516 X-Spam-User: qpsmtpd, 2 recipients X-HELO: camailhost.cavium.com Received: from camailhost.cavium.com (HELO camailhost.cavium.com) (12.108.191.230) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 01 Sep 2016 07:36:48 +0000 Received: from apinski-ss1.caveonetworks.com ([10.18.106.6]) by camailhost.cavium.com (8.14.7/8.14.7) with ESMTP id u817aiID005038; Thu, 1 Sep 2016 00:36:45 -0700 Received: from apinski-ss1.caveonetworks.com (localhost [127.0.0.1]) by apinski-ss1.caveonetworks.com (8.15.2/8.15.2/Debian-3) with ESMTP id u817ai9r043092; Thu, 1 Sep 2016 00:36:44 -0700 Received: (from apinski@localhost) by apinski-ss1.caveonetworks.com (8.15.2/8.15.2/Submit) id u817ai4A043091; Thu, 1 Sep 2016 00:36:44 -0700 From: Andrew Pinski To: gdb-patches@sourceware.org, binutils@sourceware.org Cc: Andrew Pinski Subject: [PATCH v2 0/3] Support AARCH64 ILP32 for gdb Date: Thu, 01 Sep 2016 07:37:00 -0000 Message-Id: <1472715400-43043-1-git-send-email-apinski@cavium.com> In-Reply-To: <1472516750-30743-1-git-send-email-apinski@cavium.com> References: <1472516750-30743-1-git-send-email-apinski@cavium.com> X-SW-Source: 2016-09/txt/msg00003.txt.bz2 This patch set implements the basic support needed to debug AARCH64 ILP32 programs under Linux. This does not implement the full needed support like for syscalls or core dump (both are still in flux). But what is provided here is not influx at all and is indepedent of any changes could happen to the Linux kernel or glibc. v1 -> v2: 1. Rebase on top of the current trunk 2. Move the setting of ilp32 earlier in the patch 2 so less changes are done in patch 3. 3. Use 64bit registers for pc and sp like x32 does. 4. No longer changing the name of the register set for ILP32; reducing the changes for patch 3. Thanks, Andrew Pinski Andrew Pinski (3): Move AARCH64 ILP32 rejection handling Add ILP32 support to gdb. Handle ILP32 AARCH64 correctly for gdbserver bfd/ChangeLog | 8 ++ bfd/cpu-aarch64.c | 28 +----- bfd/elfnn-aarch64.c | 17 +++- gdb/ChangeLog | 23 +++++ gdb/aarch64-linux-tdep.c | 8 +- gdb/aarch64-tdep.c | 23 ++++- gdb/aarch64-tdep.h | 3 + gdb/features/Makefile | 4 +- gdb/features/aarch64_ilp32-core.xml | 67 +++++++++++++ gdb/features/aarch64_ilp32.c | 191 ++++++++++++++++++++++++++++++++++++ gdb/features/aarch64_ilp32.xml | 14 +++ gdb/gdbserver/ChangeLog | 19 ++++ gdb/gdbserver/Makefile.in | 6 ++ gdb/gdbserver/configure.srv | 7 +- gdb/gdbserver/linux-aarch64-ipa.c | 11 ++- gdb/gdbserver/linux-aarch64-low.c | 10 +- gdb/regformats/aarch64_ilp32.dat | 73 ++++++++++++++ 17 files changed, 474 insertions(+), 38 deletions(-) create mode 100644 gdb/features/aarch64_ilp32-core.xml create mode 100644 gdb/features/aarch64_ilp32.c create mode 100644 gdb/features/aarch64_ilp32.xml create mode 100644 gdb/regformats/aarch64_ilp32.dat -- 2.7.4