PATCH: libffi: add MIPS O32 DWARF-2 unwind info
Casey Marshall
csm@gnu.org
Wed Jun 23 21:06:00 GMT 2004
The attached patch adds DWARF-2 unwinding info for MIPS ffi_call_O32.
I'm kind of new to both DWARF-2 and MIPS assembly, so this may not be
completely correct. I have tried this on a modified 3.3.3 -- the
changes since then appear to have been only to the SIZEOF_ARG macro --
but have not tried it on a newer version. It seems to work, since
things like `invokethrow.java' work properly for me now.
Note that this is only for the O32 ABI. I think that N32 would be
similar (identical?) to this, but I can't test it.
Also: GCJ emits references to __gcj_personality_v0 in the assembler it
generates, as a "personality" in the CIE. I didn't know if this was
appropriate for the ffi code, so I merely omitted it. Is this ok?
(I wasn't sure where to send this patch, but I suppose GCJ users will
find it useful)
2004-06-23 Casey Marshall <csm@gnu.org>
* src/mips/o32.S: added unwind info for `ffi_call_O32'.
--
Casey Marshall || csm@gnu.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: o32-dw2.patch
Type: text/x-patch
Size: 2026 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040623/ae555b53/attachment.bin>
More information about the Java-patches
mailing list