[MinGW] RFA: Fix GetCallerInfo() for Targets Using SJLJ EH

Ranjit Mathew rmathew@gmail.com
Sat Jul 8 04:09:00 GMT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

  _Jv_StackTrace::GetCallerInfo() in stacktrace.cc does not
do anything if the target uses SJLJ EH. The attached patch
proposes to fix this. It also changes fallback_backtrace()
in sysdep/i386/backtrace.h to call the trace callback
function in STATE, if any, and to update STATE->POS with
every frame rather than once at the end.

It seems difficult to exercise this code path though.
Class.forName() doesn't use this function any more and
it indeed works for MinGW even without this patch.
Class.getClassLoader() also seems to ordinarily bypass
this function.

Tested via an i686-pc-linux-gnu to i686-pc-mingw32
cross-compiler.

OK to apply to trunk?

Thanks,
Ranjit.

- --
Ranjit Mathew       Email: rmathew AT gmail DOT com

Bangalore, INDIA.     Web: http://rmathew.com/




-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFErzAuYb1hx2wRS48RAsjYAKCLlc9Y8tsGm4BxL9Utl4fde75ogACcDNMP
LbxvEYMcvsD5Q9grbKcRRIA=
=5w+2
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: p1.txt
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20060708/cc27facf/attachment.txt>


More information about the Java-patches mailing list