This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v2 4/8] [AArch64] Teach prologue unwinder to terminate gracefully
- From: Pierre Langlois <pierre dot langlois at arm dot com>
- To: "qiyaoltc at gmail dot com" <qiyaoltc at gmail dot com>
- Cc: Pierre Langlois <Pierre dot Langlois at arm dot com>, "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Thu, 09 Jul 2015 11:53:28 +0100
- Subject: Re: [PATCH v2 4/8] [AArch64] Teach prologue unwinder to terminate gracefully
- Authentication-results: sourceware.org; auth=none
- References: <86pp42mxbz dot fsf at gmail dot com> <1436438962-2794-1-git-send-email-pierre dot langlois at arm dot com>
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 = FRAME_OBSTACK_ZALLOC (struct aarch64_prologue_cache);
> + cache->saved_regs = trad_frame_alloc_saved_regs (this_frame);
> + *this_cache = cache;
> +
> + TRY