From patchwork Thu Aug 28 13:49:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Omair Javaid X-Patchwork-Id: 36205 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f198.google.com (mail-qc0-f198.google.com [209.85.216.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4720E2054F for ; Thu, 28 Aug 2014 13:53:32 +0000 (UTC) Received: by mail-qc0-f198.google.com with SMTP id r5sf4728671qcx.5 for ; Thu, 28 Aug 2014 06:53:30 -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=nxVKdaeA7VbL96EeN9mRu2398vVHhYuvz6Ozydb7Xpg=; b=IqPozQ0BpYIo61dNKb0/n6HqIeBMBW92jLCoy1O5et7SkCAM2H+pmYeTlLM2BQTaOm N7kSiI6WgoPPW5IZl0Kbaerm796R6Gg+aeJUsuJJSEgb5FPcw6sS5RcbWQCfaQpR/8KD woXKLVVCwrS7UePPL/7/guo1Gk1AKWE7dpvBROnzAoxhP72lUanAiPM26BCJtVPVt6/2 OnGQTw8x526GyIOzdBdLfLP0xgEhtpnyw2nlNdKOldKKZZZTJ7aYgJvlTFReDKlBwmXk Co5fzLdiWg98f1ZoI62QV74J6wFeW02JLyqEX1lqrpDx354NrHGJe1qhC+NorFYW04U3 AprQ== X-Gm-Message-State: ALoCoQnGR+1ZDvtTm5VtIM2amTuYMOa/ARr9x/C1x8jrrA1bAPf5x/cpUtaWw1vPLgF1vKvBBqhy X-Received: by 10.236.120.9 with SMTP id o9mr2150402yhh.14.1409234010200; Thu, 28 Aug 2014 06:53:30 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.82.75 with SMTP id g69ls534292qgd.53.gmail; Thu, 28 Aug 2014 06:53:30 -0700 (PDT) X-Received: by 10.52.168.134 with SMTP id zw6mr1492159vdb.37.1409234010092; Thu, 28 Aug 2014 06:53:30 -0700 (PDT) Received: from mail-vc0-x233.google.com (mail-vc0-x233.google.com [2607:f8b0:400c:c03::233]) by mx.google.com with ESMTPS id t10si3487849vcf.39.2014.08.28.06.53.30 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 28 Aug 2014 06:53:30 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2607:f8b0:400c:c03::233 as permitted sender) client-ip=2607:f8b0:400c:c03::233; Received: by mail-vc0-f179.google.com with SMTP id hy4so837463vcb.10 for ; Thu, 28 Aug 2014 06:53:30 -0700 (PDT) X-Received: by 10.52.73.202 with SMTP id n10mr631410vdv.86.1409234009994; Thu, 28 Aug 2014 06:53:29 -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.221.45.67 with SMTP id uj3csp240202vcb; Thu, 28 Aug 2014 06:53:29 -0700 (PDT) X-Received: by 10.68.69.71 with SMTP id c7mr6156736pbu.43.1409234009048; Thu, 28 Aug 2014 06:53:29 -0700 (PDT) Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id az2si6442291pdb.203.2014.08.28.06.53.28 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Aug 2014 06:53:28 -0700 (PDT) Received-SPF: pass (google.com: domain of gdb-patches-return-115344-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Received: (qmail 20223 invoked by alias); 28 Aug 2014 13:49:26 -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 20120 invoked by uid 89); 28 Aug 2014 13:49:21 -0000 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-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 18:49:03 +0500 Message-Id: <1409233743-26944-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 2607:f8b0:400c:c03::233 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-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);