From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17339 invoked by alias); 9 Jul 2015 10:53:39 -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 17327 invoked by uid 89); 9 Jul 2015 10:53:39 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.2 X-HELO: eu-smtp-delivery-143.mimecast.com Received: from eu-smtp-delivery-143.mimecast.com (HELO eu-smtp-delivery-143.mimecast.com) (146.101.78.143) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 09 Jul 2015 10:53:34 +0000 Received: from cam-owa1.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.140]) by eu-smtp-1.mimecast.com with ESMTP id uk-mta-25-Kgis2C4sRf-o8myVzArhHg-1; Thu, 09 Jul 2015 11:53:29 +0100 Received: from [10.2.207.36] ([10.1.2.79]) by cam-owa1.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 9 Jul 2015 11:53:28 +0100 Message-ID: <559E52A8.80100@arm.com> Date: Thu, 09 Jul 2015 10:53:00 -0000 From: Pierre Langlois User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: "qiyaoltc@gmail.com" CC: Pierre Langlois , "gdb-patches@sourceware.org" Subject: Re: [PATCH v2 4/8] [AArch64] Teach prologue unwinder to terminate gracefully References: <86pp42mxbz.fsf@gmail.com> <1436438962-2794-1-git-send-email-pierre.langlois@arm.com> In-Reply-To: <1436438962-2794-1-git-send-email-pierre.langlois@arm.com> X-MC-Unique: Kgis2C4sRf-o8myVzArhHg-1 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2015-07/txt/msg00276.txt.bz2 On 09/07/15 11:49, Pierre Langlois wrote: > +/* Allocate and fill in *THIS_CACHE with information about the prologue = of > + *THIS_FRAME. Do not do this is if *THIS_CACHE was already allocated. > + Return a pointer to the current aarch64_prologue_cache in *THIS_CACHE. > + */ > + > +static struct aarch64_prologue_cache * > +aarch64_make_prologue_cache (struct frame_info *this_frame, void **this_= cache) > +{ > + struct aarch64_prologue_cache *cache; > + > + if (*this_cache) > + return *this_cache; Oops, I forgot to update this when rebasing. > + > + cache =3D FRAME_OBSTACK_ZALLOC (struct aarch64_prologue_cache); > + cache->saved_regs =3D trad_frame_alloc_saved_regs (this_frame); > + *this_cache =3D cache; > + > + TRY