From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20223 invoked by alias); 28 Aug 2014 13:49:26 -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 20120 invoked by uid 89); 28 Aug 2014 13:49:21 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW,RCVD_IN_SORBS_WEB,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-we0-f177.google.com Received: from mail-we0-f177.google.com (HELO mail-we0-f177.google.com) (74.125.82.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 28 Aug 2014 13:49:20 +0000 Received: by mail-we0-f177.google.com with SMTP id u56so787993wes.8 for ; Thu, 28 Aug 2014 06:49:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=nxVKdaeA7VbL96EeN9mRu2398vVHhYuvz6Ozydb7Xpg=; b=Yf/aVaOlJC1+kwimTUy54q7VKPmCwd9Ps7SqZh/fofxHIR1CvRRA8aMA2fIkw8taPA Ge+h4YVN2XJK85bY6OyeWEXcD6xHETzYFdk7lbNVyPRikt+LcGdKMbeL7ZKPyvN457Be MjTDFzeFQWaL97c4GUd+jpntc/9NEfwfG94yPLN9bsKzN53++cE8aJAOL28pvmeP7f5L F+lanjzZe4pE4PDXyQzDydHtC5IVW63Ni9qilv21yVdaaE5z4HpWdMW1aIL9YlgoIUfJ 6qIjubsiXDHmzHaj+/Mr+hwh4yjr0652u4QYMgf85YbSHLryA2UySLEQyaPyovcEuzx4 r4Ow== X-Gm-Message-State: ALoCoQkT9TH/G+/mhO5r9+3u2S0fn88SifVolYTiRuyh1qiT6jrRLi7fPIWIJG9LmGQGTcUKS/Ca X-Received: by 10.194.92.244 with SMTP id cp20mr3007644wjb.135.1409233756354; Thu, 28 Aug 2014 06:49:16 -0700 (PDT) Received: from localhost.localdomain ([182.178.141.157]) by mx.google.com with ESMTPSA id kr8sm10135574wjb.20.2014.08.28.06.49.14 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 28 Aug 2014 06:49:15 -0700 (PDT) From: Omair Javaid To: gdb-patches@sourceware.org Subject: Re: [PATCH 2/7] Fixes for aarch64-linux core file support Date: Thu, 28 Aug 2014 13:49:00 -0000 Message-Id: <1409233743-26944-1-git-send-email-omair.javaid@linaro.org> In-Reply-To: References: X-IsSubscribed: yes X-SW-Source: 2014-08/txt/msg00609.txt.bz2 Updated after regset rework pushed upstream. gdb: 2014-08-28 Omair Javaid * aarch64-linux-tdep.c (aarch64_linux_init_abi): Install AArch64 register note sections. (struct core_regset_section aarch64_linux_regset_sections[]): Declare AArch64 register note sections. --- gdb/aarch64-linux-tdep.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/gdb/aarch64-linux-tdep.c b/gdb/aarch64-linux-tdep.c index 6377977..e5565a8 100644 --- a/gdb/aarch64-linux-tdep.c +++ b/gdb/aarch64-linux-tdep.c @@ -231,6 +231,15 @@ aarch64_linux_regset_from_core_section (struct gdbarch *gdbarch, return NULL; } +/* Core file register set sections. */ + +static struct core_regset_section aarch64_linux_regset_sections[] = +{ + { ".reg", AARCH64_LINUX_SIZEOF_GREGSET, "general-purpose" }, + { ".reg2", AARCH64_LINUX_SIZEOF_FPREGSET, "floating-point" }, + { NULL, 0} +}; + /* Implementation of `gdbarch_stap_is_single_operand', as defined in gdbarch.h. */ @@ -376,6 +385,9 @@ aarch64_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) /* Enable longjmp. */ tdep->jb_pc = 11; + /* Install supported register note sections. */ + set_gdbarch_core_regset_sections (gdbarch, aarch64_linux_regset_sections); + set_gdbarch_regset_from_core_section (gdbarch, aarch64_linux_regset_from_core_section); -- 1.9.1