ARM prologue parsing support for Thumb-2 instructions?

Daniel Jacobowitz
Mon Jul 19 14:10:00 GMT 2010

On Mon, Jul 19, 2010 at 12:59:05PM +0200, Ulrich Weigand wrote:
> > Trunk thumb_analyze_prologue does have support for Thumb-2.
> Well, all the support for Thumb-2 I can see is in this block:
>       else if ((insn & 0xe000) == 0xe000 && cache == NULL)
>         {
>           /* Only recognize 32-bit instructions for prologue skipping.  */
> which, as the comment says, is active *only* if this routine is
> called from arm_skip_prologue (with cache == NULL), but not if the
> routine is called from arm_scan_prologue (with cache != NULL),
> which is what is used during unwinding.

IIRC, it would not be hard to fill in the missing pieces; I just
didn't need them at the time, and could not easily test them.  So
rather than risk them being wrong, I left them for later.

Daniel Jacobowitz

More information about the Gdb mailing list