From patchwork Wed Sep 17 23:36:40 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Omair Javaid X-Patchwork-Id: 2900 Received: (qmail 27426 invoked by alias); 17 Sep 2014 23:37:00 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 27414 invoked by uid 89); 17 Sep 2014 23:36:58 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pa0-f44.google.com Received: from mail-pa0-f44.google.com (HELO mail-pa0-f44.google.com) (209.85.220.44) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Wed, 17 Sep 2014 23:36:57 +0000 Received: by mail-pa0-f44.google.com with SMTP id bj1so131620pad.3 for ; Wed, 17 Sep 2014 16:36:55 -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=NqvN6yHhvVaTyv5UGDX31w134SUnATbAGTBuS8S3gh8=; b=h6AqhqEJ8SLDg4V1SOTXyxz0nAi09tnzjRDeJ4xrYxgMEI+3t+RYOJVuYuZgFfgqhV 25I4WLYEmOn3ChzJ3mIcv/aanZ4dGVGKBcrdHCBcb86lguzaleJ9qSKtHP7Me8mZ8nba MJHogMJLjvsNhIpCmTp2XyJq281ZdOQObvwBYYZC3SsPPxiAePoCxrUQYisDUw2c2Mw8 aWD9GGBpHs+PvCtLEL49iBgKljvq0r0gb94o2KBzgaVWr7J8khBQQQYr8H3MhzO8UEFH hjOszZrLdjGnKoLwXkNTGfMrfT0mZi8ZUcI3PIKt9zd11xJ21c6AcVO8r/HXoTRnd8G3 fxlw== X-Gm-Message-State: ALoCoQkdgN1KpaSctyyQhazMa1ES4wt6xc2efY3OqLyB1l1R4zUJ0FJoo4QjDDWD/WGQWrVNvVAH X-Received: by 10.66.191.7 with SMTP id gu7mr772231pac.32.1410997015305; Wed, 17 Sep 2014 16:36:55 -0700 (PDT) Received: from OLTPad.swisscom.com (70-35-38-154.static.wiline.com. [70.35.38.154]) by mx.google.com with ESMTPSA id ki1sm17935129pdb.59.2014.09.17.16.36.54 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 17 Sep 2014 16:36:54 -0700 (PDT) From: Omair Javaid To: gdb-patches@sourceware.org Subject: Re [PATCH 2/7] Fixes for aarch64-linux core file support Date: Thu, 18 Sep 2014 04:36:40 +0500 Message-Id: <1410997000-5878-1-git-send-email-omair.javaid@linaro.org> In-Reply-To: References: X-IsSubscribed: yes Updated after regset rework pushed upstream. gdb: 2014-09-18 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);