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: 37557 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C6DF82054D for ; Wed, 17 Sep 2014 23:37:09 +0000 (UTC) Received: by mail-wi0-f199.google.com with SMTP id bs8sf113703wib.10 for ; Wed, 17 Sep 2014 16:37:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:mailing-list :precedence:list-id:list-unsubscribe:list-subscribe:list-archive :list-post:list-help:sender:delivered-to:from:to:subject:date :message-id:in-reply-to:references:x-original-sender :x-original-authentication-results; bh=NqvN6yHhvVaTyv5UGDX31w134SUnATbAGTBuS8S3gh8=; b=CwIC6b/sfFe8Ua0/odjRf6BQtOZRL824laI0vaIyW23zQFfUcVDLxiSObURTKVvrXO ym1+z/BrXAgPaN7hfMtmiABprOO3yRwJX2JvQYX5NfSLqioqrByWg2UV+e6dtZ5Fseqp b2SDF3LtJpueOnX1/F9le0Vr8NLZ9ll+IHR1xhy4OMloPXgnUVFonrEf9DIGJhjfv1/G xGQ0VX0GBeupn0ALQVCIejQOrliwnUjhPTbxPoqSwPdTELRy3edsuFhVR0km0QuoJLvZ G8++NMyPe08qB2p9ssZmmPO7EXK1AM4atG0rht+qEuQ7+n6THJV59Q+ARB9Cj4XCUQrT +NPg== X-Gm-Message-State: ALoCoQnh7iaqgddqqv2ouK5/iix34yeHhjlOWrl2YKqwIGjLK1hc+C9Qkq35iHe2mArIu/iq6cfU X-Received: by 10.180.88.8 with SMTP id bc8mr262849wib.0.1410997029027; Wed, 17 Sep 2014 16:37:09 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.120.200 with SMTP id le8ls53568lab.101.gmail; Wed, 17 Sep 2014 16:37:08 -0700 (PDT) X-Received: by 10.152.45.8 with SMTP id i8mr819049lam.31.1410997028845; Wed, 17 Sep 2014 16:37:08 -0700 (PDT) Received: from mail-la0-x236.google.com (mail-la0-x236.google.com [2a00:1450:4010:c03::236]) by mx.google.com with ESMTPS id u1si30484275lae.37.2014.09.17.16.37.08 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 17 Sep 2014 16:37:08 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c03::236 as permitted sender) client-ip=2a00:1450:4010:c03::236; Received: by mail-la0-f54.google.com with SMTP id ge10so88011lab.41 for ; Wed, 17 Sep 2014 16:37:08 -0700 (PDT) X-Received: by 10.112.130.168 with SMTP id of8mr480579lbb.5.1410997028747; Wed, 17 Sep 2014 16:37:08 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.130.169 with SMTP id of9csp670466lbb; Wed, 17 Sep 2014 16:37:07 -0700 (PDT) X-Received: by 10.70.138.9 with SMTP id qm9mr545315pdb.131.1410997027117; Wed, 17 Sep 2014 16:37:07 -0700 (PDT) Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id mk2si2541574pdb.102.2014.09.17.16.37.06 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Sep 2014 16:37:07 -0700 (PDT) Received-SPF: pass (google.com: domain of gdb-patches-return-116013-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Received: (qmail 27426 invoked by alias); 17 Sep 2014 23:37:00 -0000 Mailing-List: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org Precedence: list 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 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-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 X-Original-Sender: omair.javaid@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2a00:1450:4010:c03::236 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=pass header.i=@sourceware.org X-Google-Group-Id: 836684582541 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);