Re: Prologue analysis interface

Daniel Jacobowitz
2006-01-27T16:44:44Z

On Tue, Nov 22, 2005 at 11:24:06AM -0800, Jim Blandy wrote:
> Daniel, you said that you felt that the interface in the
> prologue-value.h that I posted wasn't at the right level, and
> suggested that, instead of providing types and some operations on
> those types, it should instead provide the interpretation loop and
> call back into tdep code to interpret specific instructions.
>
> Could you sketch that interface for me? I'm concerned that it will be
> difficult to allow the tdep code the flexibility it needs to model the
> processor without a lot of bureaucracy, but I'm willing to be
> impressed.

Hi Jim,

I'm assuming you haven't had any time for this since we last talked
about it. If that's true, how do you feel about reposting the current
version of the code for review anyway?

I just needed to fix a prologue analysis bug for Thumb. It took me
about six hours to rewrite the prologue analyzer from scratch based
on prologue-value.[ch], and it has equivalent testsuite results to
the DWARF-2 unwinder; one more pass than the existing unwinder with
DWARF-2 disabled; and handles the somewhat odd case that I was trying
to fix without impairing anything else. It's an obvious step forwards.

--
Daniel Jacobowitz
CodeSourcery