Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Kevin Buettner <kevinb@redhat.com>
To: Joel Brobecker <brobecker@adacore.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFC] mn10300: Rewrite prologue analyzer
Date: Wed, 18 Mar 2009 05:27:00 -0000	[thread overview]
Message-ID: <20090317220116.30422bfc@redhat.com> (raw)
In-Reply-To: <20090316172438.GG9294@adacore.com>

On Mon, 16 Mar 2009 13:24:38 -0400
Joel Brobecker <brobecker@adacore.com> wrote:

> > I've rewritten the prologue analyzer to use the "prologue-value"
> > machinery.  It already knows about more instructions than the existing
> > prologue analyzer, and will accept instructions in any order.
> 
> Nice! I've always wanted to take a look and see how it can simplify
> prologue parsing... How did you find it?

The prologue-value machinery is great.  You basically write a
simulator for the various instructions that might appear in a
prologue.  When the simulation is done, either due to running to the
limit, or encountering an instruction that prologue analyzer doesn't
handle, you look at the resulting state to figure out the various
frame-related offsets, including those of saved registers.  The
prologue-value machinery is used to manipulate the state and for
analyzing the state when the simulation is done.

I've used this machinery twice now, both for mn10300 as well as for
another port that I can't talk about yet.  In both cases, construction
of the prologue analyzer was quicker and required less debugging than
the ad-hoc analyzers that I've written in the past.

> Looks like overall your patch is a nice improvement compared to
> the previous implementation. I quickly scanned the patch. I am not
> very familiar with prologue-value, but everything seemed OK to me.

Thanks for looking it over.

Kevin


  reply	other threads:[~2009-03-18  5:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-13 23:25 Kevin Buettner
2009-03-16 17:31 ` Joel Brobecker
2009-03-18  5:27   ` Kevin Buettner [this message]
2009-03-25 16:21 ` Kevin Buettner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090317220116.30422bfc@redhat.com \
    --to=kevinb@redhat.com \
    --cc=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox