[RFA/m32r] Fix m32r frame analyzer

Kei Sakamoto sakamoto.kei@renesas.com
Tue Oct 5 10:13:00 GMT 2004


Hello,

The attached patch revises m32r frame analyzer. The current
analyzer works fine with functions written in C. But it sometimes
can't handle functions written in assembly languages correctly.
It also can't recognize trap instructions as the end of prologue.

# System call handlers of Linux/M32R are written in assembly
# languages and use trap instructions.

The attached fixes these problems.

OK to commit?

2004-10-05    Kei Sakamoto  <sakamoto.kei@renesas.com>

    * m32r-tdep.c (decode_prologue): Support functions written
    in assembly languages. Recognize trap instructions as the
    end of prologue.
    (m32r_frame_unwind_cache): Ditto.
    (m32r_skip_prologue): Extend search limit. Quit analyzing
    prologue if pc's location is not readable.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: m32r-tdep.patch
Type: application/octet-stream
Size: 5904 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20041005/b3574be4/attachment.obj>


More information about the Gdb-patches mailing list