[RFA] More tweaks to arm_skip_prologue

Michael Snyder msnyder@redhat.com
Wed Apr 24 11:47:00 GMT 2002


Richard Earnshaw wrote:
> 
> > Richard Earnshaw wrote:
> > [...]
> > > This should only ever be "str lr, [sp, #-4]!" (note the writeback).
> >
> > Richard, how's this revised patch?
> >
> > Do you think that, if we detect the str lr, [sp, -4]!
> > we should just return pc + 4 immediately?
> 
> Well, there could be some stack allocation (and maybe some stores to it),
> there might, in theory, be some floating point stacking as well.
> 
> >
> > 2002-04-22  Michael Snyder  <msnyder@redhat.com>
> >
> >       * arm-tdep.c (arm_skip_prologue): Better handling for frameless
> >       functions.  Treat "mov ip, sp" as optional.  Recognize
> >       "str lr, [sp, #-4]".
> 
> Working on the principal that this is better than what we have, I think
> this should go in.  More needs to be done, but I don't think it should
> block this change.

Great, that's what I hoped for.
I will be doing some more work on this code, so if you 
want to continue sending suggestions...    ;-)



More information about the Gdb-patches mailing list